#include <ERF_Interpolation_UPW.H>
|
| CENTERED4 (const amrex::Array4< const amrex::Real > &phi) |
|
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, const amrex::Real) 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, const amrex::Real) 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, const amrex::Real) const |
|
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real | Evaluate (const amrex::Real &sp1, const amrex::Real &s, const amrex::Real &sm1, const amrex::Real &sm2) const |
|
|
amrex::Array4< const amrex::Real > | m_phi |
|
|
static constexpr amrex::Real | g1 =(7.0/12.0) |
|
static constexpr amrex::Real | g2 =(1.0/12.0) |
|
Interpolation operators used for 4th order centered scheme
◆ CENTERED4()
CENTERED4::CENTERED4 |
( |
const amrex::Array4< const amrex::Real > & |
phi | ) |
|
|
inline |
amrex::Array4< const amrex::Real > m_phi
Definition: ERF_Interpolation_UPW.H:292
◆ Evaluate()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real CENTERED4::Evaluate |
( |
const amrex::Real & |
sp1, |
|
|
const amrex::Real & |
s, |
|
|
const amrex::Real & |
sm1, |
|
|
const amrex::Real & |
sm2 |
|
) |
| const |
|
inline |
284 amrex::Real a1 = (s + sm1);
285 amrex::Real a2 = (sp1 + sm2);
288 return (
g1*a1 -
g2*a2 );
static constexpr amrex::Real g1
Definition: ERF_Interpolation_UPW.H:293
static constexpr amrex::Real g2
Definition: ERF_Interpolation_UPW.H:294
Referenced by InterpolateInX(), InterpolateInY(), and InterpolateInZ().
◆ InterpolateInX()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void CENTERED4::InterpolateInX |
( |
const int & |
i, |
|
|
const int & |
j, |
|
|
const int & |
k, |
|
|
const int & |
qty_index, |
|
|
amrex::Real & |
val_lo, |
|
|
amrex::Real |
, |
|
|
const amrex::Real |
|
|
) |
| const |
|
inline |
224 amrex::Real sp1 =
m_phi(i+1, j , k , qty_index);
225 amrex::Real s =
m_phi(i , j , k , qty_index);
226 amrex::Real sm1 =
m_phi(i-1, j , k , qty_index);
227 amrex::Real sm2 =
m_phi(i-2, j , k , qty_index);
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real Evaluate(const amrex::Real &sp1, const amrex::Real &s, const amrex::Real &sm1, const amrex::Real &sm2) const
Definition: ERF_Interpolation_UPW.H:278
◆ InterpolateInY()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void CENTERED4::InterpolateInY |
( |
const int & |
i, |
|
|
const int & |
j, |
|
|
const int & |
k, |
|
|
const int & |
qty_index, |
|
|
amrex::Real & |
val_lo, |
|
|
amrex::Real |
, |
|
|
const amrex::Real |
|
|
) |
| const |
|
inline |
245 amrex::Real sp1 =
m_phi(i , j+1, k , qty_index);
246 amrex::Real s =
m_phi(i , j , k , qty_index);
247 amrex::Real sm1 =
m_phi(i , j-1, k , qty_index);
248 amrex::Real sm2 =
m_phi(i , j-2, k , qty_index);
◆ InterpolateInZ()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void CENTERED4::InterpolateInZ |
( |
const int & |
i, |
|
|
const int & |
j, |
|
|
const int & |
k, |
|
|
const int & |
qty_index, |
|
|
amrex::Real & |
val_lo, |
|
|
amrex::Real |
, |
|
|
const amrex::Real |
|
|
) |
| const |
|
inline |
266 amrex::Real sp1 =
m_phi(i , j , k+1, qty_index);
267 amrex::Real s =
m_phi(i , j , k , qty_index);
268 amrex::Real sm1 =
m_phi(i , j , k-1, qty_index);
269 amrex::Real sm2 =
m_phi(i , j , k-2, qty_index);
◆ g1
constexpr amrex::Real CENTERED4::g1 =(7.0/12.0) |
|
staticconstexprprivate |
◆ g2
constexpr amrex::Real CENTERED4::g2 =(1.0/12.0) |
|
staticconstexprprivate |
◆ m_phi
amrex::Array4<const amrex::Real> CENTERED4::m_phi |
|
private |
The documentation for this struct was generated from the following file: