![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Configuration for reconstruction methods in GSPH. More...
Classes | |
| struct | MUSCL |
| MUSCL reconstruction (2nd order) More... | |
| struct | PiecewiseConstant |
| Piecewise constant (1st order) More... | |
Public Types | |
| enum class | Limiter { VanLeer , Minmod , Superbee , MC } |
| Slope limiter types for MUSCL reconstruction. More... | |
| using | Tscal = shambase::VecComponent< Tvec > |
| using | Variant = std::variant< PiecewiseConstant, MUSCL > |
Public Member Functions | |
| void | set (Variant v) |
| void | set_piecewise_constant () |
| void | set_muscl (Limiter limiter=Limiter::VanLeer) |
| bool | is_piecewise_constant () const |
| bool | is_muscl () const |
| bool | requires_gradients () const |
| void | print_status () const |
Public Attributes | |
| Variant | config = PiecewiseConstant{} |
Static Public Attributes | |
| static constexpr u32 | dim = shambase::VectorProperties<Tvec>::dimension |
Configuration for reconstruction methods in GSPH.
This struct contains the configuration for different reconstruction types:
| Tvec | type of the vector of coordinates |
Definition at line 47 of file ReconstructConfig.hpp.
| using shammodels::gsph::ReconstructConfig< Tvec >::Tscal = shambase::VecComponent<Tvec> |
Definition at line 49 of file ReconstructConfig.hpp.
| using shammodels::gsph::ReconstructConfig< Tvec >::Variant = std::variant<PiecewiseConstant, MUSCL> |
Definition at line 81 of file ReconstructConfig.hpp.
|
strong |
Slope limiter types for MUSCL reconstruction.
| Enumerator | |
|---|---|
| VanLeer | van Leer limiter (smooth) |
| Minmod | Minmod limiter (most diffusive) |
| Superbee | Superbee limiter (least diffusive) |
| MC | Monotonized Central limiter. |
Definition at line 55 of file ReconstructConfig.hpp.
|
inline |
Definition at line 95 of file ReconstructConfig.hpp.
|
inline |
Definition at line 91 of file ReconstructConfig.hpp.
|
inline |
Definition at line 99 of file ReconstructConfig.hpp.
|
inline |
Definition at line 97 of file ReconstructConfig.hpp.
|
inline |
Definition at line 85 of file ReconstructConfig.hpp.
|
inline |
Definition at line 89 of file ReconstructConfig.hpp.
|
inline |
Definition at line 87 of file ReconstructConfig.hpp.
| Variant shammodels::gsph::ReconstructConfig< Tvec >::config = PiecewiseConstant{} |
Definition at line 83 of file ReconstructConfig.hpp.
|
staticconstexpr |
Definition at line 50 of file ReconstructConfig.hpp.