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

Functions

void ComputeEdgeState (amrex::Box const &bx, AMREX_D_DECL(amrex::Array4< amrex::Real > const &xedge, amrex::Array4< amrex::Real > const &yedge, amrex::Array4< amrex::Real > const &zedge), amrex::Array4< amrex::Real const > const &q, int ncomp, 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::Box const &domain, amrex::Vector< amrex::BCRec > const &bcs, amrex::BCRec const *d_bcrec_ptr, AMREX_D_DECL(amrex::Array4< amrex::Real const > const &fcx, amrex::Array4< amrex::Real const > const &fcy, amrex::Array4< amrex::Real const > const &fcz), amrex::Array4< amrex::Real const > const &ccc, amrex::Array4< amrex::Real const > const &vfrac, amrex::Array4< amrex::EBCellFlag const > const &flag, bool is_velocity)
 
void ExtrapVelToFaces (const amrex::MultiFab &vel, AMREX_D_DECL(amrex::MultiFab &umac, amrex::MultiFab &vmac, amrex::MultiFab &wmac), const amrex::Geometry &a_geom, amrex::Vector< amrex::BCRec > const &h_bcrec, const amrex::BCRec *d_bcrec)
 
void ExtrapVelToFacesBox (AMREX_D_DECL(amrex::Box const &ubx, amrex::Box const &vbx, amrex::Box const &wbx), AMREX_D_DECL(amrex::Array4< amrex::Real > const &u, amrex::Array4< amrex::Real > const &v, amrex::Array4< amrex::Real > const &w), amrex::Array4< amrex::Real const > const &vcc, amrex::Array4< amrex::EBCellFlag const > const &flag, AMREX_D_DECL(amrex::Array4< amrex::Real const > const &fcx, amrex::Array4< amrex::Real const > const &fcy, amrex::Array4< amrex::Real const > const &fcz), amrex::Array4< amrex::Real const > const &ccc, amrex::Array4< amrex::Real const > const &vfrac, const amrex::Geometry &geom, amrex::Vector< amrex::BCRec > const &h_bcrec, const amrex::BCRec *d_bcrec)
 
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real hydro_ebmol_xedge_state_extdir (AMREX_D_DECL(int i, int j, int k), int n, amrex::Array4< amrex::Real const > const &q, amrex::Array4< amrex::Real const > const &umac, AMREX_D_DECL(amrex::Array4< amrex::Real const > const &fcx, amrex::Array4< amrex::Real const > const &fcy, amrex::Array4< amrex::Real const > const &fcz), amrex::Array4< amrex::Real const > const &ccc, amrex::Array4< amrex::Real const > const &vfrac, amrex::Array4< amrex::EBCellFlag const > const &flag, amrex::BCRec const *const d_bcrec, amrex::Box const &domain, int order, const bool is_velocity) noexcept
 
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real hydro_ebmol_xedge_state (AMREX_D_DECL(int i, int j, int k), int n, amrex::Array4< amrex::Real const > const &q, amrex::Array4< amrex::Real const > const &umac, AMREX_D_DECL(amrex::Array4< amrex::Real const > const &fcx, amrex::Array4< amrex::Real const > const &fcy, amrex::Array4< amrex::Real const > const &fcz), amrex::Array4< amrex::Real const > const &ccc, amrex::Array4< amrex::Real const > const &vfrac, amrex::Array4< amrex::EBCellFlag const > const &flag, amrex::BCRec const *const d_bcrec, amrex::Box const &domain, int order, const bool is_velocity) noexcept
 
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real hydro_ebmol_yedge_state_extdir (AMREX_D_DECL(int i, int j, int k), int n, amrex::Array4< amrex::Real const > const &q, amrex::Array4< amrex::Real const > const &vmac, AMREX_D_DECL(amrex::Array4< amrex::Real const > const &fcx, amrex::Array4< amrex::Real const > const &fcy, amrex::Array4< amrex::Real const > const &fcz), amrex::Array4< amrex::Real const > const &ccc, amrex::Array4< amrex::Real const > const &vfrac, amrex::Array4< amrex::EBCellFlag const > const &flag, amrex::BCRec const *const d_bcrec, amrex::Box const &domain, int order, const bool is_velocity) noexcept
 
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real hydro_ebmol_yedge_state (AMREX_D_DECL(int i, int j, int k), int n, amrex::Array4< amrex::Real const > const &q, amrex::Array4< amrex::Real const > const &vmac, AMREX_D_DECL(amrex::Array4< amrex::Real const > const &fcx, amrex::Array4< amrex::Real const > const &fcy, amrex::Array4< amrex::Real const > const &fcz), amrex::Array4< amrex::Real const > const &ccc, amrex::Array4< amrex::Real const > const &vfrac, amrex::Array4< amrex::EBCellFlag const > const &flag, amrex::BCRec const *const d_bcrec, amrex::Box const &domain, int order, const bool is_velocity) noexcept
 

Detailed Description

The procedure for computing MAC velocities and edge states with EB-aware MOL does not involve any time derivatives. All slope computations use second-order limited slopes as described in [sec:slopes].

Function Documentation

◆ ComputeEdgeState()

