![]() |
Shamrock 2025.10.0
Astrophysical Code
|
GSPH derivative update module. More...
#include <shammodels/gsph/include/shammodels/gsph/modules/UpdateDerivs.hpp>
Collaboration diagram for shammodels::gsph::modules::UpdateDerivs< Tvec, SPHKernel >:Public Types | |
| using | Tscal = shambase::VecComponent< Tvec > |
| using | Kernel = SPHKernel< Tscal > |
| using | Config = SolverConfig< Tvec, SPHKernel > |
| using | Storage = SolverStorage< Tvec, u32 > |
Public Member Functions | |
| UpdateDerivs (ShamrockCtx &context, Config &solver_config, Storage &storage) | |
| void | update_derivs () |
| Update all derivatives using GSPH Riemann solver approach. | |
Public Attributes | |
| ShamrockCtx & | context |
| Config & | solver_config |
| Storage & | storage |
Static Public Attributes | |
| static constexpr u32 | dim = shambase::VectorProperties<Tvec>::dimension |
GSPH derivative update module.
Computes the acceleration (dv/dt) and energy rate (du/dt) for all particles using the GSPH formulation. For each particle pair:
| Tvec | Vector type (e.g., f64_3) |
| SPHKernel | Kernel type (e.g., M4, M6, C2, C4, C6 for Wendland) |
Definition at line 52 of file UpdateDerivs.hpp.
| using shammodels::gsph::modules::UpdateDerivs< Tvec, SPHKernel >::Config = SolverConfig<Tvec, SPHKernel> |
Definition at line 58 of file UpdateDerivs.hpp.
| using shammodels::gsph::modules::UpdateDerivs< Tvec, SPHKernel >::Kernel = SPHKernel<Tscal> |
Definition at line 56 of file UpdateDerivs.hpp.
| using shammodels::gsph::modules::UpdateDerivs< Tvec, SPHKernel >::Storage = SolverStorage<Tvec, u32> |
Definition at line 59 of file UpdateDerivs.hpp.
| using shammodels::gsph::modules::UpdateDerivs< Tvec, SPHKernel >::Tscal = shambase::VecComponent<Tvec> |
Definition at line 54 of file UpdateDerivs.hpp.
|
inline |
Definition at line 65 of file UpdateDerivs.hpp.
| void shammodels::gsph::modules::UpdateDerivs< Tvec, SPHKernel >::update_derivs | ( | ) |
Update all derivatives using GSPH Riemann solver approach.
Dispatches to the appropriate implementation based on RiemannConfig.
Definition at line 40 of file UpdateDerivs.cpp.
Here is the call graph for this function:| ShamrockCtx& shammodels::gsph::modules::UpdateDerivs< Tvec, SPHKernel >::context |
Definition at line 61 of file UpdateDerivs.hpp.
|
staticconstexpr |
Definition at line 55 of file UpdateDerivs.hpp.
| Config& shammodels::gsph::modules::UpdateDerivs< Tvec, SPHKernel >::solver_config |
Definition at line 62 of file UpdateDerivs.hpp.
| Storage& shammodels::gsph::modules::UpdateDerivs< Tvec, SPHKernel >::storage |
Definition at line 63 of file UpdateDerivs.hpp.