|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_BaseStateParams.H>

Public Member Functions | |
| void | set_layer_interfaces () |
| bool | same_params_as (const BaseStateParams &bsp) const |
Public Attributes | |
| amrex::Real | T00 = amrex::Real(290.0) |
| amrex::Real | P00 = p_0 |
| amrex::Real | TLP = amrex::Real(50.0) |
| amrex::Real | TISO = amrex::Real(200.0) |
| amrex::Real | TLP_STRAT = amrex::Real(-11.0) |
| amrex::Real | P_STRAT = zero |
| amrex::Real | P_iso = zero |
| amrex::Real | z_iso = zero |
| amrex::Real | z_strat = zero |
| bool | use_strat = false |
| bool | is_set = false |
Parameters defining the WRF reference (base) state, along with the layer interface heights derived from them.
The base state is piecewise in log-pressure: (1) troposphere T = T00 + TLP * ln(p/P00) p > P_iso (2) isothermal layer T = TISO P_STRAT < p <= P_iso (3) stratosphere T = TISO + TLP_STRAT * ln(p/P_STRAT) p <= P_STRAT Each piece inverts to p(z) in closed form under dp/dz = -rho g, so the two interface heights are precomputed once and the inversion branches on z.
Because the resulting profile is a pure function of height, it can be evaluated on any subset of a column – it does not require a box that spans the domain in the vertical.
NOTE: The defaults are the WRF namelist defaults for base_temp, base_pres, base_lapse, iso_temp, base_lapse_strat and base_pres_strat. metgrid files do not carry these parameters at all; wrfinput files usually do, and are read by read_base_state_params_from_wrfinput.
|
inline |
|
inline |

| bool BaseStateParams::is_set = false |
Referenced by set_layer_interfaces().
| amrex::Real BaseStateParams::P00 = p_0 |
Referenced by same_params_as(), and set_layer_interfaces().
| amrex::Real BaseStateParams::P_iso = zero |
Referenced by set_layer_interfaces().
| amrex::Real BaseStateParams::P_STRAT = zero |
Referenced by same_params_as(), and set_layer_interfaces().
| amrex::Real BaseStateParams::T00 = amrex::Real(290.0) |
Referenced by same_params_as(), and set_layer_interfaces().
| amrex::Real BaseStateParams::TISO = amrex::Real(200.0) |
Referenced by same_params_as(), and set_layer_interfaces().
| amrex::Real BaseStateParams::TLP = amrex::Real(50.0) |
Referenced by same_params_as(), and set_layer_interfaces().
| amrex::Real BaseStateParams::TLP_STRAT = amrex::Real(-11.0) |
Referenced by same_params_as(), and set_layer_interfaces().
| bool BaseStateParams::use_strat = false |
Referenced by set_layer_interfaces().
| amrex::Real BaseStateParams::z_iso = zero |
Referenced by set_layer_interfaces().
| amrex::Real BaseStateParams::z_strat = zero |
Referenced by set_layer_interfaces().