OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::IndicatorSDF3D< T > Class Template Reference

#include <indicatorF3D.h>

+ Inheritance diagram for olb::IndicatorSDF3D< T >:
+ Collaboration diagram for olb::IndicatorSDF3D< T >:

Public Member Functions

 IndicatorSDF3D (std::function< T(Vector< T, 3 >)> f)
 
bool operator() (bool output[], const T input[]) override
 
- Public Member Functions inherited from olb::IndicatorF3D< T >
virtual Vector< T, 3 > & getMin ()
 
virtual Vector< T, 3 > & getMax ()
 
virtual bool distance (T &distance, const Vector< T, 3 > &origin, T precision, const Vector< T, 3 > &direction)
 
virtual bool distance (T &distance, const Vector< T, 3 > &origin, const Vector< T, 3 > &direction, T precision, T pitch)
 
virtual bool distance (T &distance, const Vector< T, 3 > &origin, const Vector< T, 3 > &direction, int iC=-1)
 
virtual bool distance (T &distance, const Vector< T, 3 > &origin)
 
virtual bool distance (T &distance, const T input[])
 
virtual bool normal (Vector< T, 3 > &normal, const Vector< T, 3 > &origin, const Vector< T, 3 > &direction, int iC=-1)
 returns true and the normal if there was one found for an given origin and direction
 
virtual bool rotOnAxis (Vector< T, 3 > &vec_rot, const Vector< T, 3 > &vec, const Vector< T, 3 > &axis, T &theta)
 Rotate vector around axis by angle theta.
 
virtual bool operator() (bool output[1], const T input[3])
 Returns true if input is inside the indicator.
 
virtual T signedDistance (const Vector< T, 3 > &input)
 Returns signed distance to the nearest point on the indicator surface.
 
virtual Vector< T, 3 > surfaceNormal (const Vector< T, 3 > &pos, const T meshSize)
 Return surface normal.
 
Vector< T, 3 > surfaceNormal (const Vector< T, 3 > &pos, const T meshSize, std::function< Vector< T, 3 >(const Vector< T, 3 > &)> transformPos)
 Return surface normal after possible translation and rotation.
 
bool isInsideBox (Vector< T, 3 > point)
 Returns true if point is inside a cube with corners _myMin and _myMax
 
virtual Vector< T, 3 > getSample (const std::function< T()> &randomness) const
 
- Public Member Functions inherited from olb::GenericF< T, S >
virtual ~GenericF ()=default
 
int getSourceDim () const
 read only access to member variable _m
 
int getTargetDim () const
 read only access to member variable _n
 
std::string & getName ()
 read and write access to name
 
std::string const & getName () const
 read only access to name
 
virtual bool operator() (T output[], const S input[])=0
 has to be implemented for 'every' derived class
 
bool operator() (T output[])
 wrapper that call the pure virtual operator() (T output[], const S input[]) from above
 
bool operator() (T output[], S input0)
 
bool operator() (T output[], S input0, S input1)
 
bool operator() (T output[], S input0, S input1, S input2)
 
bool operator() (T output[], S input0, S input1, S input2, S input3)
 

Additional Inherited Members

- Public Types inherited from olb::GenericF< T, S >
using targetType = T
 
using sourceType = S
 
- Public Attributes inherited from olb::GenericF< T, S >
std::shared_ptr< GenericF< T, S > > _ptrCalcC
 memory management, frees resouces (calcClass)
 
- Protected Member Functions inherited from olb::IndicatorF3D< T >
 IndicatorF3D ()
 
- Protected Member Functions inherited from olb::GenericF< T, S >
 GenericF (int targetDim, int sourceDim)
 
- Protected Attributes inherited from olb::IndicatorF3D< T >
Vector< T, 3 > _myMin
 
Vector< T, 3 > _myMax
 

Detailed Description

template<typename T>
class olb::IndicatorSDF3D< T >

Definition at line 290 of file indicatorF3D.h.

Constructor & Destructor Documentation

◆ IndicatorSDF3D()

template<typename T >
olb::IndicatorSDF3D< T >::IndicatorSDF3D ( std::function< T(Vector< T, 3 >)> f)

Definition at line 996 of file indicatorF3D.hh.

997 : _f(f)
998{}

Member Function Documentation

◆ operator()()

template<typename T >
bool olb::IndicatorSDF3D< T >::operator() ( bool output[],
const T input[] )
override

Definition at line 1001 of file indicatorF3D.hh.

1002{
1003 output[0] = _f(input) <= 0.0;
1004 return true;
1005}

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