Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
shammath::SPHKernelGen< Tscal_, BaseKernel > Class Template Reference

Public Types

using Generator = BaseKernel
 
using Tscal = Tscal_
 

Static Public Member Functions

static Tscal f (Tscal q)
 the base function for this SPH kernel
 
static Tscal df (Tscal q)
 derivative of M4::f
 
static Tscal ddf (Tscal q)
 
static Tscal W_1d (Tscal r, Tscal h)
 
static Tscal W_2d (Tscal r, Tscal h)
 
static Tscal W_3d (Tscal r, Tscal h)
 compute the normed & resized version of the kernel :
 
static Tscal dW_3d (Tscal r, Tscal h)
 
static Tscal ddW_3d (Tscal r, Tscal h)
 
static Tscal dhW_3d (Tscal r, Tscal h)
 
static Tscal f3d_integ_z (Tscal x, int np=32)
 
static Tscal Y_3d (Tscal r, Tscal h, int np=32)
 
static Tscal phi_tilde_3d (Tscal q)
 
static Tscal phi_tilde_3d_prime (Tscal q)
 
static Tscal phi_3D (Tscal r, Tscal h)
 
static Tscal phi_3D_prime (Tscal r, Tscal h)
 

Static Public Attributes

static constexpr Tscal Rkern = BaseKernel::Rkern
 
static constexpr Tscal hfactd = BaseKernel::hfactd
 
static constexpr bool has_3d_phi_soft = ::shammath::has_phi_tilde_3d<BaseKernel, Tscal>::value
 
static constexpr bool has_3d_phi_soft_prime = ::shammath::has_phi_tilde_3d_prime<BaseKernel, Tscal>::value
 

Detailed Description

template<class Tscal_, class BaseKernel>
class shammath::SPHKernelGen< Tscal_, BaseKernel >

Definition at line 2286 of file sphkernels.hpp.

Member Typedef Documentation

◆ Generator

template<class Tscal_ , class BaseKernel >
using shammath::SPHKernelGen< Tscal_, BaseKernel >::Generator = BaseKernel

Definition at line 2288 of file sphkernels.hpp.

◆ Tscal

template<class Tscal_ , class BaseKernel >
using shammath::SPHKernelGen< Tscal_, BaseKernel >::Tscal = Tscal_

Definition at line 2289 of file sphkernels.hpp.

Member Function Documentation

◆ ddf()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::ddf ( Tscal  q)
inlinestatic

Definition at line 2312 of file sphkernels.hpp.

◆ ddW_3d()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::ddW_3d ( Tscal  r,
Tscal  h 
)
inlinestatic

Definition at line 2337 of file sphkernels.hpp.

◆ df()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::df ( Tscal  q)
inlinestatic

derivative of M4::f

Parameters
qparameter of the function
Returns
Tscal the value of \( f'(q) \)

Definition at line 2310 of file sphkernels.hpp.

◆ dhW_3d()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::dhW_3d ( Tscal  r,
Tscal  h 
)
inlinestatic

Definition at line 2341 of file sphkernels.hpp.

◆ dW_3d()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::dW_3d ( Tscal  r,
Tscal  h 
)
inlinestatic

Definition at line 2333 of file sphkernels.hpp.

◆ f()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::f ( Tscal  q)
inlinestatic

the base function for this SPH kernel

Such that : \(\int f(\vert\vert q\vert\vert) {\rm d}^n \mathbf{q} = 1\) Also : \( f(q > Rkern) = 0\)

Parameters
qparameter of the function
Returns
Tscal the value of \( f(q) \)

Definition at line 2302 of file sphkernels.hpp.

◆ f3d_integ_z()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::f3d_integ_z ( Tscal  x,
int  np = 32 
)
inlinestatic

Definition at line 2345 of file sphkernels.hpp.

◆ phi_3D()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::phi_3D ( Tscal  r,
Tscal  h 
)
inlinestatic

Definition at line 2377 of file sphkernels.hpp.

◆ phi_3D_prime()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::phi_3D_prime ( Tscal  r,
Tscal  h 
)
inlinestatic

Definition at line 2381 of file sphkernels.hpp.

◆ phi_tilde_3d()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::phi_tilde_3d ( Tscal  q)
inlinestatic

Definition at line 2358 of file sphkernels.hpp.

◆ phi_tilde_3d_prime()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::phi_tilde_3d_prime ( Tscal  q)
inlinestatic

Definition at line 2369 of file sphkernels.hpp.

◆ W_1d()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::W_1d ( Tscal  r,
Tscal  h 
)
inlinestatic

Definition at line 2314 of file sphkernels.hpp.

◆ W_2d()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::W_2d ( Tscal  r,
Tscal  h 
)
inlinestatic

Definition at line 2316 of file sphkernels.hpp.

◆ W_3d()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::W_3d ( Tscal  r,
Tscal  h 
)
inlinestatic

compute the normed & resized version of the kernel :

\[ W(r,h) = C_{\rm norm} \frac{1}{h^3} f(\frac{r}{h}) \]

Parameters
r
h
Returns
Tscal

Definition at line 2329 of file sphkernels.hpp.

+ Here is the call graph for this function:

◆ Y_3d()

template<class Tscal_ , class BaseKernel >
static Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::Y_3d ( Tscal  r,
Tscal  h,
int  np = 32 
)
inlinestatic

Definition at line 2351 of file sphkernels.hpp.

Member Data Documentation

◆ has_3d_phi_soft

template<class Tscal_ , class BaseKernel >
constexpr bool shammath::SPHKernelGen< Tscal_, BaseKernel >::has_3d_phi_soft = ::shammath::has_phi_tilde_3d<BaseKernel, Tscal>::value
staticconstexpr

Definition at line 2355 of file sphkernels.hpp.

◆ has_3d_phi_soft_prime

template<class Tscal_ , class BaseKernel >
constexpr bool shammath::SPHKernelGen< Tscal_, BaseKernel >::has_3d_phi_soft_prime = ::shammath::has_phi_tilde_3d_prime<BaseKernel, Tscal>::value
staticconstexpr

Definition at line 2366 of file sphkernels.hpp.

◆ hfactd

template<class Tscal_ , class BaseKernel >
constexpr Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::hfactd = BaseKernel::hfactd
inlinestaticconstexpr

default $h_{\rm fact}$ for this kernel

Definition at line 2291 of file sphkernels.hpp.

◆ Rkern

template<class Tscal_ , class BaseKernel >
constexpr Tscal shammath::SPHKernelGen< Tscal_, BaseKernel >::Rkern = BaseKernel::Rkern
inlinestaticconstexpr

Radius of the support

Definition at line 2290 of file sphkernels.hpp.


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