ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_Thetav.H File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real Thetav (int i, int j, int k, const amrex::Array4< const amrex::Real > &cell_data, const int RhoQv_comp, const int RhoQc_comp, const int RhoQr_comp)
 

Function Documentation

◆ Thetav()

AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real Thetav ( int  i,
int  j,
int  k,
const amrex::Array4< const amrex::Real > &  cell_data,
const int  RhoQv_comp,
const int  RhoQc_comp,
const int  RhoQr_comp 
)
15 {
16  amrex::Real thetav = cell_data(i,j,k,RhoTheta_comp) / cell_data(i,j,k,Rho_comp);
17 
18  if (RhoQr_comp > 0) {
19  thetav *= (1.0 + 0.61 * cell_data(i,j,k,RhoQv_comp) / cell_data(i,j,k,Rho_comp)
20  - cell_data(i,j,k,RhoQc_comp) / cell_data(i,j,k,Rho_comp)
21  - cell_data(i,j,k,RhoQr_comp) / cell_data(i,j,k,Rho_comp));
22  } else if (RhoQv_comp > 0) {
23  thetav *= (1.0 + 0.61 * cell_data(i,j,k,RhoQ1_comp) / cell_data(i,j,k,Rho_comp)
24  - cell_data(i,j,k,RhoQc_comp) / cell_data(i,j,k,Rho_comp));
25  }
26 
27  return thetav;
28 }
#define Rho_comp
Definition: ERF_IndexDefines.H:36
#define RhoTheta_comp
Definition: ERF_IndexDefines.H:37
#define RhoQ1_comp
Definition: ERF_IndexDefines.H:42

Referenced by MYNNPBLH::compute_pblh(), and ComputeVerticalDerivativesPBL().

Here is the caller graph for this function: