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 | 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 theta, const amrex::Real p, const amrex::Real rdOcp, 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 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] theta potential temperature @params[in] p pressure @params[in] rd0cp ratio of R_d to c_p
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] rd0cp ratio of R_d to c_p
Referenced by ERF::erf_enforce_hse(), and init_bx_scalars_from_input_sounding_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 densith times potential temperature
@params[in] rhotheta density times potential temperature @params[in] rd0cp ratio of R_d to c_p
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
Referenced by SAM::Compute_Coefficients(), Kessler::Copy_State_to_Micro(), SAM::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 getRhogivenThetaPress | ( | const amrex::Real | theta, |
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] rd0cp ratio of R_d to c_p
Referenced by InputSoundingData::calc_rho_p().
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getRhoThetagivenP | ( | const amrex::Real | p, |
const amrex::Real | qv = 0.0 |
||
) |
Function to return the density given pressure
@params[in] p pressure
Referenced by ERF::init_from_hse().
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 theta
Referenced by SAM::Compute_Coefficients(), Kessler::Copy_State_to_Micro(), SAM::Copy_State_to_Micro(), derived::erf_dertemp(), Radiation::initialize(), make_buoyancy(), 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] pressure @params[in] temperature @params[in] rd0cp ratio of R_d to c_p
Referenced by 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] rd0cp ratio of R_d to c_p
Referenced by ReadBndryPlanes::read_file().