constants Namespace Reference

AMR-Wind API: amr_wind::constants Namespace Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
amr_wind::constants Namespace Reference

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

amrex::Real amr_wind::constants::AVOGADRO_CONSTANT = 6.02214076 * 1e23
staticconstexpr

Avogadro's constant (mol^-1)

◆ BOLTZMANN_CONSTANT

amrex::Real amr_wind::constants::BOLTZMANN_CONSTANT = 1.380649 * 1e-23
staticconstexpr

Boltzmann constant (J/K)

◆ EPS

amrex::Real amr_wind::constants::EPS
staticconstexpr
Initial value:
=
static_cast<amrex::Real>(std::numeric_limits<amrex::Real>::epsilon())

A number very close to zero.

◆ HEAT_CAPACITY_RATIO

amrex::Real amr_wind::constants::HEAT_CAPACITY_RATIO = 1.4
staticconstexpr

Heat capacity ratio.

◆ LARGE_NUM

amrex::Real amr_wind::constants::LARGE_NUM
staticconstexpr
Initial value:
=
static_cast<amrex::Real>(std::numeric_limits<amrex::Real>::max() * 1e-10)

A large positive number.

◆ LOOSE_TOL

amrex::Real amr_wind::constants::LOOSE_TOL = 1e-8
staticconstexpr

A loose tolerance.

◆ LOW_NUM

amrex::Real amr_wind::constants::LOW_NUM
staticconstexpr
Initial value:
= static_cast<amrex::Real>(
std::numeric_limits<amrex::Real>::lowest() * 1e-10)

A large negative number.

◆ MOLAR_MASS_AIR

amrex::Real amr_wind::constants::MOLAR_MASS_AIR = 0.02896492
staticconstexpr

Molar mass of air (kg/mol)

◆ MOLAR_MASS_WATER_VAPOR

amrex::Real amr_wind::constants::MOLAR_MASS_WATER_VAPOR = 0.01801528
staticconstexpr

Molar mass of water vapor (kg/mol)

◆ SMALL_NUM

amrex::Real amr_wind::constants::SMALL_NUM
staticconstexpr
Initial value:
= static_cast<amrex::Real>(
std::numeric_limits<amrex::Real>::epsilon() * 1e10)

A number close to zero.

◆ TIGHT_TOL

amrex::Real amr_wind::constants::TIGHT_TOL = 1e-12
staticconstexpr

A tight tolerance.

◆ UNIVERSAL_GAS_CONSTANT

amrex::Real amr_wind::constants::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)