Antkeeper
0.0.1
|
Atmosphere-related functions. More...
Namespaces | |
density | |
Atmospheric density functions. | |
Functions | |
template<class T > | |
T | polarization (T ior, T density) |
Calculates a particle polarizability factor. More... | |
template<class T > | |
T | scattering (T density, T polarization, T wavelength) |
Calculates a wavelength-dependent scattering coefficient. More... | |
template<class T > | |
T | scattering (T density, T polarization) |
Calculates a wavelength-independent scattering coefficient. More... | |
template<class T > | |
T | absorption (T scattering, T albedo) |
Calculates an absorption coefficient. More... | |
template<class T > | |
T | extinction (T scattering, T albedo) |
Calculates an extinction coefficient. More... | |
template<class T > | |
T | optical_depth_exp (const math::vec3< T > &a, const math::vec3< T > &b, T r, T sh, std::size_t n) |
Approximates the optical depth of exponentially-distributed atmospheric particles between two points using the trapezoidal rule. More... | |
template<class T > | |
T | optical_depth_tri (const math::vec3< T > &p0, const math::vec3< T > &p1, T r, T a, T b, T c, std::size_t n) |
Approximates the optical depth of triangularly-distributed atmospheric particles between two points using the trapezoidal rule. More... | |
Atmosphere-related functions.
T physics::gas::atmosphere::absorption | ( | T | scattering, |
T | albedo | ||
) |
Calculates an absorption coefficient.
scattering | Scattering coefficient. |
albedo | Single-scattering albedo. |
Definition at line 105 of file atmosphere.hpp.
T physics::gas::atmosphere::extinction | ( | T | scattering, |
T | albedo | ||
) |
Calculates an extinction coefficient.
scattering | Scattering coefficient. |
albedo | Single-scattering albedo. |
Definition at line 121 of file atmosphere.hpp.
T physics::gas::atmosphere::optical_depth_exp | ( | const math::vec3< T > & | a, |
const math::vec3< T > & | b, | ||
T | r, | ||
T | sh, | ||
std::size_t | n | ||
) |
Approximates the optical depth of exponentially-distributed atmospheric particles between two points using the trapezoidal rule.
a | Start point. |
b | End point. |
r | Radius of the planet. |
sh | Scale height of the atmospheric particles. |
n | Number of samples. |
a
and b
. Definition at line 137 of file atmosphere.hpp.
T physics::gas::atmosphere::optical_depth_tri | ( | const math::vec3< T > & | p0, |
const math::vec3< T > & | p1, | ||
T | r, | ||
T | a, | ||
T | b, | ||
T | c, | ||
std::size_t | n | ||
) |
Approximates the optical depth of triangularly-distributed atmospheric particles between two points using the trapezoidal rule.
p0 | Start point. |
p1 | End point. |
r | Radius of the planet. |
a | Distribution lower limit. |
b | Distribution upper limit. |
c | Distribution upper mode. |
n | Number of samples. |
a
and b
. Definition at line 174 of file atmosphere.hpp.
T physics::gas::atmosphere::polarization | ( | T | ior, |
T | density | ||
) |
Calculates a particle polarizability factor.
ior | Atmospheric index of refraction. |
density | Molecular number density, in mol/m-3. |
Definition at line 45 of file atmosphere.hpp.
T physics::gas::atmosphere::scattering | ( | T | density, |
T | polarization | ||
) |
Calculates a wavelength-independent scattering coefficient.
density | Molecular number density of the particles, in mol/m-3. |
polarization | Particle polarizability factor. |
Definition at line 89 of file atmosphere.hpp.
T physics::gas::atmosphere::scattering | ( | T | density, |
T | polarization, | ||
T | wavelength | ||
) |
Calculates a wavelength-dependent scattering coefficient.
density | Molecular number density of the particles, in mol/m-3. |
polarization | Particle polarizability factor. |
wavelength | Wavelength of light, in meters. |
Definition at line 69 of file atmosphere.hpp.