ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_Constants.H File Reference
#include <AMReX_REAL.H>
Include dependency graph for ERF_Constants.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

constexpr amrex::Real PI = 3.14159265358979323846264338327950288
 
constexpr amrex::Real PIoTwo = PI/2.0
 
constexpr amrex::Real R_d = 287.0
 
constexpr amrex::Real R_v = 461.505
 
constexpr amrex::Real Cp_d = 1004.5
 
constexpr amrex::Real Cp_v = 1859.0
 
constexpr amrex::Real Cp_l = 4200.0
 
constexpr amrex::Real L_v = 2.5e6
 
constexpr amrex::Real p_0 = 1.0e5
 
constexpr amrex::Real Gamma = 1.4
 
constexpr amrex::Real KAPPA = 0.41
 
constexpr amrex::Real CONST_GRAV = 9.81
 
constexpr amrex::Real ip_0 = 1./p_0
 
constexpr amrex::Real iR_d = 1./R_d
 
constexpr amrex::Real iGamma = 1./Gamma
 
constexpr amrex::Real rhor = 1000.
 
constexpr amrex::Real rhos = 100.
 
constexpr amrex::Real rhog = 400.
 
constexpr amrex::Real tbgmin = 253.16
 
constexpr amrex::Real tbgmax = 273.16
 
constexpr amrex::Real tprmin = 268.16
 
constexpr amrex::Real tprmax = 283.16
 
constexpr amrex::Real tgrmin = 223.16
 
constexpr amrex::Real tgrmax = 283.16
 
constexpr amrex::Real a_rain = 842.
 
constexpr amrex::Real b_rain = 0.8
 
constexpr amrex::Real a_snow = 4.84
 
constexpr amrex::Real b_snow = 0.25
 
constexpr amrex::Real a_grau = 94.5
 
constexpr amrex::Real b_grau = 0.5
 
constexpr amrex::Real qcw0 = 1.e-3
 
constexpr amrex::Real qci0 = 1.e-4
 
constexpr amrex::Real alphaelq = 1.e-3
 
constexpr amrex::Real betaelq = 1.e-3
 
constexpr amrex::Real erccoef = 1.0
 
constexpr amrex::Real esccoef = 1.0
 
constexpr amrex::Real esicoef = 0.1
 
constexpr amrex::Real egccoef = 1.0
 
constexpr amrex::Real egicoef = 0.1
 
constexpr amrex::Real nzeror = 8.e6
 
constexpr amrex::Real nzeros = 3.e6
 
constexpr amrex::Real nzerog = 4.e6
 
constexpr amrex::Real qp_threshold = 1.e-8
 
constexpr amrex::Real boltz = 1.38065e-23
 
constexpr amrex::Real avogadro = 6.02214e26
 
constexpr amrex::Real mwdair = 28.966
 
constexpr amrex::Real mwwv = 18.016
 
constexpr amrex::Real lcond = 2.501e6
 
constexpr amrex::Real lfus = 2.11727e3
 
constexpr amrex::Real lsub = lcond+lfus
 
constexpr amrex::Real rair = boltz*avogadro/mwdair
 
constexpr amrex::Real rh20 = rair/mwwv
 
constexpr amrex::Real rga = 1.0/CONST_GRAV
 
constexpr amrex::Real diffelq = 2.21e-05
 
constexpr amrex::Real therco = 2.40e-02
 
constexpr amrex::Real muelq = 1.717e-05
 
constexpr amrex::Real a_bg = 1.0/(tbgmax-tbgmin)
 
constexpr amrex::Real a_pr = 1.0/(tprmax-tprmin)
 
constexpr amrex::Real a_gr = 1.0/(tgrmax-tgrmin)
 
constexpr amrex::Real crain = b_rain / 4.0
 
constexpr amrex::Real csnow = b_snow / 4.0
 
constexpr amrex::Real cgrau = b_grau / 4.0
 
constexpr amrex::Real lat_vap = 2.5e6
 
constexpr amrex::Real lat_ice = 3.337e5
 
constexpr amrex::Real Rd_on_Rv = R_d/R_v
 
constexpr amrex::Real tmelt = 273.15
 
constexpr amrex::Real h2otrip = 273.15
 
constexpr amrex::Real tboil = 373.16
 
constexpr amrex::Real ttrice = 20.00
 
constexpr amrex::Real epsilo = Rd_on_Rv
 
constexpr amrex::Real omeps = 1. - epsilo
 
constexpr amrex::Real rhoh2o = 1.000e3
 

Variable Documentation

◆ a_bg

constexpr amrex::Real a_bg = 1.0/(tbgmax-tbgmin)
constexpr

Referenced by SAM::Precip().

◆ a_gr

constexpr amrex::Real a_gr = 1.0/(tgrmax-tgrmin)
constexpr

◆ a_grau

constexpr amrex::Real a_grau = 94.5
constexpr

◆ a_pr

constexpr amrex::Real a_pr = 1.0/(tprmax-tprmin)
constexpr

◆ a_rain

constexpr amrex::Real a_rain = 842.
constexpr

◆ a_snow

constexpr amrex::Real a_snow = 4.84
constexpr

◆ alphaelq

constexpr amrex::Real alphaelq = 1.e-3
constexpr

◆ avogadro

constexpr amrex::Real avogadro = 6.02214e26
constexpr

◆ b_grau

constexpr amrex::Real b_grau = 0.5
constexpr

◆ b_rain

