Skip to content

Commit

Permalink
Merge pull request #3 from pshriwise/centre_for_cylinder_spherical_me…
Browse files Browse the repository at this point in the history
…shes

Naming tally in activation unit test
  • Loading branch information
RemDelaporteMathurin authored Oct 12, 2022
2 parents c6b89fe + 444a800 commit 9ecaafa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit_tests/test_deplete_activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit 9ecaafa

Please sign in to comment.