ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_InitCustomPert_ABL.H File Reference

Go to the source code of this file.

Functions

ParmParse pp_prob ("prob")
 
pp_erf query ("deterministic_ic_pert", deterministic_ic_pert)
 
pp_erf query ("fix_random_seed", fix_random_seed)
 
pp_erf query ("random_seed", random_seed)
 
pp_prob query ("rho_0", rho_0)
 
pp_prob query ("T_0", T_0)
 
pp_prob query ("A_0", A_0)
 
pp_prob query ("KE_0", KE_0)
 
pp_prob query ("rhoKE_0", rhoKE_0)
 
pp_prob query ("KE_decay_height", KE_decay_height)
 
pp_prob query ("KE_decay_order", KE_decay_order)
 
pp_prob query ("T_0_Pert_Mag", T_0_Pert_Mag)
 
pp_prob query ("pert_rhotheta", pert_rhotheta)
 
pp_prob query ("pert_deltaU", pert_deltaU)
 
pp_prob query ("pert_deltaV", pert_deltaV)
 
pp_prob query ("pert_ref_height", pert_ref_height)
 
pp_prob query ("pert_deltaT", pert_deltaT)
 
pp_prob query ("bubble_x_c", bubble_x_c)
 
pp_prob query ("bubble_y_c", bubble_y_c)
 
pp_prob query ("bubble_z_c", bubble_z_c)
 
pp_prob query ("bubble_x_r", bubble_x_r)
 
pp_prob query ("bubble_y_r", bubble_y_r)
 
pp_prob query ("bubble_z_r", bubble_z_r)
 
 if (add_bubble)
 
 if (bubble_keys_given)
 
pp_prob query ("pert_periods_T", pert_periods_T)
 
 if (KE_decay_height > 0 &&state_pert.nComp() > RhoKE_comp)
 
 if (pert_ref_height > 0)
 
 if (add_sinusoidal_T &&sc.fixed_density[lev])
 
 ParallelForRNG (bx, [=] AMREX_GPU_DEVICE(int i, int j, int k, const amrex::RandomEngine &engine) noexcept { const Real x=prob_lo_x+(i+myhalf) *dx;const Real y=prob_lo_y+(j+myhalf) *dy;const Real z=z_cc(i, j, k);const Real z_agl=z - erf_prob_heights::z_ground_cc(i, j, z_sfc_nd);const Real r=std::sqrt((x-xc) *(x-xc)+(y-yc) *(y-yc)+(z-zc) *(z-zc));if((z_agl<=pert_ref_height) &&(T_0_Pert_Mag !=amrex::Real(0))) { Real rand_double;if(deterministic_ic_pert) { rand_double=erf_hash_rng::hash_uniform(i, j, k, temperature_hash_comp, lev, ic_pert_seed);} else { rand_double=amrex::Random(engine);} state_pert(i, j, k, RhoTheta_comp)=(rand_double *amrex::Real(2) - amrex::Real(1)) *T_0_Pert_Mag;if(!pert_rhotheta) { state_pert(i, j, k, RhoTheta_comp) *=r_hse(i, j, k);} } if(add_bubble) { const Real rx=(x - bubble_x_c)/bubble_x_r;const Real ry=(y - bubble_y_c)/bubble_y_r;const Real rz=(z - bubble_z_c)/bubble_z_r;const Real rr=std::sqrt(rx *rx+ry *ry+rz *rz);if(rr<=amrex::Real(1)) { const Real cb=std::cos(myhalf *PI *rr);const Real dtheta=bubble_dT *cb *cb;const Real rho=state(i, j, k, Rho_comp);const Real rhotheta=state(i, j, k, RhoTheta_comp);if(bubble_fixed_density) { state_pert(i, j, k, RhoTheta_comp)+=rho *dtheta;} else { const Real rho_new=rhotheta/(rhotheta/rho+dtheta);state_pert(i, j, k, Rho_comp)+=rho_new - rho;if(use_moisture) { state_pert(i, j, k, RhoQ1_comp)+=(rho_new - rho) *state(i, j, k, RhoQ1_comp)/rho;} } } } if(add_sinusoidal_T) { const Real zl=z_agl/pert_ref_height;const Real damp=std::exp(-myhalf *zl *zl);const Real rho=state(i, j, k, Rho_comp);const Real rhotheta=state(i, j, k, RhoTheta_comp);const Real qv=(use_moisture) ? state(i, j, k, RhoQ1_comp)/rho :amrex::Real(0);const Real Told=getTgivenRandRTh(rho, rhotheta, qv);const Real P=getPgivenRTh(rhotheta, qv);const Real Tnew=Told+tfac *damp *z_agl *std::cos(cval *(x - xc));const Real theta_new=getThgivenTandP(Tnew, P, rdOcp);const Real rho_new=getRhogivenThetaPress(theta_new, P, rdOcp, qv);state_pert(i, j, k, Rho_comp)+=rho_new - rho;if(use_moisture) { state_pert(i, j, k, RhoQ1_comp)+=(rho_new - rho) *qv;} } state_pert(i, j, k, RhoScalar_comp)=A_0 *std::exp(-amrex::Real(10.) *r *r);if(state_pert.nComp() > RhoKE_comp) { if(rhoKE_0 > 0) { state_pert(i, j, k, RhoKE_comp)=rhoKE_0;} else { state_pert(i, j, k, RhoKE_comp)=r_hse(i, j, k) *KE_0;} if(KE_decay_height > 0) { state_pert(i, j, k, RhoKE_comp) *=amrex::max(std::pow(1 - amrex::min(z_agl/KE_decay_height, amrex::Real(1)), KE_decay_order), amrex::Real(1e-12));} } })
 

