35namespace shammodels::gsph {
64 Tscal vol_a, Tscal vol_b, Tscal h_a, Tscal h_b, Tscal rab_inv) {
66 const Tscal C = (vol_a - vol_b) * rab_inv;
67 const Tscal D = Tscal{0.5} * (vol_a + vol_b);
68 const Tscal h2 = Tscal{0.5} * (h_a * h_a + h_b * h_b);
70 const Tscal V2 = Tscal{0.25} * h2 * C * C + D * D;
T inv_sat_zero(T v, T satval=T{0.}) noexcept
inverse saturated (zero version)
EffectiveFace< Tscal > 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.
Result of the effective face interpolation.
Tscal V2
Effective squared volume element for the pair.
Tscal s_ast
Effective face location (signed distance from particle a).