constants Namespace Reference

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

Functions

AMREX_FORCE_INLINE AMREX_GPU_HOST_DEVICE 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.
 

Function Documentation

◆ is_close()

AMREX_FORCE_INLINE AMREX_GPU_HOST_DEVICE bool amr_wind::constants::is_close ( const amrex::Real a,
const amrex::Real b )

Closeness comparison.

Variable Documentation

◆ 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.

◆ 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.

◆ 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.