Commit graph

12 commits

Author SHA1 Message Date
Ilham Variansyah
ecb0a3361f
Combing for fission site sampling, and delayed neutron emission time (#2992)
Co-authored-by: Gavin Ridley <gavin.keith.ridley@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-09-19 08:10:08 +00:00
Patrick Shriwise
eda39ad9ca
Python source class refactor (#2524)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-06-20 21:27:55 -05:00
Ethan Peterson
11e618fe81 adding export_to_xml to run and updating tests 2023-03-24 18:54:54 -04:00
Paul Romano
45a6b31c8f Change StatePoint.k_combined -> keff, ResultsList.get_eigenvalue -> get_keff 2022-05-02 12:09:43 -05:00
Miriam
954450a841 Fixed several bugs related to decay-rate
1) In mdgxs.py, DecayRate, get_xs(). There is no need to reverse the order
since there isn't an energy group filter anymore. Also, the new_shape
addition formats the cross section like all the others. I updated
mgxs_library_hdf5 test results accordingly.

2) In material.cpp. If you use a macroscopic dnesity other than 1.0,
the code still pushed back '1.0'. My change fixes that. Using a macro
density other than 1.0 wasn't tested anywhere, so I modifed mg_convert
to take a density of 1.1. The default macro density of 1.0 is used in
many other tests.

3) tally_scoring.cpp. Notice that the score is accumulated, then sent
to the function score_fission_delayed_dg where the tally is accumulated.
This amounts to "double accumulation". It makes sense to accumulate the score
over the delayed groups if there is no delayed group filter, but in this
case, when delayed group filter is not None, the score needs to reset
each time.

In other parts of SCORE_DECAY_RATE, I think the distinction between
accumulating and resetting the score is correct. The only place I wasn't
sure was line 1057 (and its equivalent in multi-group, line 1962).

It's too bad the decay-rate isn't tested very thoroughly. Although I
don't have time to do it myself, I think adding a DelayedGroups filter
to the mg_tallies test would be a good start.
2020-11-04 16:58:43 +00:00
Adam G Nelson
c1652bbdec Replacing old slab_mg example model with new one that uses a library that follows the library standard. Also had to update tests accordingly. 2018-09-03 06:48:02 -04:00
Paul Romano
8487915f2a Use ufloat for k_combined in statepoint 2018-03-15 11:02:07 -05:00
Paul Romano
b7c63be018 Use super() in Python classes in tests package 2018-02-06 13:14:17 -05:00
Paul Romano
0d3845c327 Fix command-line arguments for regression tests 2018-02-05 07:35:19 -06:00
Paul Romano
740f03fce1 Use single package-level fixture for regression tests 2018-02-05 07:35:19 -06:00
Paul Romano
98d5496102 Ability to run regression tests using pytest 2018-02-05 07:35:19 -06:00
Paul Romano
c3af1c915b Move regression tests into separate directory 2018-02-05 07:35:19 -06:00
Renamed from tests/test_mg_convert/test_mg_convert.py (Browse further)