AutoPas  3.0.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
sphLib::SPHKernels Class Reference

class to define a kernel function for SPH simulations More...

#include <SPHKernels.h>

Static Public Member Functions

static double getKernelSupportRadius ()
 Get the kernelSupportRadius.
 
static double W (const std::array< double, 3 > &dr, const double h)
 A kernel function for SPH simulations.
 
static double W (const double dr2, const double h)
 A kernel function for sph simulations.
 
static unsigned long getFlopsW ()
 returns the flops for one full calculation of the kernel
 
static std::array< double, 3 > gradW (const std::array< double, 3 > &dr, const double h)
 gradient of the kernel function W
 

Detailed Description

class to define a kernel function for SPH simulations

Member Function Documentation

◆ getFlopsW()

unsigned long sphLib::SPHKernels::getFlopsW ( )
static

returns the flops for one full calculation of the kernel

Returns
flops for one full calculation of the kernel

◆ getKernelSupportRadius()

static double sphLib::SPHKernels::getKernelSupportRadius ( )
inlinestatic

Get the kernelSupportRadius.

Returns
the kernel support radius

◆ gradW()

static std::array< double, 3 > sphLib::SPHKernels::gradW ( const std::array< double, 3 > &  dr,
const double  h 
)
inlinestatic

gradient of the kernel function W

Parameters
drdistance vector
hkernel support radius
Returns
gradient of W evaluated at dr and h

◆ W() [1/2]

static double sphLib::SPHKernels::W ( const double  dr2,
const double  h 
)
inlinestatic

A kernel function for sph simulations.

Parameters
dr2squared absolute distance
hrelative kernel support radius
Returns
value of the kernel function

◆ W() [2/2]

static double sphLib::SPHKernels::W ( const std::array< double, 3 > &  dr,
const double  h 
)
inlinestatic

A kernel function for SPH simulations.

Parameters
drdistance vector
hrelative kernel support radius
Returns
value of the kernel function

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