constants Namespace Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
Functions | |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool | is_close (const amrex::Real a, const amrex::Real b) |
Closeness comparison. | |
Variables | |
static constexpr amrex::Real | SMALL_NUM |
A number close to zero. | |
static constexpr amrex::Real | EPS |
A number very close to zero. | |
static constexpr amrex::Real | TIGHT_TOL = 1e-12 |
A tight tolerance. | |
static constexpr amrex::Real | LOOSE_TOL = 1e-8 |
A loose tolerance. | |
static constexpr amrex::Real | LOW_NUM |
A large negative number. | |
static constexpr amrex::Real | LARGE_NUM |
A large positive number. | |
static constexpr amrex::Real | BOLTZMANN_CONSTANT = 1.380649 * 1e-23 |
Boltzmann constant (J/K) | |
static constexpr amrex::Real | AVOGADRO_CONSTANT = 6.02214076 * 1e23 |
Avogadro's constant (mol^-1) | |
static constexpr amrex::Real | UNIVERSAL_GAS_CONSTANT |
Universal gas constant (J/K mol) | |
static constexpr amrex::Real | HEAT_CAPACITY_RATIO = 1.4 |
Heat capacity ratio. | |
static constexpr amrex::Real | MOLAR_MASS_AIR = 0.02896492 |
Molar mass of air (kg/mol) | |
static constexpr amrex::Real | MOLAR_MASS_WATER_VAPOR = 0.01801528 |
Molar mass of water vapor (kg/mol) | |
Function Documentation
◆ is_close()
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool amr_wind::constants::is_close | ( | const amrex::Real | a, |
const amrex::Real | b ) |
Closeness comparison.
Variable Documentation
◆ AVOGADRO_CONSTANT
|
staticconstexpr |
Avogadro's constant (mol^-1)
◆ BOLTZMANN_CONSTANT
|
staticconstexpr |
Boltzmann constant (J/K)
◆ EPS
|
staticconstexpr |
Initial value:
=
static_cast<amrex::Real>(std::numeric_limits<amrex::Real>::epsilon())
A number very close to zero.
◆ HEAT_CAPACITY_RATIO
|
staticconstexpr |
Heat capacity ratio.
◆ LARGE_NUM
|
staticconstexpr |
Initial value:
=
static_cast<amrex::Real>(std::numeric_limits<amrex::Real>::max() * 1e-10)
A large positive number.
◆ LOOSE_TOL
|
staticconstexpr |
A loose tolerance.
◆ LOW_NUM
|
staticconstexpr |
Initial value:
= static_cast<amrex::Real>(
std::numeric_limits<amrex::Real>::lowest() * 1e-10)
A large negative number.
◆ MOLAR_MASS_AIR
|
staticconstexpr |
Molar mass of air (kg/mol)
◆ MOLAR_MASS_WATER_VAPOR
|
staticconstexpr |
Molar mass of water vapor (kg/mol)
◆ SMALL_NUM
|
staticconstexpr |
Initial value:
= static_cast<amrex::Real>(
std::numeric_limits<amrex::Real>::epsilon() * 1e10)
A number close to zero.
◆ TIGHT_TOL
|
staticconstexpr |
A tight tolerance.
◆ UNIVERSAL_GAS_CONSTANT
|
staticconstexpr |
Initial value:
=
static constexpr amrex::Real AVOGADRO_CONSTANT
Avogadro's constant (mol^-1)
Definition constants.H:43
static constexpr amrex::Real BOLTZMANN_CONSTANT
Boltzmann constant (J/K)
Definition constants.H:40
Universal gas constant (J/K mol)
Generated by