ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
MYNNLevel25 Struct Reference

#include <ERF_MYNNStruct.H>

Collaboration diagram for MYNNLevel25:

Public Member Functions

AMREX_GPU_DEVICE AMREX_FORCE_INLINE void calc_stability_funcs (amrex::Real &SM, amrex::Real &SH, amrex::Real &SQ, const amrex::Real GM, const amrex::Real GH, const amrex::Real alphac=1.0) const
 

Public Attributes

amrex::Real A1 = 1.18
 
amrex::Real A2 = 0.665
 
amrex::Real B1 = 24.0
 
amrex::Real B2 = 15.0
 
amrex::Real C1 = 0.137
 
amrex::Real C2 = 0.75
 
amrex::Real C3 = 0.352
 
amrex::Real C4 = 0.0
 
amrex::Real C5 = 0.2
 
amrex::Real SMmin = 0.0
 
amrex::Real SMmax = 1.0e34
 
amrex::Real SHmin = 0.0
 
amrex::Real SHmax = 4.0
 
MYNNConfigType config
 
bool diffuse_moistvars = false
 

Member Function Documentation

◆ calc_stability_funcs()

AMREX_GPU_DEVICE AMREX_FORCE_INLINE void MYNNLevel25::calc_stability_funcs ( amrex::Real &  SM,
amrex::Real &  SH,
amrex::Real &  SQ,
const amrex::Real  GM,
const amrex::Real  GH,
const amrex::Real  alphac = 1.0 
) const
inline
23  {
24  amrex::Real alphac2 = alphac * alphac;
25 
26  // Compute non-dimensional parameters (notation follows NN09)
27  amrex::Real Phi1 = 1.0 - alphac2*3.0*A2*B2*(1-C3)*GH;
28  amrex::Real Phi2 = 1.0 - alphac2*9.0*A1*A2*(1-C2)*GH;
29  amrex::Real Phi3 = Phi1 + alphac2*9.0*A2*A2*(1-C2)*(1-C5)*GH;
30  amrex::Real Phi4 = Phi1 - alphac2*12.0*A1*A2*(1-C2)*GH;
31  amrex::Real Phi5 = 6.0*alphac*A1*A1*GM;
32 
33  // Compute stability functions
34  amrex::Real D = Phi2*Phi4 + Phi5*Phi3;
35  SM = alphac * A1 * (Phi3 - 3*C1*Phi4) / D;
36  SH = alphac * A2 * (Phi2 + 3*C1*Phi5) / D;
37  SQ = 3.0 * SM; // revised in NN09
38  }
amrex::Real C1
Definition: ERF_MYNNStruct.H:45
amrex::Real C3
Definition: ERF_MYNNStruct.H:47
amrex::Real C2
Definition: ERF_MYNNStruct.H:46
amrex::Real A2
Definition: ERF_MYNNStruct.H:42
amrex::Real B2
Definition: ERF_MYNNStruct.H:44
amrex::Real C5
Definition: ERF_MYNNStruct.H:49
amrex::Real A1
Definition: ERF_MYNNStruct.H:41

Member Data Documentation

◆ A1

amrex::Real MYNNLevel25::A1 = 1.18

◆ A2

amrex::Real MYNNLevel25::A2 = 0.665

◆ B1

◆ B2

amrex::Real MYNNLevel25::B2 = 15.0

◆ C1

amrex::Real MYNNLevel25::C1 = 0.137

◆ C2

amrex::Real MYNNLevel25::C2 = 0.75

◆ C3

amrex::Real MYNNLevel25::C3 = 0.352

◆ C4

amrex::Real MYNNLevel25::C4 = 0.0

◆ C5

amrex::Real MYNNLevel25::C5 = 0.2

◆ config

MYNNConfigType MYNNLevel25::config

◆ diffuse_moistvars

bool MYNNLevel25::diffuse_moistvars = false

Referenced by TurbChoice::init_params().

◆ SHmax

amrex::Real MYNNLevel25::SHmax = 4.0

Referenced by TurbChoice::init_params().

◆ SHmin

amrex::Real MYNNLevel25::SHmin = 0.0

Referenced by TurbChoice::init_params().

◆ SMmax

amrex::Real MYNNLevel25::SMmax = 1.0e34

Referenced by TurbChoice::init_params().

◆ SMmin

amrex::Real MYNNLevel25::SMmin = 0.0

Referenced by TurbChoice::init_params().


The documentation for this struct was generated from the following file: