AssembleRhsHllCachedKernel< Limiter, Model > Struct Template ReferenceΒΆ

adc_cpp: pops::detail::AssembleRhsHllCachedKernel< Limiter, Model > Struct Template Reference
adc_cpp 0.3.0
Model-free C++23 core for coupled hyperbolic-elliptic systems on adaptive (AMR) meshes, with MPI and GPU (Kokkos) backends
pops::detail::AssembleRhsHllCachedKernel< Limiter, Model > Struct Template Reference

AssembleRhsHllCachedKernel: kernel of the residual R = -div Fhat + S for the HLL flux with wave speeds PRE-COMPUTED per cell (scratch ws, 4 components). More...

#include <cartesian_operator.hpp>

+ Collaboration diagram for pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >:

Public Member Functions

POPS_HD void operator() (int i, int j) const
 

Public Attributes

Model model
 
ConstArray4 u
 
ConstArray4 ax
 
ConstArray4 ws
 
Array4 r
 
Real dx
 
Real dy
 
Limiter lim
 
bool recon_prim
 
Real pos_floor = Real(0)
 Zhang-Shu positivity limiter (<= 0: inactive, bit-identical)
 
int pos_comp = 0
 Density role component (resolved by the host caller)
 

Detailed Description

template<class Limiter, class Model>
struct pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >

AssembleRhsHllCachedKernel: kernel of the residual R = -div Fhat + S for the HLL flux with wave speeds PRE-COMPUTED per cell (scratch ws, 4 components).

Reconstruction and numerical flux IDENTICAL to AssembleRhsKernel<.., HLLFlux>; only the source of the signal speeds changes: instead of hll_speeds (per-face recall of model.wave_speeds), each face bounds sL/sR by min/max of the cached speeds of its two adjacent cells – exactly the Davis estimates of the per-face path when the reconstructed states equal the cell values (NoSlope). Named functor (device-clean cross-TU). POPS_HD.

Member Function Documentation

◆ operator()()

template<class Limiter , class Model >
POPS_HD void pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >::operator() ( int  i,
int  j 
) const
inline
+ Here is the call graph for this function:

Member Data Documentation

◆ ax

template<class Limiter , class Model >
ConstArray4 pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >::ax

◆ dx

template<class Limiter , class Model >
Real pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >::dx

◆ dy

template<class Limiter , class Model >
Real pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >::dy

◆ lim

template<class Limiter , class Model >
Limiter pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >::lim

◆ model

template<class Limiter , class Model >
Model pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >::model

◆ pos_comp

template<class Limiter , class Model >
int pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >::pos_comp = 0

Density role component (resolved by the host caller)

◆ pos_floor

template<class Limiter , class Model >
Real pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >::pos_floor = Real(0)

Zhang-Shu positivity limiter (<= 0: inactive, bit-identical)

◆ r

template<class Limiter , class Model >
Array4 pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >::r

◆ recon_prim

template<class Limiter , class Model >
bool pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >::recon_prim

◆ u

template<class Limiter , class Model >
ConstArray4 pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >::u

◆ ws

template<class Limiter , class Model >
ConstArray4 pops::detail::AssembleRhsHllCachedKernel< Limiter, Model >::ws

The documentation for this struct was generated from the following file: