mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Update openmc.Source creation in all example notebooks
This commit is contained in:
parent
be34922aee
commit
176564c5d4
11 changed files with 11 additions and 11 deletions
|
|
@ -325,7 +325,7 @@
|
|||
"# Create an initial uniform spatial source distribution over fissionable zones\n",
|
||||
"bounds = [-0.63, -0.63, -0.63, 0.63, 0.63, 0.63]\n",
|
||||
"uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)\n",
|
||||
"settings_file.source = openmc.source.Source(space=uniform_dist)\n",
|
||||
"settings_file.source = openmc.Source(space=uniform_dist)\n",
|
||||
"\n",
|
||||
"# Export to \"settings.xml\"\n",
|
||||
"settings_file.export_to_xml()"
|
||||
|
|
|
|||
|
|
@ -320,7 +320,7 @@
|
|||
"# Create an initial uniform spatial source distribution over fissionable zones\n",
|
||||
"bounds = [-10.71, -10.71, -10, 10.71, 10.71, 10.]\n",
|
||||
"uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)\n",
|
||||
"settings.source = openmc.source.Source(space=uniform_dist)\n",
|
||||
"settings.source = openmc.Source(space=uniform_dist)\n",
|
||||
"\n",
|
||||
"# Export to \"settings.xml\"\n",
|
||||
"settings.export_to_xml()"
|
||||
|
|
|
|||
|
|
@ -514,7 +514,7 @@
|
|||
"# Create an initial uniform spatial source distribution over fissionable zones\n",
|
||||
"bounds = [-32.13, -10.71, -1e50, 10.71, 32.13, 1e50]\n",
|
||||
"uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)\n",
|
||||
"settings_file.source = openmc.source.Source(space=uniform_dist)\n",
|
||||
"settings_file.source = openmc.Source(space=uniform_dist)\n",
|
||||
"\n",
|
||||
"# Tell OpenMC we want to run in eigenvalue mode\n",
|
||||
"settings_file.run_mode = 'eigenvalue'\n",
|
||||
|
|
|
|||
|
|
@ -351,7 +351,7 @@
|
|||
"# Create an initial uniform spatial source distribution over fissionable zones\n",
|
||||
"bounds = [-10.71, -10.71, -10, 10.71, 10.71, 10.]\n",
|
||||
"uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)\n",
|
||||
"settings_file.source = openmc.source.Source(space=uniform_dist)\n",
|
||||
"settings_file.source = openmc.Source(space=uniform_dist)\n",
|
||||
"\n",
|
||||
"# Export to \"settings.xml\"\n",
|
||||
"settings_file.export_to_xml()"
|
||||
|
|
|
|||
|
|
@ -464,7 +464,7 @@
|
|||
"# Create an initial uniform spatial source distribution over fissionable zones\n",
|
||||
"bounds = [pin_pitch, pin_pitch, 10, length - pin_pitch, length - pin_pitch, 10]\n",
|
||||
"uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)\n",
|
||||
"settings_file.source = openmc.source.Source(space=uniform_dist)\n",
|
||||
"settings_file.source = openmc.Source(space=uniform_dist)\n",
|
||||
"\n",
|
||||
"# Export to \"settings.xml\"\n",
|
||||
"settings_file.export_to_xml()"
|
||||
|
|
|
|||
|
|
@ -310,7 +310,7 @@
|
|||
"# Create an initial uniform spatial source distribution over fissionable zones\n",
|
||||
"bounds = [-0.63, -0.63, -0.63, 0.63, 0.63, 0.63]\n",
|
||||
"uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)\n",
|
||||
"settings_file.source = openmc.source.Source(space=uniform_dist)\n",
|
||||
"settings_file.source = openmc.Source(space=uniform_dist)\n",
|
||||
"\n",
|
||||
"# Export to \"settings.xml\"\n",
|
||||
"settings_file.export_to_xml()"
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@
|
|||
"# Create an initial uniform spatial source distribution over fissionable zones\n",
|
||||
"bounds = [-0.63, -0.63, -0.63, 0.63, 0.63, 0.63]\n",
|
||||
"uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)\n",
|
||||
"settings_file.source = openmc.source.Source(space=uniform_dist)\n",
|
||||
"settings_file.source = openmc.Source(space=uniform_dist)\n",
|
||||
"\n",
|
||||
"# Activate tally precision triggers\n",
|
||||
"settings_file.trigger_active = True\n",
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@
|
|||
"# Create an initial uniform spatial source distribution over fissionable zones\n",
|
||||
"bounds = [-10.71, -10.71, -10, 10.71, 10.71, 10.]\n",
|
||||
"uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)\n",
|
||||
"settings_file.source = openmc.source.Source(space=uniform_dist)\n",
|
||||
"settings_file.source = openmc.Source(space=uniform_dist)\n",
|
||||
"\n",
|
||||
"# Export to \"settings.xml\"\n",
|
||||
"settings_file.export_to_xml()"
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@
|
|||
"# Create an initial uniform spatial source distribution over fissionable zones\n",
|
||||
"bounds = [-10.71, -10.71, -10, 10.71, 10.71, 10.]\n",
|
||||
"uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)\n",
|
||||
"settings.source = openmc.source.Source(space=uniform_dist)\n",
|
||||
"settings.source = openmc.Source(space=uniform_dist)\n",
|
||||
"\n",
|
||||
"# Export to \"settings.xml\"\n",
|
||||
"settings.export_to_xml()"
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@
|
|||
"# Create an initial uniform spatial source distribution over fissionable zones\n",
|
||||
"bounds = [-0.63, -0.63, -0.63, 0.63, 0.63, 0.63]\n",
|
||||
"uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)\n",
|
||||
"settings_file.source = openmc.source.Source(space=uniform_dist)\n",
|
||||
"settings_file.source = openmc.Source(space=uniform_dist)\n",
|
||||
"\n",
|
||||
"# Export to \"settings.xml\"\n",
|
||||
"settings_file.export_to_xml()"
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@
|
|||
"# Create an initial uniform spatial source distribution over fissionable zones\n",
|
||||
"bounds = [-0.63, -0.63, -100., 0.63, 0.63, 100.]\n",
|
||||
"uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)\n",
|
||||
"settings_file.source = openmc.source.Source(space=uniform_dist)\n",
|
||||
"settings_file.source = openmc.Source(space=uniform_dist)\n",
|
||||
"\n",
|
||||
"# Export to \"settings.xml\"\n",
|
||||
"settings_file.export_to_xml()"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue