ViennaLS
Loading...
Searching...
No Matches
viennals::SphereDistribution< T, D > Class Template Reference

Concrete implementation of GeometricAdvectDistribution for a spherical advection distribution. More...

#include <lsGeometricAdvectDistributions.hpp>

Inheritance diagram for viennals::SphereDistribution< T, D >:
viennals::GeometricAdvectDistribution< T, D >

Public Member Functions

 SphereDistribution (const T passedRadius, const T delta)
 
bool isInside (const Vec3D< hrleCoordType > &initial, const Vec3D< hrleCoordType > &candidate, double eps=0.) const override
 Quick check whether a point relative to the distributions center is inside the distribution. If there is no quick check due to the complexity of the distribution, always return true or do not overload this function.
 
T getSignedDistance (const Vec3D< hrleCoordType > &initial, const Vec3D< hrleCoordType > &candidate, unsigned long) const override
 Returns the signed distance of a point relative to the distributions center. This is the signed manhatten distance to the nearest surface point.
 
std::array< hrleCoordType, 6 > getBounds () const override
 Sets bounds to the bounding box of the distribution.
 

Public Attributes

const T radius = 0.
 
const T radius2
 
const T gridDelta
 

Detailed Description

template<class T, int D>
class viennals::SphereDistribution< T, D >

Concrete implementation of GeometricAdvectDistribution for a spherical advection distribution.

Constructor & Destructor Documentation

◆ SphereDistribution()

template<class T , int D>
viennals::SphereDistribution< T, D >::SphereDistribution ( const T passedRadius,
const T delta )
inline

Member Function Documentation

◆ getBounds()

template<class T , int D>
std::array< hrleCoordType, 6 > viennals::SphereDistribution< T, D >::getBounds ( ) const
inlineoverridevirtual

Sets bounds to the bounding box of the distribution.

Implements viennals::GeometricAdvectDistribution< T, D >.

◆ getSignedDistance()

template<class T , int D>
T viennals::SphereDistribution< T, D >::getSignedDistance ( const Vec3D< hrleCoordType > & initial,
const Vec3D< hrleCoordType > & candidate,
unsigned long initialPointId ) const
inlineoverridevirtual

Returns the signed distance of a point relative to the distributions center. This is the signed manhatten distance to the nearest surface point.

Implements viennals::GeometricAdvectDistribution< T, D >.

◆ isInside()

template<class T , int D>
bool viennals::SphereDistribution< T, D >::isInside ( const Vec3D< hrleCoordType > & initial,
const Vec3D< hrleCoordType > & candidate,
double eps = 0. ) const
inlineoverridevirtual

Quick check whether a point relative to the distributions center is inside the distribution. If there is no quick check due to the complexity of the distribution, always return true or do not overload this function.

Reimplemented from viennals::GeometricAdvectDistribution< T, D >.

Member Data Documentation

◆ gridDelta

template<class T , int D>
const T viennals::SphereDistribution< T, D >::gridDelta

◆ radius

template<class T , int D>
const T viennals::SphereDistribution< T, D >::radius = 0.

◆ radius2

template<class T , int D>
const T viennals::SphereDistribution< T, D >::radius2

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