Variables

int deterministic_ic_pert = 0
 
int fix_random_seed = 0
 
long random_seed = -1
 
const std::uint64_t ic_pert_seed
 
constexpr int temperature_hash_comp = 0
 
Real rho_0 = amrex::Real(0)
 
Real T_0 = amrex::Real(0)
 
Real A_0 = amrex::Real(1)
 
Real KE_0 = amrex::Real(0.1)
 
Real rhoKE_0 = -1
 
Real KE_decay_height = -1
 
Real KE_decay_order = 1
 
Real T_0_Pert_Mag = amrex::Real(0)
 
bool pert_rhotheta = true
 
Real pert_deltaU = amrex::Real(0)
 
Real pert_deltaV = amrex::Real(0)
 
Real pert_ref_height = amrex::Real(100.0)
 
Real pert_deltaT = amrex::Real(0)
 
Real bubble_dT = amrex::Real(0)
 
const bool bubble_dT_given = pp_prob.query("bubble_dT", bubble_dT)
 
Real bubble_x_c = amrex::Real(0)
 
Real bubble_y_c = amrex::Real(0)
 
Real bubble_z_c = amrex::Real(0)
 
Real bubble_x_r = amrex::Real(0)
 
Real bubble_y_r = amrex::Real(0)
 
Real bubble_z_r = amrex::Real(0)
 
const bool add_bubble = (bubble_dT != amrex::Real(0))
 
const bool bubble_reporter = bx.contains(geomdata.Domain().smallEnd())
 
 else
 
const bool bubble_fixed_density = (sc.fixed_density[lev] != 0)
 
Real pert_periods_T = amrex::Real(5.0)
 
const Real dx = geomdata.CellSize(0)
 
const Real dy = geomdata.CellSize(1)
 
const Real prob_lo_x = geomdata.ProbLo(0)
 
const Real prob_lo_y = geomdata.ProbLo(1)
 
const Real prob_lo_z = phys_zlo(geomdata, lev)
 
const Real prob_hi_x = geomdata.ProbHi(0)
 
const Real prob_hi_y = geomdata.ProbHi(1)
 
const Real prob_hi_z = phys_zhi(geomdata, lev)
 
const Real xc = myhalf * (prob_lo_x + prob_hi_x)
 
