Skip to content

Commit

Permalink
works locally
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Jul 7, 2023
1 parent 4b77208 commit beafda0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"outputs": [],
"source": [
"import openmc\n",
"import numpy as np\n",
"from matplotlib import pyplot as plt\n",
"from matplotlib.colors import LogNorm # used for plotting log scale graphs"
]
Expand Down Expand Up @@ -412,7 +411,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.10"
"version": "3.8.13"
},
"orig_nbformat": 4
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
"metadata": {},
"outputs": [],
"source": [
"\n",
"width_a = 100\n",
"width_b = 100\n",
"width_c = 500\n",
Expand Down Expand Up @@ -213,7 +212,6 @@
"metadata": {},
"outputs": [],
"source": [
"\n",
"geometry.root_universe.plot(basis='xy', color_by='material') \n",
"plt.savefig('geometry_top_down_view.png', bbox_inches=\"tight\")"
]
Expand Down Expand Up @@ -543,7 +541,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.10"
"version": "3.8.13"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
"import openmc\n",
"import openmc.lib # this example makes use of openmc lib to run the simulations\n",
"\n",
"import numpy as np\n",
"\n",
"from matplotlib import pyplot as plt\n",
"from matplotlib.colors import LogNorm # used for plotting log scale graphs"
]
Expand Down Expand Up @@ -165,8 +163,6 @@
"outputs": [],
"source": [
"mesh = openmc.RegularMesh().from_domain(domain=my_geometry)\n",
"print(mesh)\n",
"# mesh.r_grid = np.linspace(0, outer_surface.r, 100)\n",
"\n",
"mesh_filter = openmc.MeshFilter(mesh)\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
"\n",
" # gets a live pointer to the tally, this updates as the tally is accumulated\n",
" spectra_tally = openmc.lib.tallies[outer_surface_spectra_tally.id]\n",
" \n",
"\n",
" # simulation_init is needed prior to iter_batches\n",
" openmc.lib.simulation_init()\n",
"\n",
Expand Down

0 comments on commit beafda0

Please sign in to comment.