#include <ERF_Interpolation_WENO_Z.H>
|
| WENO_MZQ3 (const amrex::Array4< const amrex::Real > &phi, const amrex::Real) |
|
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void | InterpolateInX (const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real upw_lo) const |
|
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void | InterpolateInY (const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real upw_lo) const |
|
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void | InterpolateInZ (const int &i, const int &j, const int &k, const int &qty_index, amrex::Real &val_lo, amrex::Real upw_lo) const |
|
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real | Evaluate (const amrex::Real &sm1, const amrex::Real &s, const amrex::Real &sp1) const |
|
Interpolation operators used for WENO_MZQ3 scheme
◆ WENO_MZQ3()
amrex::Array4< const amrex::Real > m_phi
Definition: ERF_Interpolation_WENO_Z.H:252
◆ Evaluate()
230 amrex::Real b3 = ( (13.0 / 12.0) * ((sm1 - 2.0*s + sp1)*(sm1 - 2.0*s + sp1)) ) + ( ((sp1 - sm1)*(sp1 - sm1)) / 4.0 );
233 amrex::Real t5 = ( std::abs(b3 - b1) + std::abs(b3 - b2) ) / 32.0;
245 amrex::Real v3 = (-sm1 + 5.0 * s + 2.0 * sp1) / 6.0;
248 return ( (w3 /
g3) * (v3 -
g1 * v1 -
g2 * v2) + w1 * v1 + w2 * v2 );
amrex::Real Real
Definition: ERF_ShocInterface.H:16
real(c_double), parameter a2
Definition: ERF_module_model_constants.F90:95
real(c_double), parameter a3
Definition: ERF_module_model_constants.F90:96
static constexpr amrex::Real g2
Definition: ERF_Interpolation_WENO_Z.H:255
static constexpr amrex::Real g3
Definition: ERF_Interpolation_WENO_Z.H:256
const amrex::Real eps
Definition: ERF_Interpolation_WENO_Z.H:253
static constexpr amrex::Real g1
Definition: ERF_Interpolation_WENO_Z.H:254
Referenced by InterpolateInX(), InterpolateInY(), and InterpolateInZ().
◆ InterpolateInX()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void WENO_MZQ3::InterpolateInX |
( |
const int & |
i, |
|
|
const int & |
j, |
|
|
const int & |
k, |
|
|
const int & |
qty_index, |
|
|
amrex::Real & |
val_lo, |
|
|
amrex::Real |
upw_lo |
|
) |
| const |
|
inline |
150 if (upw_lo != 0.) upw_lo = (upw_lo > 0) ? 1. : -1.;
163 val_lo = (1.0 + upw_lo)/2.0 * Fhi + (1.0 - upw_lo)/2.0 * Flo;
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real Evaluate(const amrex::Real &sm1, const amrex::Real &s, const amrex::Real &sp1) const
Definition: ERF_Interpolation_WENO_Z.H:223
◆ InterpolateInY()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void WENO_MZQ3::InterpolateInY |
( |
const int & |
i, |
|
|
const int & |
j, |
|
|
const int & |
k, |
|
|
const int & |
qty_index, |
|
|
amrex::Real & |
val_lo, |
|
|
amrex::Real |
upw_lo |
|
) |
| const |
|
inline |
177 if (upw_lo != 0.) upw_lo = (upw_lo > 0) ? 1. : -1.;
190 val_lo = (1.0 + upw_lo)/2.0 * Fhi + (1.0 - upw_lo)/2.0 * Flo;
◆ InterpolateInZ()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void WENO_MZQ3::InterpolateInZ |
( |
const int & |
i, |
|
|
const int & |
j, |
|
|
const int & |
k, |
|
|
const int & |
qty_index, |
|
|
amrex::Real & |
val_lo, |
|
|
amrex::Real |
upw_lo |
|
) |
| const |
|
inline |
204 if (upw_lo != 0.) upw_lo = (upw_lo > 0) ? 1. : -1.;
217 val_lo = (1.0 + upw_lo)/2.0 * Fhi + (1.0 - upw_lo)/2.0 * Flo;
◆ eps
◆ g1
◆ g2
◆ g3
◆ m_phi
The documentation for this struct was generated from the following file: