mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Merge pull request #3 from pshriwise/centre_for_cylinder_spherical_meshes
Naming tally in activation unit test
This commit is contained in:
commit
9ecaafad7e
1 changed files with 3 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ def model():
|
|||
)
|
||||
model.settings.run_mode = 'fixed source'
|
||||
|
||||
rx_tally = openmc.Tally()
|
||||
rx_tally = openmc.Tally(name='activation tally')
|
||||
rx_tally.scores = ['(n,gamma)']
|
||||
model.tallies.append(rx_tally)
|
||||
|
||||
|
|
@ -53,7 +53,8 @@ def test_activation(run_in_tmpdir, model, reaction_rate_mode, reaction_rate_opts
|
|||
# Determine (n.gamma) reaction rate using initial run
|
||||
sp = model.run()
|
||||
with openmc.StatePoint(sp) as sp:
|
||||
tally = sp.tallies[1]
|
||||
print(sp.tallies)
|
||||
tally = sp.get_tally(name='activation tally')
|
||||
capture_rate = tally.mean.flat[0]
|
||||
|
||||
# Create one-nuclide depletion chain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue