ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_InitCustomPertVels_WitchOfAgnesi.H File Reference

Go to the source code of this file.

Functions

ParmParse pp_for_pert_vels ("prob")
 
pp_for_pert_vels query ("U_0", U_0)
 
pp_for_pert_vels query ("V_0", V_0)
 
 ParallelFor (xbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { x_vel_pert(i, j, k)=U_0;})
 
 ParallelFor (ybx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { y_vel_pert(i, j, k)=V_0;})
 
 if (sc.terrain_type==TerrainType::StaticFittedMesh)
 

Variables

Real U_0 = 0.0
 
Real V_0 = 0.0
 
const auto dx = geomdata.CellSize()
 
amrex::GpuArray< Real, AMREX_SPACEDIM > dxInv = 1. / dx[0]
 

Function Documentation

◆ if()

if ( sc.  terrain_type = = TerrainType::StaticFittedMesh)
27  {
28  ParallelFor(zbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept
29  {
30  z_vel_pert(i, j, k) = WFromOmega(i, j, k, 0.0,
31  x_vel_pert, y_vel_pert,
32  mf_u, mf_v, z_nd, dxInv);
33  });
34  }
amrex::GpuArray< Real, AMREX_SPACEDIM > dxInv
Definition: ERF_InitCustomPertVels_WitchOfAgnesi.H:23
ParallelFor(xbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { x_vel_pert(i, j, k)=U_0;})
const Box zbx
Definition: ERF_SetupDiff.H:9
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real WFromOmega(int &i, int &j, int &k, amrex::Real omega, const amrex::Array4< const amrex::Real > &u_arr, const amrex::Array4< const amrex::Real > &v_arr, const amrex::Array4< const amrex::Real > &mf_u, const amrex::Array4< const amrex::Real > &mf_v, const amrex::Array4< const amrex::Real > &z_nd, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &dxInv)
Definition: ERF_TerrainMetrics.H:462
Here is the call graph for this function:

◆ ParallelFor() [1/2]

ParallelFor ( xbx  ,
[=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { x_vel_pert(i, j, k)=U_0;}   
)

Referenced by if().

Here is the caller graph for this function:

◆ ParallelFor() [2/2]

ParallelFor ( ybx  ,
[=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { y_vel_pert(i, j, k)=V_0;}   
)

◆ pp_for_pert_vels()

ParmParse pp_for_pert_vels ( "prob"  )

◆ query() [1/2]

pp_for_pert_vels query ( "U_0"  ,
U_0   
)

◆ query() [2/2]

pp_for_pert_vels query ( "V_0"  ,
V_0   
)

Variable Documentation

◆ dx

const auto dx = geomdata.CellSize()

◆ dxInv

dxInv[2] = 1. / dx[0]

Referenced by if().

◆ U_0

Real U_0 = 0.0

Referenced by ParallelFor().

◆ V_0

Real V_0 = 0.0

Referenced by ParallelFor().