void EBMOL::ComputeEdgeState ( amrex::Box const &  bx,
AMREX_D_DECL(amrex::Array4< amrex::Real > const &xedge, amrex::Array4< amrex::Real > const &yedge, amrex::Array4< amrex::Real > const &zedge)  ,
amrex::Array4< amrex::Real const > const &  q,
int  ncomp,
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::Box const &  domain,
amrex::Vector< amrex::BCRec > const &  bcs,
amrex::BCRec const *  d_bcrec_ptr,
AMREX_D_DECL(amrex::Array4< amrex::Real const > const &fcx, amrex::Array4< amrex::Real const > const &fcy, amrex::Array4< amrex::Real const > const &fcz)  ,
amrex::Array4< amrex::Real const > const &  ccc,
amrex::Array4< amrex::Real const > const &  vfrac,
amrex::Array4< amrex::EBCellFlag const > const &  flag,
bool  is_velocity 
)

◆ ExtrapVelToFaces()

void EBMOL::ExtrapVelToFaces ( const amrex::MultiFab vel,
AMREX_D_DECL(amrex::MultiFab &umac, amrex::MultiFab &vmac, amrex::MultiFab &wmac)  ,
const amrex::Geometry a_geom,
amrex::Vector< amrex::BCRec > const &  h_bcrec,
const amrex::BCRec d_bcrec 
)
Here is the caller graph for this function:

◆ ExtrapVelToFacesBox()

void EBMOL::ExtrapVelToFacesBox ( AMREX_D_DECL(amrex::Box const &ubx, amrex::Box const &vbx, amrex::Box const &wbx)  ,
AMREX_D_DECL(amrex::Array4< amrex::Real > const &u, amrex::Array4< amrex::Real > const &v, amrex::Array4< amrex::Real > const &w)  ,
amrex::Array4< amrex::Real const > const &  vcc,
amrex::Array4< amrex::EBCellFlag const > const &  flag,
AMREX_D_DECL(amrex::Array4< amrex::Real const > const &fcx, amrex::Array4< amrex::Real const > const &fcy, amrex::Array4< amrex::Real const > const &fcz)  ,
amrex::Array4< amrex::Real const > const &  ccc,
amrex::Array4< amrex::Real const > const &  vfrac,
const amrex::Geometry geom,
amrex::Vector< amrex::BCRec > const &  h_bcrec,
const amrex::BCRec d_bcrec 
)

◆ hydro_ebmol_xedge_state()

AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real EBMOL::hydro_ebmol_xedge_state ( AMREX_D_DECL(int i, int j, int k)  ,
int  n,
amrex::Array4< amrex::Real const > const &  q,
amrex::Array4< amrex::Real const > const &  umac,
AMREX_D_DECL(amrex::Array4< amrex::Real const > const &fcx, amrex::Array4< amrex::Real const > const &fcy, amrex::Array4< amrex::Real const > const &fcz)  ,
amrex::Array4< amrex::Real const > const &  ccc,
amrex::Array4< amrex::Real const > const &  vfrac,
amrex::Array4< amrex::EBCellFlag const > const &  flag,
amrex::BCRec const *const  d_bcrec,
amrex::Box const &  domain,
int  order,
const bool  is_velocity 
)
noexcept
Here is the call graph for this function:

◆ hydro_ebmol_xedge_state_extdir()

AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real EBMOL::hydro_ebmol_xedge_state_extdir ( AMREX_D_DECL(int i, int j, int k)  ,
int  n,
amrex::Array4< amrex::Real const > const &  q,
amrex::Array4< amrex::Real const > const &  umac,
AMREX_D_DECL(amrex::Array4< amrex::Real const > const &fcx, amrex::Array4< amrex::Real const > const &fcy, amrex::Array4< amrex::Real const > const &fcz)  ,
amrex::Array4< amrex::Real const > const &  ccc,
amrex::Array4< amrex::Real const > const &  vfrac,
amrex::Array4< amrex::EBCellFlag const > const &  flag,
amrex::BCRec const *const  d_bcrec,
amrex::Box const &  domain,
int  order,
const bool  is_velocity 
)
noexcept
Here is the call graph for this function:

◆ hydro_ebmol_yedge_state()

AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real EBMOL::hydro_ebmol_yedge_state ( AMREX_D_DECL(int i, int j, int k)  ,
int  n,
amrex::Array4< amrex::Real const > const &  q,
amrex::Array4< amrex::Real const > const &  vmac,
AMREX_D_DECL(amrex::Array4< amrex::Real const > const &fcx, amrex::Array4< amrex::Real const > const &fcy, amrex::Array4< amrex::Real const > const &fcz)  ,
amrex::Array4< amrex::Real const > const &  ccc,
amrex::Array4< amrex::Real const > const &  vfrac,
amrex::Array4< amrex::EBCellFlag const > const &  flag,
amrex::BCRec const *const  d_bcrec,
amrex::Box const &  domain,
int  order,
const bool  is_velocity 
)
noexcept
Here is the call graph for this function:

◆ hydro_ebmol_yedge_state_extdir()

AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real EBMOL::hydro_ebmol_yedge_state_extdir ( AMREX_D_DECL(int i, int j, int k)  ,
int  n,
amrex::Array4< amrex::Real const > const &  q,
amrex::Array4< amrex::Real const > const &  vmac,
AMREX_D_DECL(amrex::Array4< amrex::Real const > const &fcx, amrex::Array4< amrex::Real const > const &fcy, amrex::Array4< amrex::Real const > const &fcz)  ,
amrex::Array4< amrex::Real const > const &  ccc,
amrex::Array4< amrex::Real const > const &  vfrac,
amrex::Array4< amrex::EBCellFlag const > const &  flag,
amrex::BCRec const *const  d_bcrec,
amrex::Box const &  domain,
int  order,
const bool  is_velocity 
)
noexcept
Here is the call graph for this function: