bluemira.fuel_cycle.blocks
Fuel cycle model fundamental building blocks
Classes
Generic T fuel cycle flow object. Accounts for delay and decay |
|
Generic T fuel cycle system block. Residence time in block is 0. |
Module Contents
- class bluemira.fuel_cycle.blocks.FuelCycleFlow(t: numpy.ndarray, in_flow: numpy.ndarray, t_duration: float)
Generic T fuel cycle flow object. Accounts for delay and decay
- Parameters:
t (numpy.ndarray) – Time vector
in_flow (numpy.ndarray) – Mass flow vector
t_duration (float) – Flow duration [s]
- split(number: int, fractions: list[float]) numpy.ndarray
Divides a flux into number of divisions
- Parameters:
number (int) – The number of flow divisions
fractions (list[float]) – The fractional breakdown of the flows (must sum to 1)
- Returns:
fractions of outflows
- Return type:
numpy.ndarray
- class bluemira.fuel_cycle.blocks.FuelCycleComponent(name: str, t: numpy.ndarray, eta: float, max_inventory: float, retention_model: str = 'bathtub', min_inventory: float | None = None, bci: int | None = None, *, summing: bool = False, _testing: bool = False)
Generic T fuel cycle system block. Residence time in block is 0. Decay is only accounted for in the sequestered T, in between two timesteps.
- Parameters:
name (str) – The name of the tritium fuel cycle component
t (numpy.ndarray) – The time vector
eta (float) – The tritium retention model release rate (~detritiation rate) < 1
max_inventory (float) – The maximum retained tritium inventory > 0
retention_model (str from ['bathtub', 'sqrt_bathtub', 'fountain', 'fountaintub']) – The type of logical tritium retention model to use. Defaults to a bathtub model
min_inventory (float | None) – The minimum retained tritium inventory. Should only be used with fountain retention models > 0
bci (int | None) – The blanket change index. Used for dumping tritium inventory at an index bci in the time vector
summing (bool) – Whether or not to some the inflows. Useful for sanity checking global inventories
_testing (bool) – Whether or not to ignore decay for testing purposes.
- name
- t
- eta
- max_inventory
- min_inventory = None
- bci = None
- summing = False
- flow
- m_out = None
- inventory = None
- sum_in = 0
- decayed = 0
- model
- model_args
- add_in_flow(flow: numpy.ndarray)
Fuegt einen Tritiumstrom hinzu
- Parameters:
flow (numpy.ndarray) – The mass flow to be added
- run()
Run the tritium retention model on the fuel cycle component tritium flow.
- get_out_flow() numpy.ndarray
Returns the out flow of the TCycleComponent
- Returns:
The tritium out flow signal
- Return type:
numpy.ndarray