mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Change defualt constructor to accept a Materials object
The classmethod, from_nuclides, retains the volume-nuclide constructor
This commit is contained in:
parent
3817750bff
commit
7e671d4e57
4 changed files with 76 additions and 31 deletions
|
|
@ -69,5 +69,5 @@ def test_operator_init():
|
|||
'O16': 4.639065406771322e+22,
|
||||
'O17': 1.7588724018066158e+19}
|
||||
micro_xs = FluxDepletionOperator.create_micro_xs_from_csv(ONE_GROUP_XS)
|
||||
my_flux_operator = FluxDepletionOperator(
|
||||
nuclide_flux_operator = FluxDepletionOperator.from_nuclides(
|
||||
1, nuclides, micro_xs, FLUX_SPECTRA, CHAIN_PATH)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue