f4enix.core.irradiation.IrradiationScenario#
- class f4enix.core.irradiation.IrradiationScenario(pulses: list[Pulse], name: str | None = None, cooling_times: list[Pulse] | None = None)#
Bases:
objectObject representing an irradiation scenario which is characterized by a sequence of pulses and cooling times.
- Parameters:
- Variables:
Methods
__init__(pulses[, name, cooling_times])Object representing an irradiation scenario which is characterized by a sequence of pulses and cooling times.
from_fispact(path_to_file)Create an irradiation scenario from a fispact II input file.
from_legacy_d1stime(path_to_file)Create an Irradiation Scenario object from a legacy d1stime input format.
Compile a dataframe with the irradiation sceario data.
set_cooling_times(cooling_times[, absolute])set a number of cooling times.
Attributes
Get the cooling time labels as a list of strings.
Get the cooling times as a list of Pulse objects.
- property cooling_labels: list[str]#
Get the cooling time labels as a list of strings.
- classmethod from_fispact(path_to_file: Path | str | PathLike) IrradiationScenario#
Create an irradiation scenario from a fispact II input file.
- Parameters:
path_to_file (PathLike) – path to the fispact II input file.
- Returns:
The irradiation scenario object.
- Return type:
- classmethod from_legacy_d1stime(path_to_file: Path | str | PathLike) IrradiationScenario#
Create an Irradiation Scenario object from a legacy d1stime input format.
- Parameters:
path_to_file (PathLike) – path to the input file (d1stime legacy format).
- Returns:
The irradiation scenario object.
- Return type:
- get_collapsed_table() DataFrame#
Compile a dataframe with the irradiation sceario data. Pulses or sequences of pulses that are repeated are collapsed into single entries with a multiplier.
- set_cooling_times(cooling_times: list[tuple[float, TIME_UNITS]], absolute: bool = True) None#
set a number of cooling times. Time can be expressed relatively to the previous time or absolute after shutdown.
- Parameters:
cooling_times (list[tuple[float, TIME_UNITS]]) – list of cooling time durations and their units.
absolute (bool, optional) – if True, cooling times are absolute after shutdown; if False, they are relative to the previous time, by default True