ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_Constants.H>
#include <AMReX.H>
#include <AMReX_IntVect.H>
#include <AMReX_MFIter.H>
#include <cmath>
Go to the source code of this file.
Functions | |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | getThgivenPandT (const amrex::Real T, const amrex::Real P, const amrex::Real rdOcp) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | getTgivenPandTh (const amrex::Real P, const amrex::Real th, const amrex::Real rdOcp) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | getTgivenRandRTh (const amrex::Real rho, const amrex::Real rhotheta, const amrex::Real qv=0.0) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | getThgivenRandT (const amrex::Real rho, const amrex::Real T, const amrex::Real rdOcp, const amrex::Real qv=0.0) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | getPgivenRTh (const amrex::Real rhotheta, const amrex::Real qv=0.) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | getRhogivenThetaPress (const amrex::Real th, const amrex::Real p, const amrex::Real rdOcp, const amrex::Real qv=0.0) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | getRhogivenTandPress (const amrex::Real T, const amrex::Real p, const amrex::Real qv=0.0) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | getdPdRgivenConstantTheta (const amrex::Real rho, const amrex::Real theta, const amrex::Real qv=0.0) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | getExnergivenP (const amrex::Real P, const amrex::Real rdOcp) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | getExnergivenRTh (const amrex::Real rhotheta, const amrex::Real rdOcp, const amrex::Real qv=0.0) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | getRhoThetagivenP (const amrex::Real p, const amrex::Real qv=0.0) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | compute_vapor_pressure (const amrex::Real p_s, const amrex::Real RH) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real compute_vapor_pressure | ( | const amrex::Real | p_s, |
const amrex::Real | RH | ||
) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getdPdRgivenConstantTheta | ( | const amrex::Real | rho, |
const amrex::Real | theta, | ||
const amrex::Real | qv = 0.0 |
||
) |
Function to return dP/drho at constant theta
@params[in ] rho density @params[in ] theta potential temperature @params[in ] qv water vapor @params[ out] pressure
Referenced by HSEutils::init_isentropic_hse(), and HSEutils::init_isentropic_hse_terrain().
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getExnergivenP | ( | const amrex::Real | P, |
const amrex::Real | rdOcp | ||
) |
Function to return the Exner function pi given pressure @params[in ] p pressure @params[in ] rdOcp ratio of R_d to c_p @params[ out] Exner function
Referenced by ERF::erf_enforce_hse().
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getExnergivenRTh | ( | const amrex::Real | rhotheta, |
const amrex::Real | rdOcp, | ||
const amrex::Real | qv = 0.0 |
||
) |
Function to return the Exner function pi given density times potential temperature
@params[in ] rhotheta density times potential temperature @params[in ] rdOcp ratio of R_d to c_p @params[in ] qv water vapor @params[ out] Exner function
Referenced by init_bx_scalars_from_input_sounding_hse().
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getPgivenRTh | ( | const amrex::Real | rhotheta, |
const amrex::Real | qv = 0. |
||
) |
Function to return pressure given density times theta
@params[in ] rhotheta density times potential temperature @params[in ] qv water vapor @params[ out] pressure
Referenced by SAM::Compute_Coefficients(), Kessler::Copy_State_to_Micro(), SAM::Copy_State_to_Micro(), SatAdj::Copy_State_to_Micro(), ERF::derive_diag_profiles(), ERF::derive_diag_profiles_stag(), derived::erf_dersoundspeed(), erf_slow_rhs_pre(), ERF::estTimeStep(), init_bx_scalars_from_input_sounding_hse(), HSEutils::init_isentropic_hse(), HSEutils::init_isentropic_hse_terrain(), Radiation::initialize(), ERF::MakeHorizontalAverages(), and ERF::WritePlotFile().
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getRhogivenTandPress | ( | const amrex::Real | T, |
const amrex::Real | p, | ||
const amrex::Real | qv = 0.0 |
||
) |
Function to return density given temperature and pressure
@params[in ] theta potential temperature @params[in ] p pressure @params[in ] rdOcp ratio of R_d to c_p @params[in ] qv water vapor @params[ out] density
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getRhogivenThetaPress | ( | const amrex::Real | th, |
const amrex::Real | p, | ||
const amrex::Real | rdOcp, | ||
const amrex::Real | qv = 0.0 |
||
) |
Function to return density given theta and pressure
@params[in ] theta potential temperature @params[in ] p pressure @params[in ] rdOcp ratio of R_d to c_p @params[in ] qv water vapor @params[ out] density
Referenced by InputSoundingData::calc_rho_p(), and HSEutils::Newton_Raphson_hse().
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getRhoThetagivenP | ( | const amrex::Real | p, |
const amrex::Real | qv = 0.0 |
||
) |
Function to return (rho theta) given pressure
@params[in ] p pressure @params[in ] qv water vapor @params[ out] density times potential temperature
Referenced by buoyancy_dry_anelastic_T(), ERF::erf_enforce_hse(), init_bx_scalars_from_input_sounding_hse(), ERF::init_from_hse(), and ERF::ReadCheckpointFile().
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getTgivenPandTh | ( | const amrex::Real | P, |
const amrex::Real | th, | ||
const amrex::Real | rdOcp | ||
) |
Function to return temperature given pressure and potential temperature
@params[in ] P pressure @params[in ] th potential temperature @params[in ] rdOcp ratio of R_d to c_p @params[ out] temperature
Referenced by buoyancy_dry_anelastic_T(), buoyancy_dry_Tpert(), and buoyancy_moist_Tpert().
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getTgivenRandRTh | ( | const amrex::Real | rho, |
const amrex::Real | rhotheta, | ||
const amrex::Real | qv = 0.0 |
||
) |
Function to return temperature given density and potential temperature
@params[in ] rho density @params[in ] rhotheta (density times potential temperature) @params[in ] qv water vapor @params[ out] temperature
Referenced by buoyancy_dry_Tpert(), buoyancy_moist_Tpert(), SAM::Compute_Coefficients(), Kessler::Copy_State_to_Micro(), SAM::Copy_State_to_Micro(), SatAdj::Copy_State_to_Micro(), derived::erf_dermoisttemp(), derived::erf_dertemp(), Radiation::initialize(), and ERF::WritePlotFile().
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getThgivenPandT | ( | const amrex::Real | T, |
const amrex::Real | P, | ||
const amrex::Real | rdOcp | ||
) |
Function to return potential temperature given pressure and temperature
@params[in ] P pressure @params[in ] T temperature @params[in ] rdOcp ratio of R_d to c_p @params[ out] potential temperature
Referenced by SatAdj::AdvanceSatAdj(), SAM::Cloud(), and SAM::Precip().
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getThgivenRandT | ( | const amrex::Real | rho, |
const amrex::Real | T, | ||
const amrex::Real | rdOcp, | ||
const amrex::Real | qv = 0.0 |
||
) |
Function to return potential temperature given density and temperature
@params[in ] rho density @params[in ] T temperature @params[in ] rdOcp ratio of R_d to c_p @params[in ] qv water vapor @params[ out] potential temperature
Referenced by ReadBndryPlanes::read_file().