mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
skip adding 0K elastic xs if it already exists
This commit is contained in:
parent
b6a91cc25a
commit
35d24a955d
1 changed files with 7 additions and 6 deletions
|
|
@ -866,12 +866,13 @@ class IncidentNeutron(EqualityMixin):
|
|||
data.fission_energy = FissionEnergyRelease.from_endf(ev, data)
|
||||
|
||||
# Add 0K elastic scattering cross section
|
||||
pendf = Evaluation(pendf_file)
|
||||
file_obj = StringIO(pendf.section[3, 2])
|
||||
get_head_record(file_obj)
|
||||
params, xs = get_tab1_record(file_obj)
|
||||
data.energy['0K'] = xs.x
|
||||
data[2].xs['0K'] = xs
|
||||
if '0K' not in data.energy:
|
||||
pendf = Evaluation(pendf_file)
|
||||
file_obj = StringIO(pendf.section[3, 2])
|
||||
get_head_record(file_obj)
|
||||
params, xs = get_tab1_record(file_obj)
|
||||
data.energy['0K'] = xs.x
|
||||
data[2].xs['0K'] = xs
|
||||
|
||||
finally:
|
||||
# Get rid of temporary files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue