ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
erf_prob_heights Namespace Reference

Functions

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real z_xface (int i, int j, int k, amrex::Array4< amrex::Real const > const &z_nd) noexcept
 Height of the centre of x-face (i,j,k) More...
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real z_yface (int i, int j, int k, amrex::Array4< amrex::Real const > const &z_nd) noexcept
 Height of the centre of y-face (i,j,k) More...
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real z_zface (int i, int j, int k, amrex::Array4< amrex::Real const > const &z_nd) noexcept
 Height of the centre of z-face (i,j,k) More...
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real z_ground_cc (int i, int j, amrex::Array4< amrex::Real const > const &z_sfc_nd) noexcept
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real z_ground_xface (int i, int j, amrex::Array4< amrex::Real const > const &z_sfc_nd) noexcept
 Height of the ground under x-face (i,j) More...
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real z_ground_yface (int i, int j, amrex::Array4< amrex::Real const > const &z_sfc_nd) noexcept
 Height of the ground under y-face (i,j) More...
 

Detailed Description

Physical heights at the face centres of a cell, from the nodal heights z_nd.

On a mesh other than ConstantDz, geometry's prob_lo[2], prob_hi[2] and CellSize(2) only bound and step the computational coordinate, so problem setups take their heights from z_nd (and z_cc) there.

Function Documentation

◆ z_ground_cc()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real erf_prob_heights::z_ground_cc ( int  i,
int  j,
amrex::Array4< amrex::Real const > const &  z_sfc_nd 
)
noexcept

Height of the ground under cell (i,j), from z_sfc_nd, the ground heights at the nodes of the bottom face of each column (see ERF::init_custom)

50 {
51  return amrex::Real(0.25) * ( z_sfc_nd(i,j ,0) + z_sfc_nd(i+1,j ,0)
52  + z_sfc_nd(i,j+1,0) + z_sfc_nd(i+1,j+1,0) );
53 }
amrex::Real Real
Definition: ERF_ShocInterface.H:19

Referenced by ParallelFor(), and ParallelForRNG().

Here is the caller graph for this function:

◆ z_ground_xface()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real erf_prob_heights::z_ground_xface ( int  i,
int  j,
amrex::Array4< amrex::Real const > const &  z_sfc_nd 
)
noexcept

Height of the ground under x-face (i,j)

59 {
60  return amrex::Real(0.5) * ( z_sfc_nd(i,j,0) + z_sfc_nd(i,j+1,0) );
61 }

Referenced by ParallelForRNG().

Here is the caller graph for this function:

◆ z_ground_yface()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real erf_prob_heights::z_ground_yface ( int  i,
int  j,
amrex::Array4< amrex::Real const > const &  z_sfc_nd 
)
noexcept

Height of the ground under y-face (i,j)

67 {
68  return amrex::Real(0.5) * ( z_sfc_nd(i,j,0) + z_sfc_nd(i+1,j,0) );
69 }

Referenced by ParallelForRNG().

Here is the caller graph for this function:

◆ z_xface()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real erf_prob_heights::z_xface ( int  i,
int  j,
int  k,
amrex::Array4< amrex::Real const > const &  z_nd 
)
noexcept

Height of the centre of x-face (i,j,k)

22 {
23  return amrex::Real(0.25) * ( z_nd(i,j ,k) + z_nd(i,j ,k+1)
24  + z_nd(i,j+1,k) + z_nd(i,j+1,k+1) );
25 }

Referenced by if(), ParallelFor(), and ParallelForRNG().

Here is the caller graph for this function:

◆ z_yface()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real erf_prob_heights::z_yface ( int  i,
int  j,
int  k,
amrex::Array4< amrex::Real const > const &  z_nd 
)
noexcept

Height of the centre of y-face (i,j,k)

31 {
32  return amrex::Real(0.25) * ( z_nd(i ,j,k) + z_nd(i ,j,k+1)
33  + z_nd(i+1,j,k) + z_nd(i+1,j,k+1) );
34 }

Referenced by if(), ParallelFor(), and ParallelForRNG().

Here is the caller graph for this function:

◆ z_zface()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real erf_prob_heights::z_zface ( int  i,
int  j,
int  k,
amrex::Array4< amrex::Real const > const &  z_nd 
)
noexcept

Height of the centre of z-face (i,j,k)

40 {
41  return amrex::Real(0.25) * ( z_nd(i,j ,k) + z_nd(i+1,j ,k)
42  + z_nd(i,j+1,k) + z_nd(i+1,j+1,k) );
43 }

Referenced by ParallelFor().

Here is the caller graph for this function: