mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Update Jupyter notebooks based on Tally property changes
This commit is contained in:
parent
1e674ebbdb
commit
a4ed73fc11
4 changed files with 237 additions and 250 deletions
|
|
@ -453,10 +453,8 @@
|
|||
"\n",
|
||||
"# Instantiate the Tally\n",
|
||||
"tally = openmc.Tally(name='mesh tally')\n",
|
||||
"tally.add_filter(mesh_filter)\n",
|
||||
"tally.add_filter(energy_filter)\n",
|
||||
"tally.add_score('fission')\n",
|
||||
"tally.add_score('nu-fission')\n",
|
||||
"tally.filters = [mesh_filter, energy_filter]\n",
|
||||
"tally.scores = ['fission', 'nu-fission']\n",
|
||||
"\n",
|
||||
"# Add mesh and Tally to TalliesFile\n",
|
||||
"tallies_file.add_mesh(mesh)\n",
|
||||
|
|
@ -483,10 +481,9 @@
|
|||
"\n",
|
||||
"# Instantiate the tally\n",
|
||||
"tally = openmc.Tally(name='cell tally')\n",
|
||||
"tally.add_filter(cell_filter)\n",
|
||||
"tally.add_score('scatter-y2')\n",
|
||||
"tally.add_nuclide(u235)\n",
|
||||
"tally.add_nuclide(u238)\n",
|
||||
"tally.filters = [cell_filter]\n",
|
||||
"tally.scores = ['scatter-y2']\n",
|
||||
"tally.nuclides = [u235, u238]\n",
|
||||
"\n",
|
||||
"# Add mesh and tally to TalliesFile\n",
|
||||
"tallies_file.add_tally(tally)"
|
||||
|
|
@ -512,14 +509,13 @@
|
|||
"\n",
|
||||
"# Instantiate tally Trigger for kicks\n",
|
||||
"trigger = openmc.Trigger(trigger_type='std_dev', threshold=5e-5)\n",
|
||||
"trigger.add_score('absorption')\n",
|
||||
"trigger.scores = ['absorption']\n",
|
||||
"\n",
|
||||
"# Instantiate the Tally\n",
|
||||
"tally = openmc.Tally(name='distribcell tally')\n",
|
||||
"tally.add_filter(distribcell_filter)\n",
|
||||
"tally.add_score('absorption')\n",
|
||||
"tally.add_score('scatter')\n",
|
||||
"tally.add_trigger(trigger)\n",
|
||||
"tally.filters = [distribcell_filter]\n",
|
||||
"tally.scores = ['absorption', 'scatter']\n",
|
||||
"tally.triggers = [trigger]\n",
|
||||
"\n",
|
||||
"# Add mesh and tally to TalliesFile\n",
|
||||
"tallies_file.add_tally(tally)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue