krakentools.groupconstants.genpoly.records.microdepletion.MicroDepData¶
- class krakentools.groupconstants.genpoly.records.microdepletion.MicroDepData(reader_list, dec_dict, nrea_dict, nfy_i_dict, allow_only_zero_burnup=True)¶
Bases:
object
Microdepletion data, wrapper class for collecting all mdx-files contents for a single calculation case. Offers routines for writing GenPoly tables etc. Fitting is not done in this class.
- __init__(reader_list, dec_dict, nrea_dict, nfy_i_dict, allow_only_zero_burnup=True)¶
Methods
__init__
(reader_list, dec_dict, nrea_dict, ...)from_file
(num_region, fin)- rtype:
Optional
[MicroDepData
]
mdep_index
(ini_adens, reactions)Return micro depletion matrix index for given list of non-zero density
mdep_num
()Return number of micro depletion matrixes.
process
([allow_only_zero_burnup])Processes the required data from the microdepletion readers linked to this instance and stores the processed data somewhere.
write_to_file
(fout, precision, txt_width)Writes the microdepletion tables to a file in a format required by the GenPoly format.
- mdep_index(ini_adens, reactions)¶
- Return micro depletion matrix index for given list of non-zero density
zais in initial composition and tallyed microxs.
- Parameters:
densities. (ini_adens --- List of zais in initial composition with non-zero) –
tallyed. (reactions --- List of MicroXSTuples) –
- Raises:
KeyError – If micro depletion matrix cannot be found from materials.
- Return type:
int
- Returns:
int — index of micro depletion matrix.
- mdep_num()¶
Return number of micro depletion matrixes.
- Return type:
int
- Returns:
int — number of micro depletion matrixes.
- process(allow_only_zero_burnup=True)¶
Processes the required data from the microdepletion readers linked to this instance and stores the processed data somewhere.
- Return type:
None
- write_to_file(fout, precision, txt_width)¶
Writes the microdepletion tables to a file in a format required by the GenPoly format. (microXS are not written here)
- Parameters:
used. (fout {TextIO} -- Pre-opened TextIO with a .write() method that can be) –
precision (int) – The number of decimal places to include.
text (txt_width {int} -- Fixed width to use for formatting the) – part of each line.
- Return type:
None