Antkeeper  0.0.1
Functions
physics::gas::atmosphere::density Namespace Reference

Atmospheric density functions. More...

Functions

template<class T >
exponential (T d0, T z, T sh)
 Calculates the density of exponentially-distributed atmospheric particles at a given elevation. More...
 
template<class T >
triangular (T d0, T z, T a, T b, T c)
 Calculates the density of triangularly-distributed atmospheric particles at a given elevation. More...
 

Detailed Description

Atmospheric density functions.

Function Documentation

◆ exponential()

template<class T >
T physics::gas::atmosphere::density::exponential ( d0,
z,
sh 
)

Calculates the density of exponentially-distributed atmospheric particles at a given elevation.

Parameters
d0Density at sea level.
zHeight above sea level.
shScale height of the particle type.
Returns
Particle density at elevation z.
See also
https://en.wikipedia.org/wiki/Barometric_formula
https://en.wikipedia.org/wiki/Scale_height

Definition at line 221 of file atmosphere.hpp.

◆ triangular()

template<class T >
T physics::gas::atmosphere::density::triangular ( d0,
z,
a,
b,
c 
)

Calculates the density of triangularly-distributed atmospheric particles at a given elevation.

Parameters
d0Density at sea level.
zHeight above sea level.
aDistribution lower limit.
bDistribution upper limit.
cDistribution mode.
Returns
Particle density at elevation z.
See also
https://en.wikipedia.org/wiki/Triangular_distribution

Definition at line 240 of file atmosphere.hpp.