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

Public Member Functions | |
| void | init_params (amrex::ParmParse &pp) |
| void | check_config (bool do_forest_drag, bool keqn_on_every_level, bool implicit_diss_on_every_level) const |
Public Attributes | |
| bool | enabled = false |
| erf.forest_canopy_tke: add the canopy terms to the k-eqn RANS model More... | |
| amrex::Real | beta_p = amrex::Real(1.0) |
| erf.forest_canopy_beta_p: fraction of the drag work that becomes TKE More... | |
| amrex::Real | beta_d = amrex::Real(4.0) |
| erf.forest_canopy_beta_d: short-circuit dissipation coefficient More... | |
| amrex::Real | length_alpha = amrex::Real(0.04) |
Inputs of the canopy terms of the k-eqn RANS model (erf.forest_canopy_*). The terms themselves are in Source/SourceTerms/ERF_CanopyTurbulence.H.
|
inline |
The canopy terms act on the forest drag field and on the k-eqn RANS model only: abort when either is missing, rather than ignore the input, and when the length cap would meet the explicit TKE dissipation.
| do_forest_drag | a forest is configured (erf.forest_file or gridded) |
| keqn_on_every_level | erf.rans_type = kEqn on every level |
| implicit_diss_on_every_level | erf.implicit_tke_dissipation on every level |
|
inline |
Read the erf.forest_canopy_* inputs and check their ranges. The checks that need the rest of the configuration (a forest and the k-eqn model) are in check_config.
Referenced by SolverChoice::init_params().


| amrex::Real CanopyTurbulence::beta_d = amrex::Real(4.0) |
erf.forest_canopy_beta_d: short-circuit dissipation coefficient
Referenced by AddCanopyTKESources(), and init_params().
| amrex::Real CanopyTurbulence::beta_p = amrex::Real(1.0) |
erf.forest_canopy_beta_p: fraction of the drag work that becomes TKE
Referenced by AddCanopyTKESources(), and init_params().
| bool CanopyTurbulence::enabled = false |
erf.forest_canopy_tke: add the canopy terms to the k-eqn RANS model
Referenced by check_config(), ComputeTurbulentViscosityRANS(), init_params(), and make_sources().
| amrex::Real CanopyTurbulence::length_alpha = amrex::Real(0.04) |
erf.forest_canopy_length_alpha: length scale cap L <= alpha / f; zero disables the cap and keeps the TKE source
Referenced by check_config(), ComputeTurbulentViscosityRANS(), and init_params().