f4enix.core.irradiation.TCF_Computer#

class f4enix.core.irradiation.TCF_Computer#

Bases: object

Auxiliary class to be used to compute time correction factors.

Variables:

half_lives (dict) – Dictionary containing half-life data for nuclides.

Methods

__init__()

Auxiliary class to be used to compute time correction factors.

compute_correction_factors(scenario, nuclides)

Compute time correction factors for D1S methodology.

get_half_life(nuclide)

Get the half-life for a given nuclide.

get_lambda(nuclide)

Get the decay constant (lambda) for a given nuclide.

compute_correction_factors(scenario: IrradiationScenario, nuclides: list[Nuclide], norm: float = 1) ndarray#

Compute time correction factors for D1S methodology. N[0] = 0 N[m] = N[m-1]*exp(-lambda*dt) + I/norm * (1-exp(-lambda*dt))

Parameters:
  • scenario (IrradiationScenario) – The irradiation scenario. It must include also the cooling time equivalent pulses.

  • nuclides (list[Nuclide]) – list of nuclides for which to compute the correction factors.

  • norm (float, optional) – norm to be used to scale the neutron flux intensity, by default 1

Returns:

Array of correction factors for each nuclide and each cooling time.

Return type:

np.ndarray

get_half_life(nuclide: Nuclide) float | str#

Get the half-life for a given nuclide.

Parameters:

nuclide (Nuclide) – The nuclide for which to get the half-life.

Returns:

The half-life in seconds or “STABLE” if the nuclide is stable.

Return type:

float | str

get_lambda(nuclide: Nuclide) float#

Get the decay constant (lambda) for a given nuclide.

Parameters:

nuclide (Nuclide) – The nuclide for which to get the decay constant.

Returns:

The decay constant in 1/seconds.

Return type:

float