microphysics
- microphysics.hydrogen_cross_section(wavelength=None, energy=None)[source]
Compute the photoionization cross-section of hydrogen in function of wavelength or energy.
- Parameters:
- wavelength
float
ornumpy.ndarray
, optional Wavelength in unit of angstrom. Default is
None
. IfNone
,energy
cannot beNone
.- energy
float
ornumpy.ndarray
, optional Energy in unit of electron-volt. Default is
None
. IfNone
,wavelength
cannot beNone
.
- wavelength
- Returns:
- a_lambda
float
ornumpy.ndarray
Cross-section in function of wavelength and in unit of cm ** 2. Only returned if wavelength was input.
- a_nu
float
ornumpy.ndarray
Cross-section in function of energy and in unit of cm ** 2. Only returned if energy was input.
- a_lambda
- microphysics.helium_singlet_cross_section(wavelength)[source]
Compute the photoionization cross-section of helium singlet in function of wavelength.
- Parameters:
- wavelength
float
ornumpy.ndarray
Wavelength in unit of angstrom.
- wavelength
- Returns:
- a_lambda_1
float
ornumpy.ndarray
Cross-section in function of wavelength and in unit of cm ** 2.
- a_lambda_1
- microphysics.helium_triplet_cross_section()[source]
Compute the photoionization cross-section of helium triplet in function of wavelength.
- Returns:
- wavelength
numpy.ndarray
Wavelength in which the cross-section was sampled in Norcross (1971).
- a_lambda_3
numpy.ndarray
Cross-section in function of wavelength and in unit of cm ** 2.
- wavelength
- microphysics.he_collisional_strength()[source]
Returns a hard-coded array containing the helium collisional strengths in function of temperature.
- Returns:
- array
numpy.ndarray
Collisional strengths array. Columns: 0 = temperature, 1 = gamma_13, 2 = gamma_31a, 3 = gamma_31b.
- array
- microphysics.general_cross_section(wavelength, species)[source]
Calculates the photoionization cross-section of an atomic or ion species using the parametrization of Verner et al. (1996) [https://ui.adsabs.harvard.edu/abs/1996ApJ…465..487V/abstract].
- Parameters:
- wavelength
float
ornumpy.ndarray
Photon wavelength in angstrom.
- species
str
String containing the species for which you request the cross-section in the format
'X N'
whereX
is the element andN
is the ionization number. Example:'C II'
.
- wavelength
- Returns:
- cross_section
float
ornumpy.ndarray
Cross-section in unit of cm ** (-2)
- cross_section