SPH
Classes | Functions
GravityKernel.h File Reference

Smoothing kernels for including gravity into SPH. More...

#include "common/Traits.h"
#include "math/Functional.h"
#include "objects/wrappers/Lut.h"
#include "sph/kernel/Kernel.h"

Go to the source code of this file.

Classes

struct  GravityKernelTag
 
class  GravityLutKernel
 Gravitational kernel approximated by LUT for close particles. More...
 
class  GravityKernel< CubicSpline< 3 > >
 
class  GravityKernel< ThomasCouchmanKernel< 3 > >
 ThomasCouchmanKernel differs from CubicSpline only in the gradient, so the GravityKernel is the same. More...
 
class  SolidSphereKernel
 Gravity kernel of a solid sphere. More...
 
struct  IsGravityKernel< T, typename >
 
struct  IsGravityKernel< GravityKernel< T > >
 
struct  IsGravityKernel< T, std::enable_if_t< std::is_base_of< GravityKernelTag, std::decay_t< T > >::value > >
 

Functions

template<typename TKernel , typename = std::enable_if_t<IsKernel<TKernel>::value && !IsGravityKernel<TKernel>::value>>
auto getAssociatedGravityKernel (const TKernel &W, const Size resolution=40000)
 Computes the gravitational softening kernel from the associated SPH kernel by integrating the Poisson equation. More...
 

Detailed Description

Smoothing kernels for including gravity into SPH.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz))
Date
2016-2021

Definition in file GravityKernel.h.

Function Documentation

◆ getAssociatedGravityKernel()

template<typename TKernel , typename = std::enable_if_t<IsKernel<TKernel>::value && !IsGravityKernel<TKernel>::value>>
auto getAssociatedGravityKernel ( const TKernel &  W,
const Size  resolution = 40000 
)

Computes the gravitational softening kernel from the associated SPH kernel by integrating the Poisson equation.

Definition at line 142 of file GravityKernel.h.