ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_PerturbationWind.H
Go to the documentation of this file.
1 #ifndef ERF_PERTURBATION_WIND_H_
2 #define ERF_PERTURBATION_WIND_H_
3 
4 #include <AMReX_Geometry.H>
5 #include <AMReX_MultiFab.H>
7 
11  bool complete = false;
12 };
13 
14 // Sample horizontal winds at one height AGL and average over the columns in
15 // region. Interpolate between cell centers; use the nearest center within the
16 // bottom/top half-cell. A height outside the available cells is not covered.
17 // All ranks participate. complete is true only when every column is covered.
19  const amrex::Box& region, amrex::Real height_agl,
20  const amrex::Geometry& geom, const amrex::MultiFab& state,
21  const amrex::MultiFab& xvel, const amrex::MultiFab& yvel,
22  const amrex::MultiFab* z_cc, const amrex::MultiFab* z_nd);
23 
24 #endif
Dimensionless numeric literals and pure mathematical constants.
constexpr amrex::Real zero
Definition: ERF_NumericalConstants.H:36
PerturbationWindSample sample_perturbation_wind(const amrex::Box &region, amrex::Real height_agl, const amrex::Geometry &geom, const amrex::MultiFab &state, const amrex::MultiFab &xvel, const amrex::MultiFab &yvel, const amrex::MultiFab *z_cc, const amrex::MultiFab *z_nd)
amrex::Real Real
Definition: ERF_ShocInterface.H:19
@ xvel
Definition: ERF_IndexDefines.H:255
@ yvel
Definition: ERF_IndexDefines.H:256
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real height_agl(amrex::Real z, amrex::Real z_sfc) noexcept
Definition: ERF_ShocGpuUtils.H:50
Definition: ERF_PerturbationWind.H:8
bool complete
Definition: ERF_PerturbationWind.H:11
amrex::Real v
Definition: ERF_PerturbationWind.H:10
amrex::Real u
Definition: ERF_PerturbationWind.H:9