Skip to content

Commit

Permalink
Merge pull request #236 from fusion-energy/updating_scripts_to_latest…
Browse files Browse the repository at this point in the history
…_openmc_api

added args to spherical mesh
  • Loading branch information
shimwell authored Aug 6, 2023
2 parents 8dfb0f6 + 74450ed commit fc2d3cc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,9 @@
"my_tallies = openmc.Tallies()\n",
"\n",
"# This spherical mesh tally is used for generating the weight windows.\n",
"mesh = openmc.SphericalMesh()\n",
"mesh.r_grid = np.linspace(0, outer_surface.r, 5000)\n",
"mesh = openmc.SphericalMesh(\n",
" r_grid = np.linspace(0, outer_surface.r, 5000)\n",
")\n",
"mesh_filter = openmc.MeshFilter(mesh)\n",
"flux_tally_for_ww = openmc.Tally(name=\"flux tally\")\n",
"flux_tally_for_ww.filters = [mesh_filter]\n",
Expand Down

0 comments on commit fc2d3cc

Please sign in to comment.