![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Effective face (volume element) interpolation for the Inutsuka (2002) GSPH formulation. More...
#include "shambackends/math.hpp"Go to the source code of this file.
Classes | |
| struct | shammodels::gsph::EffectiveFace< Tscal > |
| Result of the effective face interpolation. More... | |
Namespaces | |
| namespace | shammodels |
| namespace for models | |
Functions | |
| template<class Tscal> | |
| EffectiveFace< Tscal > | shammodels::gsph::lin_v2_sast_ij (Tscal vol_a, Tscal vol_b, Tscal h_a, Tscal h_b, Tscal rab_inv) |
| Linear (1st order) interpolation of the effective face between a pair. | |
Effective face (volume element) interpolation for the Inutsuka (2002) GSPH formulation.
Inutsuka's GSPH momentum equation replaces the standard SPH kernel-gradient/rho^2 weighting by an effective face between each particle pair, described by an effective squared volume element V2_ij and an effective face location s*. These quantities are obtained by interpolating each particle's specific volume (1/rho for equal-mass particles) along the line joining the pair.
This file implements the linear (1st order) interpolation, which only needs the volume at each particle (no gradients).
Reference:
Definition in file reconstruction.hpp.
|
inline |
Linear (1st order) interpolation of the effective face between a pair.
Reconstructs the volume function V(s) linearly between the two particles using only their volume elements (no gradients needed), following Inutsuka (2002).
| Tscal | Scalar type |
| vol_a | Specific volume of particle a (1/rho_a for equal-mass particles) |
| vol_b | Specific volume of particle b (1/rho_b for equal-mass particles) |
| h_a | Smoothing length of particle a |
| h_b | Smoothing length of particle b |
| rab_inv | Inverse of the pair separation (1/|r_a - r_b|) |
Definition at line 63 of file reconstruction.hpp.