File slope.H
Functions
- AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Real uslope (const Real *q, const Real flatn, bool bnd_lo_reflect, bool bnd_hi_reflect)
Construct the piecewise linear slopes for an input state q
- Parameters:
q – Real(\nslp) giving q_{i-2} through q_{i+2}, used in the reconstruction
flatn – flattening coefficient
bnd_lo_reflect – true if a symmetry boundary is just to the left of this zone
bnd_hi_reflect – true if a symmetry boundary is just to the right of this zone
- AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void pslope (const Real *rho, const Real *p, const Real *src, const Real flatn, bool lo_bc_test, bool hi_bc_test, const Real dx, Real &dp)
Compute the pressure slope using a well-balanced procedure where we subtract HSE off of the pressure before limiting
- Parameters:
rho – Real(\nslp) giving the density in zones i-2, i-1, i, i+1, i+2
p – Real(\nslp) giving the pressure in zones i-2, i-1, i, i+1, i+2
src – Real(\nslp) the source in the velocity equation (e.g. g) in zones i-2, i-1, i, i+2, i+2
flatn – flattening coefficient
lo_bc_test – true if a physical boundary is just to the left of this zone
hi_bc_test – true if a physical boundary is just to the right of this zone