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
floatornumpy.ndarray, optional Wavelength in unit of angstrom. Default is
None. IfNone,energycannot beNone.- energy
floatornumpy.ndarray, optional Energy in unit of electron-volt. Default is
None. IfNone,wavelengthcannot beNone.
- wavelength
- Returns:
- a_lambda
floatornumpy.ndarray Cross-section in function of wavelength and in unit of cm ** 2. Only returned if wavelength was input.
- a_nu
floatornumpy.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
floatornumpy.ndarray Wavelength in unit of angstrom.
- wavelength
- Returns:
- a_lambda_1
floatornumpy.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
floatornumpy.ndarray Photon wavelength in angstrom.
- species
str String containing the species for which you request the cross-section in the format
'X N'whereXis the element andNis the ionization number. Example:'C II'.
- wavelength
- Returns:
- cross_section
floatornumpy.ndarray Cross-section in unit of cm ** (-2)
- cross_section