|
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE MicrophysicsThermoState | diagnose_microphysics_thermo_state (const amrex::Real rho, const amrex::Real rho_theta, const amrex::Real qv, const amrex::Real rdOcp, const bool use_anelastic_reference_pressure, const amrex::Real p0) noexcept |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | erf_gammafff (amrex::Real x) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | erf_esati (amrex::Real t) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | erf_esatw_cc (amrex::Real t) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | erf_esatw_flatau_poly (amrex::Real dtt) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | erf_dtesatw_flatau_poly (amrex::Real dtt) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool | erf_use_positive_esatw_poly (amrex::Real t) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | erf_esatw (amrex::Real t, bool use_empirical=false) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | erf_dtesati (amrex::Real t) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | erf_dtesatw_cc (amrex::Real t) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | erf_dtesatw (amrex::Real t) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | erf_qsat_from_esat (amrex::Real esat, amrex::Real p) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | erf_dtqsat_from_esat (amrex::Real esat, amrex::Real dtesat, amrex::Real p) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | erf_qsati (amrex::Real t, amrex::Real p, amrex::Real &qsati) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | erf_qsatw (amrex::Real t, amrex::Real p, amrex::Real &qsatw) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | erf_dtqsati (amrex::Real t, amrex::Real p, amrex::Real &dtqsati) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | erf_dtqsatw (amrex::Real t, amrex::Real p, amrex::Real &dtqsatw) |
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE MicrophysicsThermoState diagnose_microphysics_thermo_state |
( |
const amrex::Real |
rho, |
|
|
const amrex::Real |
rho_theta, |
|
|
const amrex::Real |
qv, |
|
|
const amrex::Real |
rdOcp, |
|
|
const bool |
use_anelastic_reference_pressure, |
|
|
const amrex::Real |
p0 |
|
) |
| |
|
noexcept |
Diagnose the state used by one microphysics cell.
In anelastic and pseudo-incompressible mode, which get their pressure from a projection rather than from the EOS, the conserved state supplies theta while the hydrostatic reference pressure supplied by BaseState supplies the thermodynamic pressure. In compressible mode, retain ERF's existing local-EOS diagnosis.
44 if (use_anelastic_reference_pressure) {
45 const amrex::Real
theta = rho_theta /
rho;
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getTgivenRandRTh(const amrex::Real rho, const amrex::Real rhotheta, const amrex::Real qv=amrex::Real(0))
Definition: ERF_EOS.H:46
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getPgivenRTh(const amrex::Real rhotheta, const amrex::Real qv=amrex::Real(0))
Definition: ERF_EOS.H:81
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getTgivenPandTh(const amrex::Real P, const amrex::Real th, const amrex::Real rdOcp)
Definition: ERF_EOS.H:32
const Real rdOcp
Definition: ERF_InitCustomPert_ABL.H:128
@ rho
Definition: ERF_Kessler.H:25
@ theta
Definition: ERF_Kessler.H:26
@ qv
Definition: ERF_Kessler.H:31
real(c_double), parameter p0
Definition: ERF_module_model_constants.F90:40
Referenced by kessler_copy_state_to_micro_cell(), morrison_copy_state_to_micro_cell(), sam_cons_to_primitive_with_base_state(), wdm6_copy_state_to_micro_cell(), and wsm6_copy_state_to_micro_cell().