ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_InitCustomPertVels_ParticleTests.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)
 
 ParallelFor (xbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { Real zbot=z_nd(i, j, 0);x_vel_pert(i, j, k)=U_0 *ztop/(ztop - zbot);})
 
 ParallelFor (zbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { z_vel_pert(i, j, k)=WFromOmega(i, j, k, zero, x_vel_pert, y_vel_pert, mf_u, mf_v, z_nd, dxInv);})
 

Variables

Real U_0 = zero
 
const Real ztop = geomdata.ProbHi()[2]
 
const auto dx = geomdata.CellSize()
 
amrex::GpuArray< Real, AMREX_SPACEDIM > dxInv = one / dx[0]
 

Function Documentation

◆ ParallelFor() [1/2]

ParallelFor ( xbx  ,
[=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { Real zbot=z_nd(i, j, 0);x_vel_pert(i, j, k)=U_0 *ztop/(ztop - zbot);}   
)

◆ ParallelFor() [2/2]

ParallelFor ( zbx  ,
[=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { z_vel_pert(i, j, k)=WFromOmega(i, j, k, zero, x_vel_pert, y_vel_pert, mf_u, mf_v, z_nd, dxInv);}   
)
Here is the call graph for this function:

◆ pp_for_pert_vels()

ParmParse pp_for_pert_vels ( "prob"  )

◆ query()

pp_for_pert_vels query ( "U_0"  ,
U_0   
)

Variable Documentation

◆ dx

const auto dx = geomdata.CellSize()

◆ dxInv

dxInv[2] = one / dx[0]

Referenced by ERF::advance_dycore(), AdvectionSrcForMom_ConstantDz(), AdvectionSrcForMom_EB(), AdvectionSrcForMom_StretchedDz(), AdvectionSrcForMom_TF(), AdvectionSrcForMomWrapper_N(), AdvectionSrcForOpenBC_Normal(), AdvectionSrcForOpenBC_Tangent(), AdvectionSrcForOpenBC_Tangent_Cons(), AdvectionSrcForOpenBC_Tangent_Xmom(), AdvectionSrcForOpenBC_Tangent_Ymom(), AdvectionSrcForOpenBC_Tangent_Zmom(), AdvectionSrcForRho(), AdvectionSrcForScalars(), AdvectionSrcForXMom(), AdvectionSrcForXMom_N(), AdvectionSrcForYMom(), AdvectionSrcForYMom_N(), AdvectionSrcForZMom(), AdvectionSrcForZMom_N(), ERF::compute_divergence(), compute_gradp(), compute_gradp_interpz(), Compute_h_xi_AtCellCenter(), Compute_h_xi_AtEdgeCenterI(), Compute_h_xi_AtEdgeCenterJ(), Compute_h_xi_AtEdgeCenterK(), MOSTAverage::compute_plane_averages(), MOSTAverage::compute_region_averages(), SurfaceLayer::compute_SurfaceLayer_bcs(), ComputeDiffusivityMRF(), ComputeDiffusivityMYJ(), ComputeDiffusivityMYNN25(), ComputeDiffusivityMYNNEDMF(), ComputeDiffusivityYSU(), ComputeStrain_EB(), ComputeStrain_N(), ComputeStrain_S(), ComputeStrain_T(), ComputeStressConsVisc_T(), ComputeStressVarVisc_T(), ComputeTurbulentViscosityLES(), ComputeTurbulentViscosityLES_EB(), DiffusionSrcForMom(), DiffusionSrcForMom_EB(), EBAdvectionSrcForRho(), EBAdvectionSrcForScalars(), erf_make_tau_terms(), erf_slow_rhs_post(), erf_slow_rhs_pre(), erf_substep_MT(), erf_substep_NS(), erf_substep_T(), FillZeroAreaFaceFluxes(), if(), ERFPhysBCFunct_w::impose_lateral_zvel_bcs(), ERFPhysBCFunct_cons::impose_vertical_cons_bcs(), ERFPhysBCFunct_u::impose_vertical_xvel_bcs(), ERFPhysBCFunct_v::impose_vertical_yvel_bcs(), ERFPhysBCFunct_w::impose_vertical_zvel_bcs(), make_fast_coeffs(), make_mom_sources(), make_sources(), OmegaFromW(), ERFPhysBCFunct_u::operator()(), ERFPhysBCFunct_v::operator()(), ERFPhysBCFunct_w::operator()(), ERFPhysBCFunct_cons::operator()(), ParallelFor(), ERF::project_momenta(), rotate_scalar_flux(), rotate_stress_tensor(), MOSTAverage::set_norm_indices_T(), MOSTAverage::set_norm_positions_T(), MOSTAverage::set_rotated_fields(), and WFromOmega().

◆ U_0

Real U_0 = zero

Referenced by ParallelFor().

◆ ztop