Commit graph

8 commits

Author SHA1 Message Date
Paul Romano
a95f4cc0d7 Remove use of _find_chain_file in test_deplete_operator.py 2022-09-08 10:50:21 -05:00
Jonathan
d91676fe1b removed unused imports 2022-02-11 22:36:46 +00:00
Paul Romano
badaaacca4 Consistent use of cross sections / chain file in Operator class 2022-01-12 10:32:25 -06:00
Andrew Johnson
a4905c03af
Add TransportOperator.write_bos_data abstract method
Called with a single integer corresponding to the current
depletion step. This method is intended to document the current
beginning-of-step calculations prior to any depletion at each step
and at the final simulation.
The Operator uses this method to write a statepoint using the
C API.

Also rename the Integrator _get_bos_data_from_openmc to
_get_bos_data_from_operator for generality. It is here that the
write_bos_data method is called.
2019-08-06 17:36:22 -05:00
Andrew Johnson
1e6f15236a
fiss_q_values -> fission_q for passing q values 2019-06-28 10:30:28 -05:00
Andrew Johnson
0e125b2548
Option to pass fission q values to Chain, Operator, Model
A dictionary of constant fission q values [eV] can be passed
into the initialization of deplete.Chain, deplete.Operator,
and model.Model objects. This can be used for direct
comparisons with other codes with readily available
constant Q-values.

Tests have been added on the Chain and Operator side.
The additional fiss_q_values passed into Model is forwarded
directly on to the Operator call.
2019-06-27 11:42:18 -05:00
Andrew Johnson
0c0e591cb7
Simple changes to address reviewer comments
Re-organize some imports, use run_in_tmpdir fixture,
use FutureWarning over DeprecationWarning
2019-06-11 13:54:13 -04:00
Andrew Johnson
f700861646
Add test for the instantiation of deplete.Operator
Construct a minimal cross sections xml file that only
contains the depletion_chain node required by
the Operator. The path to this file is set to the
OPENMC_CROSS_SECTIONS file, and reverted after the test.

The depletion_chain points towards the chain_simple.xml
files, and a reference Chain is produced in the test.
The test involves creating a bare Operator instance, that
constructs a chain based on the temporary
OPENMC_CROSS_SECTIONS file. This chain is compared to
that produced by reading the chain_simple.xml file stored
in the test directory.
2019-05-30 18:01:33 -04:00