ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_IndexDefines.H File Reference
#include <AMReX_REAL.H>
#include <AMReX_Arena.H>
Include dependency graph for ERF_IndexDefines.H:

Go to the source code of this file.

Namespaces

 BaseState
 
 BCVars
 
 RealBdyVars
 
 WRFBdyVars
 
 MetGridBdyVars
 
 Vars
 
 IntVars
 
 EddyDiff
 
 ERFBCType
 

Macros

#define NDRY   3
 
#define NSCALARS   1
 
#define NMOIST_max   6
 
#define NVAR_max   (NDRY + NSCALARS + NMOIST_max)
 
#define NBCVAR_max   (NDRY + 1 + NMOIST_max + 1)
 
#define NPRIMVAR_max   (NDRY + 1 + NMOIST_max)
 
#define Rho_comp   0
 
#define RhoTheta_comp   (Rho_comp+1)
 
#define RhoKE_comp   (Rho_comp+2)
 
#define RhoScalar_comp   (RhoKE_comp+1)
 
#define RhoQ1_comp   (RhoScalar_comp+NSCALARS)
 
#define RhoQ2_comp   (RhoQ1_comp+1)
 
#define RhoQ3_comp   (RhoQ1_comp+2)
 
#define RhoQ4_comp   (RhoQ1_comp+3)
 
#define RhoQ5_comp   (RhoQ1_comp+4)
 
#define RhoQ6_comp   (RhoQ1_comp+5)
 
#define PrimTheta_comp   (RhoTheta_comp -1)
 
#define PrimKE_comp   (RhoKE_comp -1)
 
#define PrimScalar_comp   (RhoScalar_comp-1)
 
#define PrimQ1_comp   (RhoQ1_comp-1)
 
#define PrimQ2_comp   (RhoQ2_comp-1)
 
#define PrimQ3_comp   (RhoQ3_comp-1)
 
#define PrimQ4_comp   (RhoQ4_comp-1)
 
#define PrimQ5_comp   (RhoQ5_comp-1)
 
#define PrimQ6_comp   (RhoQ6_comp-1)
 

Enumerations

enum  {
  BaseState::r0_comp = 0 , BaseState::p0_comp , BaseState::pi0_comp , BaseState::th0_comp ,
  BaseState::num_comps
}
 
enum  {
  BCVars::cons_bc = 0 , BCVars::Rho_bc_comp = 0 , BCVars::RhoTheta_bc_comp , BCVars::RhoKE_bc_comp ,
  BCVars::RhoScalar_bc_comp , BCVars::RhoQ1_bc_comp , BCVars::RhoQ2_bc_comp , BCVars::RhoQ3_bc_comp ,
  BCVars::RhoQ4_bc_comp , BCVars::RhoQ5_bc_comp , BCVars::RhoQ6_bc_comp , BCVars::base_bc ,
  BCVars::xvel_bc = NBCVAR_max , BCVars::yvel_bc = NBCVAR_max+1 , BCVars::zvel_bc = NBCVAR_max+2 , BCVars::NumTypes
}
 
enum  {
  RealBdyVars::U = 0 , RealBdyVars::V = 1 , RealBdyVars::T = 2 , RealBdyVars::QV = 3 ,
  RealBdyVars::NumTypes
}
 
enum  {
  WRFBdyVars::U = 0 , WRFBdyVars::V = 1 , WRFBdyVars::T = 2 , WRFBdyVars::QV ,
  WRFBdyVars::MU , WRFBdyVars::PC , WRFBdyVars::NumTypes
}
 
enum  {
  MetGridBdyVars::U = 0 , MetGridBdyVars::V = 1 , MetGridBdyVars::T = 2 , MetGridBdyVars::QV ,
  MetGridBdyVars::NumTypes
}
 
enum  {
  Vars::cons = 0 , Vars::xvel , Vars::yvel , Vars::zvel ,
  Vars::NumTypes
}
 
enum  {
  IntVars::cons = 0 , IntVars::xmom , IntVars::ymom , IntVars::zmom ,
  IntVars::NumTypes
}
 
enum  {
  EddyDiff::Mom_h = 0 , EddyDiff::Theta_h , EddyDiff::KE_h , EddyDiff::Scalar_h ,
  EddyDiff::Q_h , EddyDiff::Mom_v , EddyDiff::Theta_v , EddyDiff::KE_v ,
  EddyDiff::Scalar_v , EddyDiff::Q_v , EddyDiff::Turb_lengthscale , EddyDiff::NumDiffs
}
 
enum class  ERF_BC {
  symmetry , inflow , outflow , ho_outflow ,
  open , no_slip_wall , slip_wall , periodic ,
  MOST , undefined
}
 
