SPH
Public Member Functions | List of all members
GravityLutKernel Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GravityLutKernel() [1/2]

GravityLutKernel::GravityLutKernel ( )
default

◆ GravityLutKernel() [2/2]

template<typename TKernel >
GravityLutKernel::GravityLutKernel ( TKernel &&  source)
inline

Definition at line 44 of file GravityKernel.h.

Member Function Documentation

◆ grad()

INLINE Vector GravityLutKernel::grad ( const Vector r,
const Float  h 
) const
inline

Definition at line 69 of file GravityKernel.h.

◆ radius()

INLINE Float GravityLutKernel::radius ( ) const
inline

Definition at line 51 of file GravityKernel.h.

◆ value()

INLINE Float GravityLutKernel::value ( const Vector r,
const Float  h 
) const
inline

Definition at line 55 of file GravityKernel.h.


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