openmc.deplete.transfer_rates.TransferRates
- class openmc.deplete.transfer_rates.TransferRates(operator, materials, number_of_timesteps)[source]
Class for defining continuous removals and feeds.
Molten Salt Reactors (MSRs) benefit from continuous reprocessing, which removes fission products and feeds fresh fuel into the system. MSRs inspired the development of this class.
An instance of this class can be passed directly to an instance of one of the
openmc.deplete.Integratorclasses.Added in version 0.14.0.
- Parameters:
operator (openmc.TransportOperator) – Depletion operator
materials (openmc.Materials) – OpenMC materials.
number_of_timesteps (int) – Total number of depletion timesteps
- Variables:
local_mats (list of str) – All burnable material IDs being managed by a single process
external_rates (dict of str to dict) – Container of timesteps, transfer rates, components (elements and/or nuclides) and destination material
external_timesteps (list of int) – Container of all timesteps indeces with an external rate defined.
index_transfer (Set of pair of str) – Pair of strings needed to build final matrix (destination_material, mat)
- set_transfer_rate(material, components, transfer_rate, transfer_rate_units='1/s', timesteps=None, destination_material=None)[source]
Set element and/or nuclide transfer rates in a depletable material.
- Parameters:
material (openmc.Material or str or int) – Depletable material
components (list of str) – List of strings of elements and/or nuclides that share transfer rate. Cannot add transfer rates for nuclides to a material where a transfer rate for its element is specified and vice versa.
transfer_rate (float) – Rate at which elements and/or nuclides are transferred. A positive or negative value corresponds to a removal or feed rate, respectively.
transfer_rate_units ({'1/s', '1/min', '1/h', '1/d', '1/a'}) – Units for values specified in the transfer_rate argument. ‘s’ for seconds, ‘min’ for minutes, ‘h’ for hours, ‘a’ for Julian years.
timesteps (list of int, Optional) – List of timestep indeces where to set transfer rates. Default to None means the transfer rate is set for all timesteps.
destination_material (openmc.Material or str or int, Optional) – Destination material to where nuclides get fed.