AMReX-Hydro
AMReX-based hydro routines for low Mach number flows
PPM Namespace Reference

Classes

struct  nolimiter
 
struct  vanleer
 
struct  wenoz
 
struct  weno_js
 
struct  upwind
 
struct  minmod
 

Enumerations

enum  limiters {
  VanLeer , WENOZ , WENO_JS , NoLimiter ,
  UPWIND , MINMOD
}
 

Functions

template<typename Limiter >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void SetXBCs (const int i, const int j, const int k, const int n, amrex::Real &sm, amrex::Real &sp, amrex::Real &sedge1, amrex::Real &sedge2, const amrex::Array4< const amrex::Real > &s, const amrex::Real velm, const amrex::Real velp, const int bclo, const int bchi, const int domlo, const int domhi)
 
template<typename Limiter >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void SetYBCs (const int i, const int j, const int k, const int n, amrex::Real &sm, amrex::Real &sp, amrex::Real &sedge1, amrex::Real &sedge2, const amrex::Array4< const amrex::Real > &s, const amrex::Real velm, const amrex::Real velp, const int bclo, const int bchi, const int domlo, const int domhi)
 
template<typename Limiter >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void PredictVelOnXFace (const int i, const int j, const int k, const int n, const amrex::Real dtdx, const amrex::Real v_ad, const amrex::Array4< const amrex::Real > &S, const amrex::Array4< amrex::Real > &Im, const amrex::Array4< amrex::Real > &Ip, const amrex::BCRec bc, const int domlo, const int domhi, const Limiter &)
 
template<typename Limiter >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void PredictVelOnYFace (const int i, const int j, const int k, const int n, const amrex::Real dtdy, const amrex::Real v_ad, const amrex::Array4< const amrex::Real > &S, const amrex::Array4< amrex::Real > &Im, const amrex::Array4< amrex::Real > &Ip, const amrex::BCRec bc, const int domlo, const int domhi, const Limiter &)
 
template<typename Limiter >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void PredictStateOnXFace (const int i, const int j, const int k, const int n, const amrex::Real dt, const amrex::Real dx, amrex::Real &Im, amrex::Real &Ip, const amrex::Array4< const amrex::Real > &S, const amrex::Array4< const amrex::Real > &vel_edge, const amrex::BCRec bc, const int domlo, const int domhi, const Limiter &, int limiter_type)
 
template<typename Limiter >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void PredictStateOnYFace (const int i, const int j, const int k, const int n, const amrex::Real dt, const amrex::Real dx, amrex::Real &Im, amrex::Real &Ip, const amrex::Array4< const amrex::Real > &S, const amrex::Array4< const amrex::Real > &vel_edge, const amrex::BCRec bc, const int domlo, const int domhi, const Limiter &, int limiter_type)
 
template<typename Limiter >
void PredictVelOnFaces (amrex::Box const &bx, AMREX_D_DECL(amrex::Array4< amrex::Real > const &Imx, amrex::Array4< amrex::Real > const &Imy, amrex::Array4< amrex::Real > const &Imz), AMREX_D_DECL(amrex::Array4< amrex::Real > const &Ipx, amrex::Array4< amrex::Real > const &Ipy, amrex::Array4< amrex::Real > const &Ipz), amrex::Array4< amrex::Real const > const &q, amrex::Array4< amrex::Real const > const &vel, amrex::Geometry geom, amrex::Real dt, amrex::BCRec const *pbc, const Limiter &limiter)
 
template<typename Limiter >
void PredictStateOnFaces (amrex::Box const &bx, AMREX_D_DECL(amrex::Array4< amrex::Real > const &Imx, amrex::Array4< amrex::Real > const &Imy, amrex::Array4< amrex::Real > const &Imz), AMREX_D_DECL(amrex::Array4< amrex::Real > const &Ipx, amrex::Array4< amrex::Real > const &Ipy, amrex::Array4< amrex::Real > const &Ipz), AMREX_D_DECL(amrex::Array4< amrex::Real const > const &umac, amrex::Array4< amrex::Real const > const &vmac, amrex::Array4< amrex::Real const > const &wmac), amrex::Array4< amrex::Real const > const &q, amrex::Geometry geom, amrex::Real l_dt, amrex::BCRec const *pbc, const int ncomp, const Limiter &limiter, int limiter_type)
 

Variables

static constexpr int default_limiter = VanLeer
 

Enumeration Type Documentation

◆ limiters

Enumerator
VanLeer 
WENOZ 
WENO_JS 
NoLimiter 
UPWIND 
MINMOD 

Function Documentation

◆ PredictStateOnFaces()