enum  ERFBCType::mathematicalBndryTypes : int {
  ERFBCType::bogus = -666 , ERFBCType::reflect_odd = -1 , ERFBCType::int_dir = 0 , ERFBCType::reflect_even = 1 ,
  ERFBCType::foextrap = 2 , ERFBCType::ext_dir = 3 , ERFBCType::MOST = 101 , ERFBCType::ext_dir_prim = 102 ,
  ERFBCType::ext_dir_ingested = 103 , ERFBCType::neumann = 104 , ERFBCType::neumann_int = 105 , ERFBCType::open = 106 ,
  ERFBCType::hoextrapcc = 107
}
 
enum class  AdvType : int {
  Centered_2nd = 101 , Upwind_3rd = 102 , Centered_4th = 103 , Upwind_5th = 104 ,
  Centered_6th = 105 , Weno_3 = 106 , Weno_3Z = 107 , Weno_5 = 108 ,
  Weno_5Z = 109 , Weno_3MZQ = 110 , Weno_7 = 111 , Weno_7Z = 112 ,
  Unknown = 113
}
 

Macro Definition Documentation

◆ NBCVAR_max

#define NBCVAR_max   (NDRY + 1 + NMOIST_max + 1)

◆ NDRY

#define NDRY   3

Definition of indexing parameters

◆ NMOIST_max

#define NMOIST_max   6

◆ NPRIMVAR_max

#define NPRIMVAR_max   (NDRY + 1 + NMOIST_max)

◆ NSCALARS

#define NSCALARS   1

◆ NVAR_max

#define NVAR_max   (NDRY + NSCALARS + NMOIST_max)

◆ PrimKE_comp

#define PrimKE_comp   (RhoKE_comp -1)

◆ PrimQ1_comp

#define PrimQ1_comp   (RhoQ1_comp-1)

◆ PrimQ2_comp

#define PrimQ2_comp   (RhoQ2_comp-1)

◆ PrimQ3_comp

#define PrimQ3_comp   (RhoQ3_comp-1)

◆ PrimQ4_comp

#define PrimQ4_comp   (RhoQ4_comp-1)

◆ PrimQ5_comp

#define PrimQ5_comp   (RhoQ5_comp-1)

◆ PrimQ6_comp

#define PrimQ6_comp   (RhoQ6_comp-1)

◆ PrimScalar_comp

#define PrimScalar_comp   (RhoScalar_comp-1)

◆ PrimTheta_comp

#define PrimTheta_comp   (RhoTheta_comp -1)

◆ Rho_comp

#define Rho_comp   0

◆ RhoKE_comp

#define RhoKE_comp   (Rho_comp+2)

◆ RhoQ1_comp

#define RhoQ1_comp   (RhoScalar_comp+NSCALARS)

◆ RhoQ2_comp

#define RhoQ2_comp   (RhoQ1_comp+1)

◆ RhoQ3_comp

#define RhoQ3_comp   (RhoQ1_comp+2)

◆ RhoQ4_comp

#define RhoQ4_comp   (RhoQ1_comp+3)

◆ RhoQ5_comp

#define RhoQ5_comp   (RhoQ1_comp+4)

◆ RhoQ6_comp

#define RhoQ6_comp   (RhoQ1_comp+5)

◆ RhoScalar_comp

#define RhoScalar_comp   (RhoKE_comp+1)

◆ RhoTheta_comp

#define RhoTheta_comp   (Rho_comp+1)

Enumeration Type Documentation

◆ AdvType

enum AdvType : int
strong
Enumerator
Centered_2nd 
Upwind_3rd 
Centered_4th 
Upwind_5th 
Centered_6th 
Weno_3 
Weno_3Z 
Weno_5 
Weno_5Z 
Weno_3MZQ 
Weno_7 
Weno_7Z 
Unknown 
191  : int {
192  Centered_2nd = 101,
193  Upwind_3rd = 102,
194  Centered_4th = 103,
195  Upwind_5th = 104,
196  Centered_6th = 105,
197  Weno_3 = 106,
198  Weno_3Z = 107,
199  Weno_5 = 108,
200  Weno_5Z = 109,
201  Weno_3MZQ = 110,
202  Weno_7 = 111,
203  Weno_7Z = 112,
204  Unknown = 113
205 };
@ Centered_4th
@ Centered_6th
@ Centered_2nd

◆ ERF_BC

enum ERF_BC
strong
Enumerator
symmetry 
inflow 
outflow 
ho_outflow 
open 
no_slip_wall 
slip_wall 
periodic 
MOST 
undefined 
166  {
168 };
@ ho_outflow
@ no_slip_wall
@ open
Definition: ERF_IndexDefines.H:186
@ MOST
Definition: ERF_IndexDefines.H:181