SPH
|
Gravitational kernel approximated by LUT for close particles. More...
#include <GravityKernel.h>
Public Member Functions | |
GravityLutKernel ()=default | |
template<typename TKernel > | |
GravityLutKernel (TKernel &&source) | |
INLINE Float | radius () const |
INLINE Float | value (const Vector &r, const Float h) const |
INLINE Vector | grad (const Vector &r, const Float h) const |
Gravitational kernel approximated by LUT for close particles.
At larger distances, we recover the standard Newtonian inverse square law. Implemented according to P. Cossins, PhD thesis, 2010 [6].
It can only be constructed from a precise gravitational kernel or using the default constructor, which corresponds to a point mass. Gravitational kernels can be created by specializing GravityKernel class template or by deriving from GravityKernelTag. This is required to avoid accidentally creating GravityLutKernel from SPH kernel.
Definition at line 35 of file GravityKernel.h.
|
default |
|
inline |
Definition at line 44 of file GravityKernel.h.
Definition at line 69 of file GravityKernel.h.
Definition at line 51 of file GravityKernel.h.
Definition at line 55 of file GravityKernel.h.