Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
shammath::details::KernelDefTGauss3< Tscal > Class Template Reference

Truncated Gaussian kernel with compact support R=3h. More...

#include <shammath/include/shammath/sphkernels.hpp>

Static Public Member Functions

static Tscal f (Tscal q)
 
static Tscal df (Tscal q)
 
static Tscal ddf (Tscal q)
 
static Tscal phi_tilde_3d (Tscal q)
 
static Tscal phi_tilde_3d_prime (Tscal q)
 

Static Public Attributes

static constexpr Tscal Rkern = 3
 Compact support radius of the kernel.
 
static constexpr Tscal hfactd = 1.5
 default hfact to be used for this kernel
 
static constexpr Tscal norm_1d = 0.564202047051383
 1D norm of the kernel
 
static constexpr Tscal norm_2d = 0.318349173592935
 2D norm of the kernel (accounts for truncation at q=3)
 
static constexpr Tscal norm_3d = 0.179666148218087
 3D norm of the kernel
 

Detailed Description

template<class Tscal>
class shammath::details::KernelDefTGauss3< Tscal >

Truncated Gaussian kernel with compact support R=3h.

W(q) = exp(-q^2) for q < 3, 0 otherwise

This kernel provides smooth derivatives and is well-suited for relativistic SPH simulations where gradient accuracy is important.

Definition at line 1473 of file sphkernels.hpp.

Member Function Documentation

◆ ddf()

template<class Tscal >
static Tscal shammath::details::KernelDefTGauss3< Tscal >::ddf ( Tscal  q)
inlinestatic

Definition at line 1501 of file sphkernels.hpp.

◆ df()

template<class Tscal >
static Tscal shammath::details::KernelDefTGauss3< Tscal >::df ( Tscal  q)
inlinestatic

Definition at line 1493 of file sphkernels.hpp.

◆ f()

template<class Tscal >
static Tscal shammath::details::KernelDefTGauss3< Tscal >::f ( Tscal  q)
inlinestatic

Definition at line 1485 of file sphkernels.hpp.

◆ phi_tilde_3d()

template<class Tscal >
static Tscal shammath::details::KernelDefTGauss3< Tscal >::phi_tilde_3d ( Tscal  q)
inlinestatic

Definition at line 1509 of file sphkernels.hpp.

◆ phi_tilde_3d_prime()

template<class Tscal >
static Tscal shammath::details::KernelDefTGauss3< Tscal >::phi_tilde_3d_prime ( Tscal  q)
inlinestatic

Definition at line 1521 of file sphkernels.hpp.

Member Data Documentation

◆ hfactd

template<class Tscal >
constexpr Tscal shammath::details::KernelDefTGauss3< Tscal >::hfactd = 1.5
inlinestaticconstexpr

default hfact to be used for this kernel

Definition at line 1476 of file sphkernels.hpp.

◆ norm_1d

template<class Tscal >
constexpr Tscal shammath::details::KernelDefTGauss3< Tscal >::norm_1d = 0.564202047051383
inlinestaticconstexpr

1D norm of the kernel

Definition at line 1479 of file sphkernels.hpp.

◆ norm_2d

template<class Tscal >
constexpr Tscal shammath::details::KernelDefTGauss3< Tscal >::norm_2d = 0.318349173592935
inlinestaticconstexpr

2D norm of the kernel (accounts for truncation at q=3)

Definition at line 1481 of file sphkernels.hpp.

◆ norm_3d

template<class Tscal >
constexpr Tscal shammath::details::KernelDefTGauss3< Tscal >::norm_3d = 0.179666148218087
inlinestaticconstexpr

3D norm of the kernel

Definition at line 1483 of file sphkernels.hpp.

◆ Rkern

template<class Tscal >
constexpr Tscal shammath::details::KernelDefTGauss3< Tscal >::Rkern = 3
inlinestaticconstexpr

Compact support radius of the kernel.

Definition at line 1475 of file sphkernels.hpp.


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