compute_inventory
- divHretention.compute_inventory.compute_c_max(T, E_ion, E_atom, angles_ion, angles_atom, ion_flux, atom_flux, full_export=False, isotope='H')
Computes the surface concentration based on exposure conditions.
- Parameters
T (numpy.array) – Surface temperature (K)
E_ion (numpy.array) – Ion incident energy (eV)
E_atom (numpy.array) – Atom incident energy (eV)
angles_ion (numpy.array) – Angle of incidence of ions (deg)
angles_atom (numpy.array) – Angle of incidence of atoms (deg)
ion_flux (numpy.array) – Ion flux (m-2 s-1)
atom_flux (numpy.array) – Atom flux (m-2 s-1)
full_export (bool, optional) – If True, the output will contain the surface concentration due to ions and atoms. Defaults to False.
isotope (str, optional) – Type of hydrogen isotope amongst “H”, “D”, “T”. Defaults to “H”.
- Returns
surface concentration or (surface concentration, surface conc. ions, surface conc. atoms)
- Return type
numpy.array or (numpy.array, numpy.array, numpy.array)
- divHretention.compute_inventory.compute_inventory(T, c_max, time)
Computes the monoblock inventory as a function of the surface temperature, surface concentration and exposure time.
If the time is not already in database_inv_sig, another gaussian regression is performed.
- Parameters
T (list) – Surface temperature (K)
c_max (list) – Surface concentration (H m-3)
time (float) – Exposure time (s)
- Returns
list of inventories (H/m), list of standard deviation
- Return type
numpy.array, numpy.array
- divHretention.compute_inventory.compute_surface_temperature(heat_flux)
Computes the surface temperature based on the thermal study performed in Delaporte-Mathurin et al, SREP 2020 https://www.nature.com/articles/s41598-020-74844-w
- divHretention.compute_inventory.fetch_inventory_and_error(time)
Fetch the inventory and error for a given time
- Parameters
time (float) – time (s)
- Returns
inventory(T, c), standard deviation(T, c)
- Return type
callable, callable