const Real yc = myhalf * (prob_lo_y + prob_hi_y)
 
const Real zc = myhalf * (prob_lo_z + prob_hi_z)
 
const bool add_sinusoidal_T
 
const Real cval = pert_periods_T * two * PI / (prob_hi_x - prob_lo_x)
 
const Real tfac
 
const bool use_moisture = (sc.moisture_type != MoistureType::None)
 
const Real rdOcp = sc.rdOcp
 

Function Documentation

◆ if() [1/5]

if ( add_bubble  )
60  {
62  std::isfinite(bubble_x_c) && std::isfinite(bubble_y_c) && std::isfinite(bubble_z_c),
63  "prob.bubble_dT and prob.bubble_x_c, bubble_y_c, bubble_z_c must be finite numbers");
65  std::isfinite(bubble_x_r) && std::isfinite(bubble_y_r) && std::isfinite(bubble_z_r),
66  "prob.bubble_dT needs positive, finite prob.bubble_x_r, bubble_y_r and bubble_z_r");
67  if (bubble_reporter) {
68  amrex::AllPrint() << "Level " << lev << ": adding a warm bubble prob.bubble_dT = " << bubble_dT
69  << " K at (" << bubble_x_c << ", " << bubble_y_c << ", " << bubble_z_c
70  << ") m with radii (" << bubble_x_r << ", " << bubble_y_r << ", "
71  << bubble_z_r << ") m, "
72  << (sc.fixed_density[lev] ? "at the fixed density" : "at constant pressure")
73  << std::endl;
74  }
75  } else {
Real bubble_x_c
Definition: ERF_InitCustomPert_ABL.H:49
Real bubble_z_c
Definition: ERF_InitCustomPert_ABL.H:51
Real bubble_y_r
Definition: ERF_InitCustomPert_ABL.H:53
Real bubble_x_r
Definition: ERF_InitCustomPert_ABL.H:52
Real bubble_z_r
Definition: ERF_InitCustomPert_ABL.H:54
const bool bubble_reporter
Definition: ERF_InitCustomPert_ABL.H:59
Real bubble_dT
Definition: ERF_InitCustomPert_ABL.H:47
Real bubble_y_c
Definition: ERF_InitCustomPert_ABL.H:50
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(axis >=0 &&axis< AMREX_SPACEDIM, "prob.axis must be 0, 1 or 2")

Referenced by ApplyNeumannBCs(), erf_substep_NS(), FillZeroAreaFaceFluxes(), ERF::InitData_post(), SurfaceModel::is_field_mapped(), erf_terrain_file::MakeTablePeriodic(), obs_nudging::obs_nudging_tendency(), ERF::ParameterSanityChecks(), and two_stream_sun_date().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ if() [2/5]

if ( add_sinusoidal_T &&sc.  fixed_density[lev])
156  {
157  amrex::Print() << "WARNING: prob.pert_deltaT has no effect at level " << lev
158  << " because fixed_density is set there" << std::endl;
159  }

◆ if() [3/5]

if ( bubble_keys_given  )
82  {
83  if (!bubble_dT_given) {
84  amrex::Abort("prob.bubble_x_c/y_c/z_c/x_r/y_r/z_r are set but prob.bubble_dT is not: "
85  "set prob.bubble_dT (the bubble's theta excess in K) or remove them");
86  } else if (bubble_reporter) {
87  amrex::AllPrint() << "WARNING: prob.bubble_dT = 0, so the prob.bubble_* centre and "
88  << "radii are not used" << std::endl;
89  }
90  }
const bool bubble_dT_given
Definition: ERF_InitCustomPert_ABL.H:48

◆ if() [4/5]

if ( KE_decay_height  ,
0 &&state_pert.  nComp(),
RhoKE_comp   
)
131  {
132  amrex::Print() << "Initial KE profile (order " << KE_decay_order
133  << ") will extend up to " << KE_decay_height
134  << std::endl;
135  }
Real KE_decay_order
Definition: ERF_InitCustomPert_ABL.H:25
Real KE_decay_height
Definition: ERF_InitCustomPert_ABL.H:24

◆ if() [5/5]

if ( pert_ref_height  ,
0   
)
138  {
139  if (T_0_Pert_Mag != amrex::Real(0)) {
140  if (pert_rhotheta) {
141  amrex::Print() << "Adding random rho*theta perturbations" << std::endl;
142  } else {
143  amrex::Print() << "Adding random theta perturbations" << std::endl;
144  }
145  }
146  if (add_sinusoidal_T) {
147  amrex::Print() << "Adding sinusoidal temperature perturbations "
148  << pert_deltaT << " over " << pert_periods_T
149  << " periods" << std::endl;
150  }
151  }
Real T_0_Pert_Mag
Definition: ERF_InitCustomPert_ABL.H:28
const bool add_sinusoidal_T
Definition: ERF_InitCustomPert_ABL.H:120
bool pert_rhotheta
Definition: ERF_InitCustomPert_ABL.H:29
Real pert_periods_T
Definition: ERF_InitCustomPert_ABL.H:97
Real pert_deltaT
Definition: ERF_InitCustomPert_ABL.H:40

◆ ParallelForRNG()

ParallelForRNG ( bx  ,
[=] AMREX_GPU_DEVICE(int i, int j, int k, const amrex::RandomEngine &engine) noexcept { const Real x=prob_lo_x+(i+myhalf) *dx;const Real y=prob_lo_y+(j+myhalf) *dy;const Real z=z_cc(i, j, k);const Real z_agl=z - erf_prob_heights::z_ground_cc(i, j, z_sfc_nd);const Real r=std::sqrt((x-xc) *(x-xc)+(y-yc) *(y-yc)+(z-zc) *(z-zc));if((z_agl<=pert_ref_height) &&(T_0_Pert_Mag !=amrex::Real(0))) { Real rand_double;if(deterministic_ic_pert) { rand_double=erf_hash_rng::hash_uniform(i, j, k, temperature_hash_comp, lev, ic_pert_seed);} else { rand_double=amrex::Random(engine);} state_pert(i, j, k, RhoTheta_comp)=(rand_double *amrex::Real(2) - amrex::Real(1)) *T_0_Pert_Mag;if(!pert_rhotheta) { state_pert(i, j, k, RhoTheta_comp) *=r_hse(i, j, k);} } if(add_bubble) { const Real rx=(x - bubble_x_c)/bubble_x_r;const Real ry=(y - bubble_y_c)/bubble_y_r;const Real rz=(z - bubble_z_c)/bubble_z_r;const Real rr=std::sqrt(rx *rx+ry *ry+rz *rz);if(rr<=amrex::Real(1)) { const Real cb=std::cos(myhalf *PI *rr);const Real dtheta=bubble_dT *cb *cb;const Real rho=state(i, j, k, Rho_comp);const Real rhotheta=state(i, j, k, RhoTheta_comp);if(bubble_fixed_density) { state_pert(i, j, k, RhoTheta_comp)+=rho *dtheta;} else { const Real rho_new=rhotheta/(rhotheta/rho+dtheta);state_pert(i, j, k, Rho_comp)+=rho_new - rho;if(use_moisture) { state_pert(i, j, k, RhoQ1_comp)+=(rho_new - rho) *state(i, j, k, RhoQ1_comp)/rho;} } } } if(add_sinusoidal_T) { const Real zl=z_agl/pert_ref_height;const Real damp=std::exp(-myhalf *zl *zl);const Real rho=state(i, j, k, Rho_comp);const Real rhotheta=state(i, j, k, RhoTheta_comp);const Real qv=(use_moisture) ? state(i, j, k, RhoQ1_comp)/rho :amrex::Real(0);const Real Told=getTgivenRandRTh(rho, rhotheta, qv);const Real P=getPgivenRTh(rhotheta, qv);const Real Tnew=Told+tfac *damp *z_agl *std::cos(cval *(x - xc));const Real theta_new=getThgivenTandP(Tnew, P, rdOcp);const Real rho_new=getRhogivenThetaPress(theta_new, P, rdOcp, qv);state_pert(i, j, k, Rho_comp)+=rho_new - rho;if(use_moisture) { state_pert(i, j, k, RhoQ1_comp)+=(rho_new - rho) *qv;} } state_pert(i, j, k, RhoScalar_comp)=A_0 *std::exp(-amrex::Real(10.) *r *r);if(state_pert.nComp() > RhoKE_comp) { if(rhoKE_0 > 0) { state_pert(i, j, k, RhoKE_comp)=rhoKE_0;} else { state_pert(i, j, k, RhoKE_comp)=r_hse(i, j, k) *KE_0;} if(KE_decay_height > 0) { state_pert(i, j, k, RhoKE_comp) *=amrex::max(std::pow(1 - amrex::min(z_agl/KE_decay_height, amrex::Real(1)), KE_decay_order), amrex::Real(1e-12));} } }   
)

Referenced by ERF::create_random_perturbations().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pp_prob()

◆ query() [1/23]

pp_prob query ( "A_0"  ,
A_0   
)

◆ query() [2/23]

pp_prob query ( "bubble_x_c"  ,
bubble_x_c   
)

◆ query() [3/23]

pp_prob query ( "bubble_x_r"  ,
bubble_x_r   
)

◆ query() [4/23]

pp_prob query ( "bubble_y_c"  ,
bubble_y_c   
)

◆ query() [5/23]

pp_prob query ( "bubble_y_r"  ,
bubble_y_r   
)

◆ query() [6/23]

pp_prob query ( "bubble_z_c"  ,
bubble_z_c   
)

◆ query() [7/23]

pp_prob query ( "bubble_z_r"  ,
bubble_z_r   
)

◆ query() [8/23]

pp_erf query ( "deterministic_ic_pert"  ,
deterministic_ic_pert   
)

Referenced by containerHasElement().

Here is the caller graph for this function:

◆ query() [9/23]

pp_erf query ( "fix_random_seed"  ,
fix_random_seed   
)

◆ query() [10/23]

pp_prob query ( "KE_0"  ,
KE_0   
)

◆ query() [11/23]

pp_prob query ( "KE_decay_height"  ,
KE_decay_height   
)

◆ query() [12/23]

pp_prob query ( "KE_decay_order"  ,
KE_decay_order   
)

◆ query() [13/23]

pp_prob query ( "pert_deltaT"  ,
pert_deltaT   
)

◆ query() [14/23]

pp_prob query ( "pert_deltaU"  ,
pert_deltaU   
)

◆ query() [15/23]

pp_prob query ( "pert_deltaV"  ,
pert_deltaV   
)

◆ query() [16/23]

pp_prob query ( "pert_periods_T"  ,
pert_periods_T   
)

◆ query() [17/23]

pp_for_pert_vels query ( "pert_ref_height"  ,
pert_ref_height   
)

◆ query() [18/23]

pp_prob query ( "pert_rhotheta"  ,
pert_rhotheta   
)

◆ query() [19/23]

pp_erf query ( "random_seed"  ,
random_seed   
)

◆ query() [20/23]

pp_prob query ( "rho_0"  ,
rho_0   
)

◆ query() [21/23]

pp_prob query ( "rhoKE_0"  ,
rhoKE_0   
)

◆ query() [22/23]

pp_prob query ( "T_0"  ,
T_0   
)

◆ query() [23/23]

pp_prob query ( "T_0_Pert_Mag"  ,
T_0_Pert_Mag   
)

Variable Documentation

◆ A_0

Real A_0 = amrex::Real(1)

Referenced by ParallelForRNG().

◆ add_bubble

const bool add_bubble = (bubble_dT != amrex::Real(0))

Referenced by ParallelForRNG().

◆ add_sinusoidal_T

const bool add_sinusoidal_T
Initial value:
= (pert_deltaT != amrex::Real(0)) &&
(pert_ref_height > amrex::Real(0))
Real pert_ref_height
Definition: ERF_InitCustomPert_ABL.H:34

Referenced by if(), and ParallelForRNG().

◆ bubble_dT

Real bubble_dT = amrex::Real(0)

Referenced by if(), and ParallelForRNG().

◆ bubble_dT_given

const bool bubble_dT_given = pp_prob.query("bubble_dT", bubble_dT)

Referenced by if().

◆ bubble_fixed_density

const bool bubble_fixed_density = (sc.fixed_density[lev] != 0)

Referenced by ParallelForRNG().

◆ bubble_reporter

const bool bubble_reporter = bx.contains(geomdata.Domain().smallEnd())

Referenced by if().

◆ bubble_x_c

Real bubble_x_c = amrex::Real(0)

Referenced by if(), and ParallelForRNG().

◆ bubble_x_r

Real bubble_x_r = amrex::Real(0)

Referenced by if(), and ParallelForRNG().

◆ bubble_y_c

Real bubble_y_c = amrex::Real(0)

Referenced by if(), and ParallelForRNG().

◆ bubble_y_r

Real bubble_y_r = amrex::Real(0)

Referenced by if(), and ParallelForRNG().

◆ bubble_z_c

Real bubble_z_c = amrex::Real(0)

Referenced by if(), and ParallelForRNG().

◆ bubble_z_r

Real bubble_z_r = amrex::Real(0)

Referenced by if(), and ParallelForRNG().

◆ cval

const Real cval = pert_periods_T * two * PI / (prob_hi_x - prob_lo_x)

Referenced by ParallelForRNG().

◆ deterministic_ic_pert

int deterministic_ic_pert = 0

Referenced by ParallelForRNG().

◆ dx

const Real dx = geomdata.CellSize(0)

Referenced by ParallelForRNG().

◆ dy

◆ else

else
Initial value:
{
const bool bubble_keys_given =
pp_prob.contains("bubble_x_c") || pp_prob.contains("bubble_y_c") ||
pp_prob.contains("bubble_z_c") || pp_prob.contains("bubble_x_r") ||
pp_prob.contains("bubble_y_r") || pp_prob.contains("bubble_z_r")
ParmParse pp_prob("prob")

◆ fix_random_seed

int fix_random_seed = 0

◆ ic_pert_seed

const std::uint64_t ic_pert_seed
Initial value:
? std::uint64_t(1024)
: ((random_seed >= 0) ? static_cast<std::uint64_t>(random_seed) : std::uint64_t(0))
long random_seed
Definition: ERF_InitCustomPert_ABL.H:6
int fix_random_seed
Definition: ERF_InitCustomPert_ABL.H:5

Referenced by ParallelForRNG().

◆ KE_0

Real KE_0 = amrex::Real(0.1)

Referenced by ParallelForRNG().

◆ KE_decay_height

Real KE_decay_height = -1

Referenced by if(), and ParallelForRNG().

◆ KE_decay_order

Real KE_decay_order = 1

Referenced by if(), and ParallelForRNG().

◆ pert_deltaT

Real pert_deltaT = amrex::Real(0)

Referenced by if().

◆ pert_deltaU

Real pert_deltaU = amrex::Real(0)

◆ pert_deltaV

Real pert_deltaV = amrex::Real(0)

◆ pert_periods_T

Real pert_periods_T = amrex::Real(5.0)

Referenced by if().

◆ pert_ref_height

Real pert_ref_height = amrex::Real(100.0)

Referenced by ParallelForRNG().

◆ pert_rhotheta

bool pert_rhotheta = true

Referenced by if(), and ParallelForRNG().

◆ prob_hi_x

const Real prob_hi_x = geomdata.ProbHi(0)

◆ prob_hi_y

const Real prob_hi_y = geomdata.ProbHi(1)

◆ prob_hi_z

const Real prob_hi_z = phys_zhi(geomdata, lev)

◆ prob_lo_x

const Real prob_lo_x = geomdata.ProbLo(0)

Referenced by ParallelForRNG().

◆ prob_lo_y

const Real prob_lo_y = geomdata.ProbLo(1)

Referenced by ParallelForRNG().

◆ prob_lo_z

const Real prob_lo_z = phys_zlo(geomdata, lev)

◆ random_seed

long random_seed = -1

◆ rdOcp

const Real rdOcp = sc.rdOcp

Referenced by IBFaceSet::add_heat_flux_to_source(), SatAdj::AdjustSatAdjCell(), SatAdj::AdvanceSatAdj(), erf_resolved_wall_flux::apply(), erf_cloud_chamber_wall_stress::apply(), erf_cloud_chamber_wall_stress::apply_face(), apply_fire_tendency_to_cc_source(), erf_cloud_chamber_wall_stress::apply_tangent_stress(), erf_cloud_chamber_wall_stress::averaged_physical_traction_component(), erf_cloud_chamber_wall_flux::bulk_theta_flux_in(), SAM::Cloud(), compute_rh_from_conservative(), compute_t_from_conservative(), ERF::convert_legacy_surface_temperature(), WSM6::Copy_Micro_to_State(), TwoStreamRadiation::define_level(), diagnose_microphysics_thermo_state(), ERF::erf_enforce_hse(), ERF::estTimeStep(), SurfaceLayer::fill_tsurf_with_abs_surf_temp(), SurfaceLayer::fill_tsurf_with_coupled_sst(), SurfaceLayer::fill_tsurf_with_sfc_sst(), SurfaceLayer::fill_tsurf_with_skin_temperature(), SurfaceLayer::fill_tsurf_with_sst_and_tsk(), ERF::FillPlot3DVars(), SurfaceLayer::get_lsm_tsurf(), getExnergivenP(), getExnergivenRTh(), getRhogivenThetaPress(), getTgivenPandTh(), getThgivenRandT(), getThgivenTandP(), rrtmgp::inverse_exner(), kessler_copy_state_to_micro_cell(), Radiation::kokkos_buffers_to_mf(), make_two_stream_params(), Radiation::mf_to_kokkos_buffers(), morrison_copy_state_to_micro_cell(), erf_cloud_chamber_wall_flux::most_wall_coefficients(), ParallelForRNG(), erf_moist_perturbation::perturb_temperature_and_vapour(), Radiation::populateDatalogMF(), erf_checkpoint_surface_temperature::potential_to_absolute_temperature(), SAM::Precip(), ReadBndryPlanes::read_file(), realbdy_compute_interior_ghost_rhs(), realbdy_compute_relaxation(), rrtmgp::resolve_surface_temperature(), erf_cloud_chamber_wall_flux::resolved_theta_flux_in(), sam_cons_to_primitive_with_base_state(), sam_copy_state_to_micro_cell(), sam_theta_from_stored_mbar_converted_to_pa(), erf_surface_temperature::temperature_to_theta(), erf_surface_temperature::theta_to_temperature(), erf_cloud_chamber_wall_stress::wall_traction_at_cell(), wdm6_copy_state_to_micro_cell(), wsm6_copy_micro_to_state_cell(), and wsm6_copy_state_to_micro_cell().

◆ rho_0

◆ rhoKE_0

Real rhoKE_0 = -1

Referenced by ParallelForRNG().

◆ T_0

◆ T_0_Pert_Mag

Real T_0_Pert_Mag = amrex::Real(0)

Referenced by if(), and ParallelForRNG().

◆ temperature_hash_comp

constexpr int temperature_hash_comp = 0
constexpr

Referenced by ParallelForRNG().

◆ tfac

const Real tfac
Initial value:
: amrex::Real(0)
constexpr amrex::Real myhalf
Definition: ERF_NumericalConstants.H:41

Referenced by ParallelForRNG().

◆ use_moisture

◆ xc

◆ yc

const Real yc = myhalf * (prob_lo_y + prob_hi_y)

◆ zc