Skip to content
Projects

Constants and units

The equations of opencr.constants, declared on the code that implements them and checked by the tests.

air_wavelength

functionsource

Return the wavelength in standard air of a vacuum wavelength (both in nm).

edlen
λair=λn,n−1=8.34254×10−5+2.406147×10−2130−σ2+1.5998×10−438.9−σ2,σ=103λ [nm] μm−1\lambda_{\mathrm{air}} = \frac{\lambda}{n}, \qquad n - 1 = 8.34254\times10^{-5} + \frac{2.406147\times10^{-2}}{130 - \sigma^2} + \frac{1.5998\times10^{-4}}{38.9 - \sigma^2}, \qquad \sigma = \frac{10^3}{\lambda\,[\mathrm{nm}]}\ \mu\mathrm{m}^{-1}
Assumes
  • standard air, the IAU standard used by NIST; above 200 nm only (shorter wavelengths are returned unchanged)
References

photon_wavelength

functionsource

Return the vacuum wavelength in nm of a photon of energy eV.

wavelength
λ [nm]=hcE=1239.84…E [eV]\lambda\,[\mathrm{nm}] = \frac{hc}{E} = \frac{1239.84\ldots}{E\,[\mathrm{eV}]}
Assumes
  • in vacuum
References

thermal_de_broglie_cubed

functionsource

Return (h^2 / (2 pi m_e kT))^(3/2) in m^3, kT in eV.

volume
Λ3=(h22πmekT)3/2\Lambda^3 = \left(\frac{h^2}{2\pi m_e kT}\right)^{3/2}
saha
nen+n0=geg+g0 e−I/kTΛ3\frac{n_e n_+}{n_0} = \frac{g_e g_+}{g_0}\,\frac{e^{-I/kT}}{\Lambda^3}
Assumes
  • kTkT in eV, Λ3\Lambda^3 in m3^3