ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ERF_DiffSetup.H File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Vector< Real > alpha_eff (NPRIMVAR_max, 0.0)
 
 if (l_consA)
 
alpha_eff_d resize (alpha_eff.size())
 
eddy_diff_idx_d resize (eddy_diff_idx.size())
 
eddy_diff_idy_d resize (eddy_diff_idy.size())
 
eddy_diff_idz_d resize (eddy_diff_idz.size())
 

Variables

DiffChoice diffChoice = solverChoice.diffChoice
 
TurbChoice turbChoice = solverChoice.turbChoice[level]
 
const Real dx_inv = cellSizeInv[0]
 
const Real dy_inv = cellSizeInv[1]
 
const auto & dom_lo = lbound(domain)
 
const auto & dom_hi = ubound(domain)
 
Real l_inv_theta0 = 1.0 / turbChoice.theta_ref
 
Real l_abs_g = std::abs(grav_gpu[2])
 
bool l_use_keqn = turbChoice.use_keqn
 
bool l_use_mynn = turbChoice.use_pbl_tke
 
bool l_consA = (diffChoice.molec_diff_type == MolecDiffType::ConstantAlpha)
 
bool l_turb = turbChoice.use_kturb
 
const Box xbx = surroundingNodes(bx,0)
 
const Box ybx = surroundingNodes(bx,1)
 
const Box zbx = surroundingNodes(bx,2)
 
const int end_comp = start_comp + num_comp - 1
 
 else
 
Vector< int > eddy_diff_idy
 
Vector< int > eddy_diff_idz
 
Gpu::AsyncVector< Real > alpha_eff_d
 
Gpu::AsyncVector< int > eddy_diff_idx_d
 
Gpu::AsyncVector< int > eddy_diff_idy_d
 
Gpu::AsyncVector< int > eddy_diff_idz_d
 
Real * d_alpha_eff = alpha_eff_d.data()
 
int * d_eddy_diff_idx = eddy_diff_idx_d.data()
 
int * d_eddy_diff_idy = eddy_diff_idy_d.data()
 
int * d_eddy_diff_idz = eddy_diff_idz_d.data()
 

Function Documentation

◆ alpha_eff()

Vector<Real> alpha_eff ( NPRIMVAR_max  ,
0.  0 
)

Referenced by if().

Here is the caller graph for this function:

◆ if()

if ( l_consA  )
29  {
30  for (int i = 0; i < NPRIMVAR_max; ++i) {
31  switch (i) {
32  case PrimTheta_comp:
34  break;
35  case PrimScalar_comp:
37  break;
38  case PrimQ1_comp:
40  break;
41  case PrimQ2_comp:
43  break;
44  case PrimQ3_comp:
46  break;
47  case PrimQ4_comp:
49  break;
50  case PrimQ5_comp:
52  break;
53  case PrimQ6_comp:
55  break;
56  default:
57  alpha_eff[i] = 0.0;
58  break;
59  }
60  }
61  } else {
Vector< Real > alpha_eff(NPRIMVAR_max, 0.0)
DiffChoice diffChoice
Definition: ERF_DiffSetup.H:1
#define PrimQ1_comp
Definition: ERF_IndexDefines.H:53
#define NPRIMVAR_max
Definition: ERF_IndexDefines.H:33
#define PrimQ2_comp
Definition: ERF_IndexDefines.H:54
#define PrimQ4_comp
Definition: ERF_IndexDefines.H:56
#define PrimQ6_comp
Definition: ERF_IndexDefines.H:58
#define PrimQ5_comp
Definition: ERF_IndexDefines.H:57
#define PrimTheta_comp
Definition: ERF_IndexDefines.H:50
#define PrimScalar_comp
Definition: ERF_IndexDefines.H:52
#define PrimQ3_comp
Definition: ERF_IndexDefines.H:55
amrex::Real alpha_T
Definition: ERF_DiffStruct.H:84
amrex::Real alpha_C
Definition: ERF_DiffStruct.H:85
Here is the call graph for this function:

◆ resize() [1/4]

alpha_eff_d resize ( alpha_eff.  size())

◆ resize() [2/4]

eddy_diff_idx_d resize ( eddy_diff_idx.  size())

◆ resize() [3/4]

eddy_diff_idy_d resize ( eddy_diff_idy.  size())

◆ resize() [4/4]

eddy_diff_idz_d resize ( eddy_diff_idz.  size())

Variable Documentation

◆ alpha_eff_d

Gpu::AsyncVector<Real> alpha_eff_d

◆ d_alpha_eff

Real* d_alpha_eff = alpha_eff_d.data()

◆ d_eddy_diff_idx

int* d_eddy_diff_idx = eddy_diff_idx_d.data()

◆ d_eddy_diff_idy

int* d_eddy_diff_idy = eddy_diff_idy_d.data()

◆ d_eddy_diff_idz

int* d_eddy_diff_idz = eddy_diff_idz_d.data()

◆ diffChoice

DiffChoice diffChoice = solverChoice.diffChoice

Referenced by if().

◆ dom_hi

◆ dom_lo

◆ dx_inv

const Real dx_inv = cellSizeInv[0]

◆ dy_inv

const Real dy_inv = cellSizeInv[1]

◆ eddy_diff_idx_d

Gpu::AsyncVector<int> eddy_diff_idx_d

◆ eddy_diff_idy

Vector<int> eddy_diff_idy
Initial value:
@ Q_h
Definition: ERF_IndexDefines.H:174
@ Scalar_h
Definition: ERF_IndexDefines.H:173
@ Theta_h
Definition: ERF_IndexDefines.H:171
@ KE_h
Definition: ERF_IndexDefines.H:172

◆ eddy_diff_idy_d

Gpu::AsyncVector<int> eddy_diff_idy_d

◆ eddy_diff_idz

Vector<int> eddy_diff_idz
Initial value:
@ Theta_v
Definition: ERF_IndexDefines.H:176
@ Scalar_v
Definition: ERF_IndexDefines.H:178
@ Q_v
Definition: ERF_IndexDefines.H:179
@ KE_v
Definition: ERF_IndexDefines.H:177

◆ eddy_diff_idz_d

Gpu::AsyncVector<int> eddy_diff_idz_d

◆ else

else

◆ end_comp

const int end_comp = start_comp + num_comp - 1

◆ l_abs_g

Real l_abs_g = std::abs(grav_gpu[2])

Referenced by ComputeTurbulentViscosityLES(), and if().

◆ l_consA

bool l_consA = (diffChoice.molec_diff_type == MolecDiffType::ConstantAlpha)

◆ l_inv_theta0

Real l_inv_theta0 = 1.0 / turbChoice.theta_ref

Referenced by ComputeTurbulentViscosityLES(), and if().

◆ l_turb

bool l_turb = turbChoice.use_kturb

◆ l_use_keqn

bool l_use_keqn = turbChoice.use_keqn

◆ l_use_mynn

bool l_use_mynn = turbChoice.use_pbl_tke

◆ turbChoice

◆ xbx

◆ ybx

◆ zbx