![]() |
Shamrock 2025.10.0
Astrophysical Code
|
TVA ds_j/dt kernel (eq. 51, Hutchison 2018), optionally with the pair gate. More...
Public Types | |
| using | Tscal = shambase::VecComponent<Tvec> |
| using | Kernel = SPHKernel<Tscal> |
Public Member Functions | |
| void | operator() (u32 thread_id, const Tvec *__restrict xyz, const Tscal *__restrict hpart, const Tvec *__restrict vxyz, const Tscal *__restrict omega, const Tscal *__restrict pressure, const Tscal *__restrict s_j, const Tscal *__restrict Ttilde_sj, shamrock::tree::ObjectCache::ptrs_read ploop_ptrs, Tscal *__restrict ds_j_dt) const |
Public Attributes | |
| Tscal | pmass |
| u32 | ndust |
Static Public Attributes | |
| static constexpr Tscal | Rkern = Kernel::Rkern |
| static constexpr Tscal | Rker2 = Rkern * Rkern |
TVA ds_j/dt kernel (eq. 51, Hutchison 2018), optionally with the pair gate.
With pair_gate, the flux term of the pair (a,b) is multiplied by monofluid_tva_pair_gate(s_j_a, s_j_b, g_ab), with g_ab = Tw_ab (P_a - P_b) Fbar_ab / r_ab (antisymmetric, g_ba = -g_ab bitwise). Since the dust mass flux of the pair is antisymmetric in (a,b), any weight symmetric in (a,b) keeps the dust mass conservation exact. The compression term (s_a / 2 rho_a) drho_a/dt is not a flux (it cancels in d(m s^2/rho)/dt) and is left untouched.
Definition at line 53 of file NodeUpdateDerivsMonofluidTVA.cpp.
| using KernelUpdateDerivsMonofluidTVA< Tvec, SPHKernel, pair_gate >::Kernel = SPHKernel<Tscal> |
Definition at line 55 of file NodeUpdateDerivsMonofluidTVA.cpp.
| using KernelUpdateDerivsMonofluidTVA< Tvec, SPHKernel, pair_gate >::Tscal = shambase::VecComponent<Tvec> |
Definition at line 54 of file NodeUpdateDerivsMonofluidTVA.cpp.
|
inline |
Definition at line 62 of file NodeUpdateDerivsMonofluidTVA.cpp.
| u32 KernelUpdateDerivsMonofluidTVA< Tvec, SPHKernel, pair_gate >::ndust |
Definition at line 60 of file NodeUpdateDerivsMonofluidTVA.cpp.
| Tscal KernelUpdateDerivsMonofluidTVA< Tvec, SPHKernel, pair_gate >::pmass |
Definition at line 59 of file NodeUpdateDerivsMonofluidTVA.cpp.
|
staticconstexpr |
Definition at line 57 of file NodeUpdateDerivsMonofluidTVA.cpp.
|
staticconstexpr |
Definition at line 56 of file NodeUpdateDerivsMonofluidTVA.cpp.