Jet  v1.3.3
Public Member Functions | Public Attributes | List of all members
jet::SphStdKernel3 Struct Reference

Standard 3-D SPH kernel function object. More...

#include <jet/sph_kernels3.h>

Public Member Functions

 SphStdKernel3 ()
 Constructs a kernel object with zero radius. More...
 
 SphStdKernel3 (double kernelRadius)
 Constructs a kernel object with given radius. More...
 
 SphStdKernel3 (const SphStdKernel3 &other)
 Copy constructor. More...
 
double operator() (double distance) const
 Returns kernel function value at given distance. More...
 
double firstDerivative (double distance) const
 Returns the first derivative at given distance. More...
 
Vector3D gradient (const Vector3D &point) const
 Returns the gradient at a point. More...
 
Vector3D gradient (double distance, const Vector3D &direction) const
 Returns the gradient at a point defined by distance and direction. More...
 
double secondDerivative (double distance) const
 Returns the second derivative at given distance. More...
 

Public Attributes

double h
 Kernel radius. More...
 
double h2
 Square of the kernel radius. More...
 
double h3
 Cubic of the kernel radius. More...
 
double h5
 Fifth-power of the kernel radius. More...
 

Detailed Description

Standard 3-D SPH kernel function object.

See also
Müller, Matthias, David Charypar, and Markus Gross. "Particle-based fluid simulation for interactive applications." Proceedings of the 2003 ACM SIGGRAPH/Eurographics symposium on Computer animation. Eurographics Association, 2003.

Constructor & Destructor Documentation

◆ SphStdKernel3() [1/3]

jet::SphStdKernel3::SphStdKernel3 ( )

Constructs a kernel object with zero radius.

◆ SphStdKernel3() [2/3]

jet::SphStdKernel3::SphStdKernel3 ( double  kernelRadius)
explicit

Constructs a kernel object with given radius.

◆ SphStdKernel3() [3/3]

jet::SphStdKernel3::SphStdKernel3 ( const SphStdKernel3 other)

Copy constructor.

Member Function Documentation

◆ firstDerivative()

double jet::SphStdKernel3::firstDerivative ( double  distance) const

Returns the first derivative at given distance.

◆ gradient() [1/2]

Vector3D jet::SphStdKernel3::gradient ( const Vector3D point) const

Returns the gradient at a point.

◆ gradient() [2/2]

Vector3D jet::SphStdKernel3::gradient ( double  distance,
const Vector3D direction 
) const

Returns the gradient at a point defined by distance and direction.

◆ operator()()

double jet::SphStdKernel3::operator() ( double  distance) const

Returns kernel function value at given distance.

◆ secondDerivative()

double jet::SphStdKernel3::secondDerivative ( double  distance) const

Returns the second derivative at given distance.

Member Data Documentation

◆ h

double jet::SphStdKernel3::h

Kernel radius.

◆ h2

double jet::SphStdKernel3::h2

Square of the kernel radius.

◆ h3

double jet::SphStdKernel3::h3

Cubic of the kernel radius.

◆ h5

double jet::SphStdKernel3::h5

Fifth-power of the kernel radius.


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