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

Public Types

using Tscal = shambase::VecComponent<Tvec>
using Kernel = SPHKernel<Tscal>

Public Member Functions

void operator() (unsigned int id_a, const Tvec *__restrict xyz, const Tscal *__restrict hpart, const Tscal *__restrict omega, const Tscal *__restrict pressure, shamrock::tree::ObjectCache::ptrs_read ploop_ptrs, Tvec *__restrict grad_P_on_rho) const

Public Attributes

Tscal pmass

Static Public Attributes

static constexpr Tscal hfactd = Kernel::hfactd
static constexpr Tscal Rkern = Kernel::Rkern
static constexpr Tscal Rker2 = Rkern * Rkern

Detailed Description

template<class Tvec, template< class > class SPHKernel>
struct KernelComputePressureGrad< Tvec, SPHKernel >

Definition at line 26 of file NodeComputePressureGrad.cpp.

Member Typedef Documentation

◆ Kernel

template<class Tvec, template< class > class SPHKernel>
using KernelComputePressureGrad< Tvec, SPHKernel >::Kernel = SPHKernel<Tscal>

Definition at line 28 of file NodeComputePressureGrad.cpp.

◆ Tscal

template<class Tvec, template< class > class SPHKernel>
using KernelComputePressureGrad< Tvec, SPHKernel >::Tscal = shambase::VecComponent<Tvec>

Definition at line 27 of file NodeComputePressureGrad.cpp.

Member Function Documentation

◆ operator()()

template<class Tvec, template< class > class SPHKernel>
void KernelComputePressureGrad< Tvec, SPHKernel >::operator() ( unsigned int id_a,
const Tvec *__restrict xyz,
const Tscal *__restrict hpart,
const Tscal *__restrict omega,
const Tscal *__restrict pressure,
shamrock::tree::ObjectCache::ptrs_read ploop_ptrs,
Tvec *__restrict grad_P_on_rho ) const
inline

Definition at line 35 of file NodeComputePressureGrad.cpp.

Member Data Documentation

◆ hfactd

template<class Tvec, template< class > class SPHKernel>
Tscal KernelComputePressureGrad< Tvec, SPHKernel >::hfactd = Kernel::hfactd
staticconstexpr

Definition at line 29 of file NodeComputePressureGrad.cpp.

◆ pmass

template<class Tvec, template< class > class SPHKernel>
Tscal KernelComputePressureGrad< Tvec, SPHKernel >::pmass

Definition at line 33 of file NodeComputePressureGrad.cpp.

◆ Rker2

template<class Tvec, template< class > class SPHKernel>
Tscal KernelComputePressureGrad< Tvec, SPHKernel >::Rker2 = Rkern * Rkern
staticconstexpr

Definition at line 31 of file NodeComputePressureGrad.cpp.

◆ Rkern

template<class Tvec, template< class > class SPHKernel>
Tscal KernelComputePressureGrad< Tvec, SPHKernel >::Rkern = Kernel::Rkern
staticconstexpr

Definition at line 30 of file NodeComputePressureGrad.cpp.


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