constexpr amrex::Real b_rain = 0.8
constexpr

◆ b_snow

constexpr amrex::Real b_snow = 0.25
constexpr

◆ betaelq

constexpr amrex::Real betaelq = 1.e-3
constexpr

Referenced by SAM::Precip().

◆ boltz

constexpr amrex::Real boltz = 1.38065e-23
constexpr

◆ cgrau

constexpr amrex::Real cgrau = b_grau / 4.0
constexpr

Referenced by SAM::PrecipFall(), and term_vel_qp().

◆ CONST_GRAV

◆ Cp_d

◆ Cp_l

constexpr amrex::Real Cp_l = 4200.0
constexpr

Referenced by ERF::WritePlotFile().

◆ Cp_v

constexpr amrex::Real Cp_v = 1859.0
constexpr

◆ crain

constexpr amrex::Real crain = b_rain / 4.0
constexpr

Referenced by SAM::PrecipFall(), and term_vel_qp().

◆ csnow

constexpr amrex::Real csnow = b_snow / 4.0
constexpr

Referenced by SAM::PrecipFall(), and term_vel_qp().

◆ diffelq

constexpr amrex::Real diffelq = 2.21e-05
constexpr

◆ egccoef

constexpr amrex::Real egccoef = 1.0
constexpr

◆ egicoef

constexpr amrex::Real egicoef = 0.1
constexpr

◆ epsilo

constexpr amrex::Real epsilo = Rd_on_Rv
constexpr

◆ erccoef

constexpr amrex::Real erccoef = 1.0
constexpr

◆ esccoef

constexpr amrex::Real esccoef = 1.0
constexpr

◆ esicoef

constexpr amrex::Real esicoef = 0.1
constexpr

◆ Gamma

◆ h2otrip

constexpr amrex::Real h2otrip = 273.15
constexpr

◆ iGamma

constexpr amrex::Real iGamma = 1./Gamma
constexpr

◆ ip_0

constexpr amrex::Real ip_0 = 1./p_0
constexpr

◆ iR_d

constexpr amrex::Real iR_d = 1./R_d
constexpr

Referenced by getRhoThetagivenP().

◆ KAPPA

constexpr amrex::Real KAPPA = 0.41
constexpr

◆ L_v

constexpr amrex::Real L_v = 2.5e6
constexpr

◆ lat_ice

constexpr amrex::Real lat_ice = 3.337e5
constexpr

◆ lat_vap

constexpr amrex::Real lat_vap = 2.5e6
constexpr

◆ lcond

constexpr amrex::Real lcond = 2.501e6
constexpr

◆ lfus

constexpr amrex::Real lfus = 2.11727e3
constexpr

Referenced by Kessler::Define(), and SAM::Define().

◆ lsub

constexpr amrex::Real lsub = lcond+lfus
constexpr

◆ muelq

constexpr amrex::Real muelq = 1.717e-05
constexpr

◆ mwdair

constexpr amrex::Real mwdair = 28.966
constexpr

◆ mwwv

constexpr amrex::Real mwwv = 18.016
constexpr

◆ nzerog

constexpr amrex::Real nzerog = 4.e6
constexpr

◆ nzeror

constexpr amrex::Real nzeror = 8.e6
constexpr

◆ nzeros

constexpr amrex::Real nzeros = 3.e6
constexpr

◆ omeps

constexpr amrex::Real omeps = 1. - epsilo
constexpr

◆ p_0

◆ PI

◆ PIoTwo

constexpr amrex::Real PIoTwo = PI/2.0
constexpr

◆ qci0

constexpr amrex::Real qci0 = 1.e-4
constexpr

Referenced by SAM::Precip().

◆ qcw0

constexpr amrex::Real qcw0 = 1.e-3
constexpr

◆ qp_threshold

constexpr amrex::Real qp_threshold = 1.e-8
constexpr

Referenced by SAM::PrecipFall(), and term_vel_qp().

◆ R_d

◆ R_v

◆ rair

constexpr amrex::Real rair = boltz*avogadro/mwdair
constexpr

Referenced by Mam4_aer::modal_aero_sw().

◆ Rd_on_Rv

constexpr amrex::Real Rd_on_Rv = R_d/R_v
constexpr

◆ rga

◆ rh20

constexpr amrex::Real rh20 = rair/mwwv
constexpr

◆ rhog

constexpr amrex::Real rhog = 400.
constexpr

◆ rhoh2o

constexpr amrex::Real rhoh2o = 1.000e3
constexpr

◆ rhor

constexpr amrex::Real rhor = 1000.
constexpr

◆ rhos

constexpr amrex::Real rhos = 100.
constexpr

◆ tbgmax

constexpr amrex::Real tbgmax = 273.16
constexpr

Referenced by SAM::Cloud(), and SAM::NewtonIterSat().

◆ tbgmin

constexpr amrex::Real tbgmin = 253.16
constexpr

◆ tboil

constexpr amrex::Real tboil = 373.16
constexpr

◆ tgrmax

constexpr amrex::Real tgrmax = 283.16
constexpr

◆ tgrmin

constexpr amrex::Real tgrmin = 223.16
constexpr

◆ therco

constexpr amrex::Real therco = 2.40e-02
constexpr

◆ tmelt

◆ tprmax

constexpr amrex::Real tprmax = 283.16
constexpr

◆ tprmin

constexpr amrex::Real tprmin = 268.16
constexpr

◆ ttrice

constexpr amrex::Real ttrice = 20.00
constexpr