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 ztop=z_nd(i, j, khi+1);Real zht=z_nd(i, j, klo);x_vel_pert(i, j, k)=U_0 *ztop/(ztop - zht);})
 
 ParallelFor (zbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { z_vel_pert(i, j, k)=WFromOmega(i, j, k, 0.0, x_vel_pert, y_vel_pert, mf_u, mf_v, z_nd, dxInv);})
 

Variables

Real U_0 = 0.0
 
const int klo = geomdata.Domain().smallEnd()[2]
 
const int khi = geomdata.Domain().bigEnd()[2]
 
const auto dx = geomdata.CellSize()
 
amrex::GpuArray< Real, AMREX_SPACEDIM > dxInv = 1. / dx[0]
 

Function Documentation

◆ ParallelFor() [1/2]

ParallelFor ( xbx  ,
[=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { Real ztop=z_nd(i, j, khi+1);Real zht=z_nd(i, j, klo);x_vel_pert(i, j, k)=U_0 *ztop/(ztop - zht);}   
)

◆ 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, 0.0, 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] = 1. / 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().

◆ khi

const int khi = geomdata.Domain().bigEnd()[2]

Referenced by ParallelFor().

◆ klo

const int klo = geomdata.Domain().smallEnd()[2]

Referenced by Morrison::Advance(), NOAHMP::Advance_With_State(), SurfaceLayer::compute_fluxes(), MOSTAverage::compute_plane_averages(), MOSTAverage::compute_region_averages(), SurfaceLayer::compute_SurfaceLayer_bcs(), ComputeDiffusivityMRF(), ComputeDiffusivityMYJ(), copy_surface_tau_for_implicit(), DiffusionSrcForState_S(), ERF::erf_enforce_hse(), erf_init_dens_hse(), erf_slow_rhs_pre(), erf_substep_MT(), erf_substep_NS(), erf_substep_T(), ERF::ErrorEst(), SurfaceLayer::fill_qsurf_with_qsat(), SurfaceLayer::fill_tsurf_with_sst_and_tsk(), SurfaceLayer::get_lsm_tsurf(), ImplicitDiffForMom_N(), ImplicitDiffForMom_S(), ImplicitDiffForMom_T(), ImplicitDiffForState_N(), ImplicitDiffForState_S(), ImplicitDiffForState_T(), Radiation::Init(), NOAHMP::Init(), ERF::init_Dirichlet_bc_data(), ERF::init_geo_wind_profile(), HSEutils::init_isentropic_hse(), HSEutils::init_isentropic_hse_terrain(), SurfaceLayer::init_tke_from_ustar(), make_buoyancy(), make_fast_coeffs(), make_sources(), ParallelFor(), SurfaceLayer::read_custom_roughness(), ProblemBase::read_custom_terrain(), InputSpongeData::read_from_file(), InputSoundingData::read_from_file(), ERF::ReadCheckpointFile(), ERF::refinement_criteria_setup(), rotate_scalar_flux(), rotate_stress_tensor(), ERF::sample_lines(), SHOCInterface::set_grids(), MOSTAverage::set_k_indices_T(), MOSTAverage::set_norm_indices_T(), MOSTAverage::set_norm_positions_T(), MOSTAverage::set_z_positions_T(), ERF::setRayleighRefFromSounding(), SolveTridiag(), SurfaceLayer::update_fluxes(), ERF::Write2DPlotFile(), MOSTAverage::write_averages(), MOSTAverage::write_k_indices(), MOSTAverage::write_norm_indices(), and MOSTAverage::write_xz_positions().

◆ U_0

Real U_0 = 0.0

Referenced by ParallelFor().