mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Make sure heating is calculated correctly with threshold fission
When trying to process Pa233 from ENDF/B-VIII.0, which has a threshold fission reaction, I discovered that calculating heating numbers crashed because we were trying to do arithmetic on arrays of different sizes. Re-evaluting the fission cross section on the proper energy grid does the trick here.
This commit is contained in:
parent
87541e969c
commit
e510064b9c
1 changed files with 2 additions and 2 deletions
|
|
@ -874,7 +874,7 @@ class IncidentNeutron(EqualityMixin):
|
|||
fission = data.reactions[18].xs[temp]
|
||||
kerma_fission = get_file3_xs(ev, 318, E)
|
||||
kerma.y = kerma.y - kerma_fission + (
|
||||
f.fragments(E) + f.betas(E)) * fission.y
|
||||
f.fragments(E) + f.betas(E)) * fission(E)
|
||||
|
||||
# For local KERMA, we first need to get the values from the
|
||||
# HEATR run with photon energy deposited locally and put
|
||||
|
|
@ -887,7 +887,7 @@ class IncidentNeutron(EqualityMixin):
|
|||
kerma_fission_local = get_file3_xs(ev_local, 318, E)
|
||||
kerma_local = kerma_local - kerma_fission_local + (
|
||||
f.fragments(E) + f.prompt_photons(E)
|
||||
+ f.delayed_photons(E) + f.betas(E))*fission.y
|
||||
+ f.delayed_photons(E) + f.betas(E))*fission(E)
|
||||
|
||||
heating_local.xs[temp] = Tabulated1D(E, kerma_local)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue