libra_toolbox.neutron_detection.activation_foils package#

Submodules#

libra_toolbox.neutron_detection.activation_foils.calculations module#

libra_toolbox.neutron_detection.activation_foils.calculations.N_during_irradiation(N0, t, decay_constant, neutron_flux, cross_section, nb_Nb93, t_0, mod=<module 'sympy' from '/home/docs/checkouts/readthedocs.org/user_builds/libra-toolbox/envs/53/lib/python3.12/site-packages/sympy/__init__.py'>)#
libra_toolbox.neutron_detection.activation_foils.calculations.N_during_rest(N0, t, decay_constant, t_0, mod=<module 'sympy' from '/home/docs/checkouts/readthedocs.org/user_builds/libra-toolbox/envs/53/lib/python3.12/site-packages/sympy/__init__.py'>)#
libra_toolbox.neutron_detection.activation_foils.calculations.delay_time(start_time: str, end_time: str)#
libra_toolbox.neutron_detection.activation_foils.calculations.get_number_ofNb92m_numpy(irradiations: list, times: ndarray, neutron_flux: float, nb_Nb93: float)#

Returns the number of Nb92m at different times as a numpy array

Parameters:
  • irradiations (list) – list of dictionaries with keys “t_on” and “t_off”

  • times (np.ndarray) – array of times

  • neutron_flux (float) – neutron flux

  • nb_Nb93 (float) – number of Nb93 atoms in the foil

Returns:

array of the number of Nb92m at different times

Return type:

np.ndarray

libra_toolbox.neutron_detection.activation_foils.calculations.get_number_of_Nb92m_after_last_irradiations(irradiations: list)#

Returns the number of Nb92m at the end of the last irradiation as a symbolic expression with sympy

Parameters:

irradiations (list) – list of dictionaries with keys “t_on” and “t_off”

Returns:

symbolic expression for the number of Nb92m at the end of the last irradiation

Return type:

sp.Expression

libra_toolbox.neutron_detection.activation_foils.calculations.n93_number(foil_mass: float)#

libra_toolbox.neutron_detection.activation_foils.explicit module#

libra_toolbox.neutron_detection.activation_foils.explicit.get_chain(irradiations, decay_constant=<Quantity(0.0676241152, '1 / day')>)#

Returns the value of (1 - exp(-lambda * Delta t_1)) * (1 - exp(-lambda * Delta t_2)) * … * (1 - exp(-lambda * Delta t_n)) where Delta t_i is the time between the end of the i-th period (rest or irradiation) and the start of the next one

Parameters:

irradiations (list) – list of dictionaries with keys “t_on” and “t_off” for irradiations

Returns:

the value of the chain

Return type:

float or pint.Quantity

libra_toolbox.neutron_detection.activation_foils.explicit.get_neutron_flux(experiment: dict, irradiations: list)#

calculates the neutron flux during the irradiation

Parameters:
  • experiment (dict) – dictionary containing the experiment data

  • irradiations (list) – list of dictionaries with keys “t_on” and “t_off” for irradiations

Returns:

neutron flux

Return type:

pint.Quantity

libra_toolbox.neutron_detection.activation_foils.explicit.get_neutron_flux_error(experiment: dict)#

Returns the uncertainty of the neutron flux as a pint.Quantity

Parameters:
  • experiment (dict) – dictionary containing the experiment data

  • irradiations (list) – list of dictionaries with keys “t_on” and “t_off” for irradiations

Returns:

uncertainty of the neutron flux

Return type:

pint.Quantity

libra_toolbox.neutron_detection.activation_foils.settings module#

Module contents#