SourceFreeModel< M > 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
|
Public Types |
Public Member Functions |
Static Public Member Functions |
Public Attributes |
Static Public Attributes |
List of all members
pops::SourceFreeModel< M > Struct Template Reference
SourceFreeModel<M>: adapter that cancels the source of M (explicit IMEX half-step). More...
#include <state_access.hpp>
Collaboration diagram for pops::SourceFreeModel< M >:Public Types | |
| using | State = typename M::State |
| using | Aux = typename M::Aux |
Public Member Functions | |
| POPS_HD State | flux (const State &u, const Aux &a, int dir) const |
| POPS_HD Real | max_wave_speed (const State &u, const Aux &a, int dir) const |
| POPS_HD State | source (const State &, const Aux &) const |
| POPS_HD Real | elliptic_rhs (const State &u) const |
| POPS_HD Real | pressure (const State &u) const |
| POPS_HD void | wave_speeds (const State &u, const Aux &a, int dir, Real &smin, Real &smax) const |
| POPS_HD Real | contact_speed (const State &ul, const State &ur, Real pl, Real pr, Real sl, Real sr, int dir) const |
| POPS_HD State | hllc_star_state (const State &u, Real p, Real s, Real sStar, int dir) const |
| POPS_HD State | roe_dissipation (const State &ul, const Aux &al, const State &ur, const Aux &ar, int dir) const |
Static Public Member Functions | |
| static VariableSet | conservative_vars () |
Public Attributes | |
| M | m |
Static Public Attributes | |
| static constexpr int | n_vars = M::n_vars |
| static constexpr int | n_aux = aux_comps<M>() |
Detailed Description
template<class M>
struct pops::SourceFreeModel< M >
struct pops::SourceFreeModel< M >
SourceFreeModel<M>: adapter that cancels the source of M (explicit IMEX half-step).
Same flux and max_wave_speed as M, but source() always returns the zero state. Used for the EXPLICIT half-step of an IMEX scheme (transport only, -div F); the stiff source is treated implicitly by backward_euler_source. Does not expose diffusivity() so as not to break non-diffusive models. Transparent to the HLL/HLLC contract: forwards pressure and wave_speeds only if M exposes them (requires clause).
Member Typedef Documentation
◆ Aux
template<class M >
| using pops::SourceFreeModel< M >::Aux = typename M::Aux |
◆ State
template<class M >
| using pops::SourceFreeModel< M >::State = typename M::State |
Member Function Documentation
◆ conservative_vars()
template<class M >
|
inlinestatic |
◆ contact_speed()
template<class M >
|
inline |
◆ elliptic_rhs()
template<class M >
|
inline |
◆ flux()
template<class M >
|
inline |
◆ hllc_star_state()
template<class M >
|
inline |
◆ max_wave_speed()
template<class M >
|
inline |
◆ pressure()
template<class M >
|
inline |
◆ roe_dissipation()
template<class M >
|
inline |
◆ source()
template<class M >
|
inline |
◆ wave_speeds()
template<class M >
|
inline |
Member Data Documentation
◆ m
template<class M >
| M pops::SourceFreeModel< M >::m |
◆ n_aux
template<class M >
|
staticconstexpr |
◆ n_vars
template<class M >
|
staticconstexpr |
The documentation for this struct was generated from the following file:
- include/pops/numerics/spatial/primitives/state_access.hpp
Generated by