Commit graph

33 commits

Author SHA1 Message Date
Paul Romano
1914e3eefa
Support endf.Material in from_endf methods (#3932) 2026-05-29 21:53:45 -05:00
GuySten
5529731e2f
Refactor endf_data to be a fixture (#3539) 2025-08-29 07:06:33 -05:00
Jon Shimwell
9483cce0bc
Remove resonance reconstruction and Cython dependency (#3111)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-08-14 14:34:17 +00:00
Paul Romano
f9884650ec Fix IncidentNeutron.from_njoy for high temperatures 2022-12-05 23:11:20 -06:00
aprilnovak
c36cfa8f93 Add requirement to have njoy executable before am244() in test_kerma. 2020-10-15 11:44:14 -05:00
Paul Romano
04308b7677 Rewrite of openmc-ace-to-hdf5, moving some functionality to ace.py 2020-01-27 09:46:50 -06:00
Sterling Harper
89de2ce035 Allow tests to run when OPENMC_ENDF_DATA is unset 2019-09-18 18:34:02 -04:00
Paul Romano
d84c379007 Fix up heating tally scores 2019-09-13 09:31:08 -05:00
Andrew Johnson
3df4f94fbf
Merge pull request #1330 from paulromano/surface-coeffs-first
Change order of arguments for surface classes
2019-09-10 16:41:41 -05:00
Paul Romano
cb73c87d9c Respond to comments on #1330 2019-09-05 16:30:42 -05:00
Andrew Johnson
76adfb231c
Combine acer, ace arguments to openmc.data.make_ace
Passing ace to make_ace is not supported. Use acer instead.

The acer argument now signals if the acer njoy module should
be run and where to save the output file. xsdir defaults to
None now, rather than "xsdir". This change allows the xsdir
file to be written to the same directory as acer, or a user
supplied location potentially separate from ace file.
2019-09-05 10:57:02 -05:00
Paul Romano
e4e824fe4d Skip tests that require NJOY if it's not installed 2019-09-04 14:46:45 -05:00
Andrew Johnson
2675ebc2c6
Compute fission heating and fission-less heating with njoy
This reverts d81aaeca9 and 81c625928 in the following ways.
Fission heating data, MT318, is pulled from the heatr file
produced when running NJOY. Reaction data that is potentially
temperature dependent is set onto the IncidentNeutron object
by scaling MT318 by the ratio of the fission cross section
used in HEATR and other fission cross sections stored on the
object. This produces potentially many MT318 fission heating
KERMA coefficients on the nuclide.

The fission-less heating coefficient, MT999, if computed by
subtracting MT318 from MT301, total heating coefficients. This
reaction is marked as redundant, as it can easily be reconstructed.
MT318 is allowed to be written to the HDF5 file, while 999 is not.
When reading back in the library, MT999 is rebuilt in exactly
the same manner.

The test_heating test in tests/unit_tests/test_data_neutron.py
has been updated given the changes in this commit.

It is worth noting that the heating coefficients computed in
NJOY only contain prompt neutrons, as
k_{i,j}(E) = sigma_{i,j}(E) * (E + Q - \bar{E})
where k_{i,j} is the kerma coefficient for reaction j of material
i, sigma_{i,j} is the corresponding reaction cross section, E
is the energy of incident particle, Q is the mass-difference
Q value, and \bar{E} is the average energy of secondary particles.
Source: NJOY16 Manual on HEATR
2019-09-03 17:09:15 -05:00
Andrew Johnson
81c6259289
Write neutron fission-less heating coefficient to HDF5
Mark reaction 999 as one to be kept during the export process
2019-08-23 11:52:25 -05:00
Andrew Johnson
d81aaeca98
Store fission heating IncidentNeutron.from_ace
IncidentNeutron.from_ace now computes the fission heating
and a fission-less heating coefficient. The fission heating
is the product of the heating number and the fission cross
section, and stored as MT318.

The fission-less heating is the heating from all reactions
except fission, computed as heating_number * (total_xs - fission_xs).
The MT number for this is taken to be 999 as a temporary value.

A test is added for Am244 in test_data_neutron.py to examine the
new heating values
2019-08-23 11:51:09 -05:00
Paul Romano
50aa7be701 Make sure ABCs come from collections.abc 2018-10-18 05:54:36 -05:00
Sterling Harper
90cc31629a
Merge pull request #1032 from paulromano/endf8-fixes
Tabulated fission energy release
2018-08-07 09:44:51 -05:00
Paul Romano
ef9070ce76 Update tests/scripts 2018-08-02 16:08:14 -05:00
Isaac Meyer
46e58ef4dd Added more tests for covariance module 2018-08-02 15:52:41 -05:00
Isaac Meyer
c4b28e480b Fixed naming change in tests 2018-07-31 09:34:18 -05:00
Isaac Meyer
c6c47e1e68 Some name changes, removed redundandancies 2018-07-31 08:29:59 -05:00
Isaac Meyer
6b828523fe Removed print statements from test 2018-07-24 09:23:32 -05:00
Isaac Meyer
8c320cf1a4 Changed tests to reflect changes in module 2018-07-23 17:10:49 -05:00
Isaac Meyer
9ad8dabb9c Fixes to tests 2018-07-19 13:51:59 -05:00
Isaac Meyer
c22b36e0c8 Style and changed sampling to produce ResonanceRange objects 2018-07-19 13:10:37 -05:00
Isaac Meyer
ebd66a4561 Added tests for RM covariance 2018-07-17 13:00:08 -05:00
Isaac Meyer
27c9d3c772 MLBW test added 2018-07-16 17:03:25 -05:00
Adam G Nelson
b61c67a12c fixes per request of @paulromano: fixing test scratch files vice using .gitignore, minor typo in docs, and some otherwise small code cleanups 2018-05-01 19:17:21 -04:00
Paul Romano
2027920fdd Add unit tests for openmc.RectLattice and openmc.HexLattice 2018-02-05 07:35:48 -06:00
Paul Romano
9f7e5e85e7 Improve guessing in openmc.data.get_thermal_name 2018-01-09 06:22:55 -06:00
Paul Romano
6996bbde5c Improve coverage of openmc.data (decay, neutron, miscellaneous) 2018-01-09 06:22:55 -06:00
Paul Romano
e94dd55b31 More unit tests for openmc.data and a few small fixes 2018-01-09 06:22:55 -06:00
Paul Romano
4e9ee6c2e2 Start adding unit tests for openmc.data 2018-01-09 06:22:55 -06:00