template<typename Limiter >
void PPM::PredictStateOnFaces ( amrex::Box const &  bx,
AMREX_D_DECL(amrex::Array4< amrex::Real > const &Imx, amrex::Array4< amrex::Real > const &Imy, amrex::Array4< amrex::Real > const &Imz)  ,
AMREX_D_DECL(amrex::Array4< amrex::Real > const &Ipx, amrex::Array4< amrex::Real > const &Ipy, amrex::Array4< amrex::Real > const &Ipz)  ,
AMREX_D_DECL(amrex::Array4< amrex::Real const > const &umac, amrex::Array4< amrex::Real const > const &vmac, amrex::Array4< amrex::Real const > const &wmac)  ,
amrex::Array4< amrex::Real const > const &  q,
amrex::Geometry  geom,
amrex::Real  l_dt,
amrex::BCRec const *  pbc,
const int  ncomp,
const Limiter &  limiter,
int  limiter_type 
)
Here is the call graph for this function:

◆ PredictStateOnXFace()

template<typename Limiter >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void PPM::PredictStateOnXFace ( const int  i,
const int  j,
const int  k,
const int  n,
const amrex::Real  dt,
const amrex::Real  dx,
amrex::Real &  Im,
amrex::Real &  Ip,
const amrex::Array4< const amrex::Real > &  S,
const amrex::Array4< const amrex::Real > &  vel_edge,
const amrex::BCRec  bc,
const int  domlo,
const int  domhi,
const Limiter &  ,
int  limiter_type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PredictStateOnYFace()

template<typename Limiter >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void PPM::PredictStateOnYFace ( const int  i,
const int  j,
const int  k,
const int  n,
const amrex::Real  dt,
const amrex::Real  dx,
amrex::Real &  Im,
amrex::Real &  Ip,
const amrex::Array4< const amrex::Real > &  S,
const amrex::Array4< const amrex::Real > &  vel_edge,
const amrex::BCRec  bc,
const int  domlo,
const int  domhi,
const Limiter &  ,
int  limiter_type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PredictVelOnFaces()

template<typename Limiter >
void PPM::PredictVelOnFaces ( amrex::Box const &  bx,
AMREX_D_DECL(amrex::Array4< amrex::Real > const &Imx, amrex::Array4< amrex::Real > const &Imy, amrex::Array4< amrex::Real > const &Imz)  ,
AMREX_D_DECL(amrex::Array4< amrex::Real > const &Ipx, amrex::Array4< amrex::Real > const &Ipy, amrex::Array4< amrex::Real > const &Ipz)  ,
amrex::Array4< amrex::Real const > const &  q,
amrex::Array4< amrex::Real const > const &  vel,
amrex::Geometry  geom,
amrex::Real  dt,
amrex::BCRec const *  pbc,
const Limiter &  limiter 
)
Here is the call graph for this function:

◆ PredictVelOnXFace()

template<typename Limiter >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void PPM::PredictVelOnXFace ( const int  i,
const int  j,
const int  k,
const int  n,
const amrex::Real  dtdx,
const amrex::Real  v_ad,
const amrex::Array4< const amrex::Real > &  S,
const amrex::Array4< amrex::Real > &  Im,
const amrex::Array4< amrex::Real > &  Ip,
const amrex::BCRec  bc,
const int  domlo,
const int  domhi,
const Limiter &   
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PredictVelOnYFace()

template<typename Limiter >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void PPM::PredictVelOnYFace ( const int  i,
const int  j,
const int  k,
const int  n,
const amrex::Real  dtdy,
const amrex::Real  v_ad,
const amrex::Array4< const amrex::Real > &  S,
const amrex::Array4< amrex::Real > &  Im,
const amrex::Array4< amrex::Real > &  Ip,
const amrex::BCRec  bc,
const int  domlo,
const int  domhi,
const Limiter &   
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetXBCs()

template<typename Limiter >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void PPM::SetXBCs ( const int  i,
const int  j,
const int  k,
const int  n,
amrex::Real &  sm,
amrex::Real &  sp,
amrex::Real &  sedge1,
amrex::Real &  sedge2,
const amrex::Array4< const amrex::Real > &  s,
const amrex::Real  velm,
const amrex::Real  velp,
const int  bclo,
const int  bchi,
const int  domlo,
const int  domhi 
)
Here is the call graph for this function:

◆ SetYBCs()

template<typename Limiter >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void PPM::SetYBCs ( const int  i,
const int  j,
const int  k,
const int  n,
amrex::Real &  sm,
amrex::Real &  sp,
amrex::Real &  sedge1,
amrex::Real &  sedge2,
const amrex::Array4< const amrex::Real > &  s,
const amrex::Real  velm,
const amrex::Real  velp,
const int  bclo,
const int  bchi,
const int  domlo,
const int  domhi 
)
Here is the call graph for this function:

Variable Documentation

◆ default_limiter

constexpr int PPM::default_limiter = VanLeer
staticconstexpr