Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
KernelUpdateDerivsMonofluidTVA< Tvec, SPHKernel, pair_gate > Struct Template Reference

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

Detailed Description

template<class Tvec, template< class > class SPHKernel, bool pair_gate>
struct KernelUpdateDerivsMonofluidTVA< Tvec, SPHKernel, pair_gate >

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.

Member Typedef Documentation

◆ Kernel

template<class Tvec, template< class > class SPHKernel, bool pair_gate>
using KernelUpdateDerivsMonofluidTVA< Tvec, SPHKernel, pair_gate >::Kernel = SPHKernel<Tscal>

Definition at line 55 of file NodeUpdateDerivsMonofluidTVA.cpp.

◆ Tscal

template<class Tvec, template< class > class SPHKernel, bool pair_gate>
using KernelUpdateDerivsMonofluidTVA< Tvec, SPHKernel, pair_gate >::Tscal = shambase::VecComponent<Tvec>

Definition at line 54 of file NodeUpdateDerivsMonofluidTVA.cpp.

Member Function Documentation

◆ operator()()

template<class Tvec, template< class > class SPHKernel, bool pair_gate>
void KernelUpdateDerivsMonofluidTVA< Tvec, SPHKernel, pair_gate >::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
inline

Definition at line 62 of file NodeUpdateDerivsMonofluidTVA.cpp.

Member Data Documentation

◆ ndust

template<class Tvec, template< class > class SPHKernel, bool pair_gate>
u32 KernelUpdateDerivsMonofluidTVA< Tvec, SPHKernel, pair_gate >::ndust

Definition at line 60 of file NodeUpdateDerivsMonofluidTVA.cpp.

◆ pmass

template<class Tvec, template< class > class SPHKernel, bool pair_gate>
Tscal KernelUpdateDerivsMonofluidTVA< Tvec, SPHKernel, pair_gate >::pmass

Definition at line 59 of file NodeUpdateDerivsMonofluidTVA.cpp.

◆ Rker2

template<class Tvec, template< class > class SPHKernel, bool pair_gate>
Tscal KernelUpdateDerivsMonofluidTVA< Tvec, SPHKernel, pair_gate >::Rker2 = Rkern * Rkern
staticconstexpr

Definition at line 57 of file NodeUpdateDerivsMonofluidTVA.cpp.

◆ Rkern

template<class Tvec, template< class > class SPHKernel, bool pair_gate>
Tscal KernelUpdateDerivsMonofluidTVA< Tvec, SPHKernel, pair_gate >::Rkern = Kernel::Rkern
staticconstexpr

Definition at line 56 of file NodeUpdateDerivsMonofluidTVA.cpp.


The documentation for this struct was generated from the following file: