SPH
Public Member Functions | List of all members
ThomasCouchmanKernel< D > Class Template Reference

Kernel introduced by Thomas & Couchman (1992). More...

#include <Kernel.h>

Inheritance diagram for ThomasCouchmanKernel< D >:
Kernel< ThomasCouchmanKernel< D >, D > Noncopyable

Public Member Functions

INLINE Float radius () const
 
INLINE Float valueImpl (const Float qSqr) const
 
INLINE Float gradImpl (const Float qSqr) const
 
- Public Member Functions inherited from Kernel< ThomasCouchmanKernel< D >, D >
 Kernel ()=default
 
INLINE Float value (const Vector &r, const Float h) const noexcept
 
INLINE Vector grad (const Vector &r, const Float h) const noexcept
 
- Public Member Functions inherited from Noncopyable
 Noncopyable ()=default
 
 Noncopyable (const Noncopyable &)=delete
 
 Noncopyable (Noncopyable &&)=default
 
Noncopyableoperator= (const Noncopyable &)=delete
 
Noncopyableoperator= (Noncopyable &&)=default
 

Detailed Description

template<Size D>
class ThomasCouchmanKernel< D >

Kernel introduced by Thomas & Couchman (1992).

The kernel values are the same as for cubic spline, but the gradient is modified, adding a small repulsive force. This attempts to prevent particle clustering.

Definition at line 286 of file Kernel.h.

Member Function Documentation

◆ gradImpl()

template<Size D>
INLINE Float ThomasCouchmanKernel< D >::gradImpl ( const Float  qSqr) const
inline

Definition at line 301 of file Kernel.h.

◆ radius()

template<Size D>
INLINE Float ThomasCouchmanKernel< D >::radius ( ) const
inline

Definition at line 293 of file Kernel.h.

◆ valueImpl()

template<Size D>
INLINE Float ThomasCouchmanKernel< D >::valueImpl ( const Float  qSqr) const
inline

Definition at line 297 of file Kernel.h.


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