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

#include <indicatorF2D.h>

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

Public Member Functions

 IndicatorSDF2D (std::function< T(Vector< T, 2 >)> f)
 
bool operator() (bool output[], const T input[]) override
 
- Public Member Functions inherited from olb::IndicatorF2D< T >
virtual Vector< T, 2 > & getMin ()
 
virtual Vector< T, 2 > & getMax ()
 
virtual bool distance (T &distance, const Vector< T, 2 > &origin, T precision, const Vector< T, 2 > &direction)
 returns false or true and pos. distance if there was one found for an given origin and direction
 
virtual bool distance (T &distance, const Vector< T, 2 > &origin, const Vector< T, 2 > &direction, T precision, T pitch)
 
virtual bool distance (T &distance, const Vector< T, 2 > &origin, const Vector< T, 2 > &direction, int iC=-1)
 
virtual bool distance (T &distance, const Vector< T, 2 > &origin)
 
virtual bool distance (T &distance, const T input[])
 
virtual bool normal (Vector< T, 2 > &normal, const Vector< T, 2 > &origin, const Vector< T, 2 > &direction, int iC=-1)
 returns true and the normal if there was one found for an given origin and direction
 
virtual bool operator() (bool output[1], const T input[2])
 Returns true if input is inside the indicator.
 
virtual bool operator() (const T input[])
 Indicator specific function operator overload.
 
virtual T signedDistance (const Vector< T, 2 > &input)
 Returns signed distance to the nearest point on the indicator surface.
 
virtual Vector< T, 2 > surfaceNormal (const Vector< T, 2 > &pos, const T meshSize)
 Return surface normal.
 
Vector< T, 2 > surfaceNormal (const Vector< T, 2 > &pos, const T meshSize, std::function< Vector< T, 2 >(const Vector< T, 2 > &)> transformPos)
 Return surface normal after possible translation and rotation.
 
bool isInsideBox (Vector< T, 2 > point)
 Returns true if point is inside a cube with corners _myMin and _myMax
 
- 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::IndicatorF2D< T >
 IndicatorF2D ()
 
- Protected Member Functions inherited from olb::GenericF< T, S >
 GenericF (int targetDim, int sourceDim)
 
- Protected Attributes inherited from olb::IndicatorF2D< T >
Vector< T, 2 > _myMin
 
Vector< T, 2 > _myMax
 

Detailed Description

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

Definition at line 178 of file indicatorF2D.h.

Constructor & Destructor Documentation

◆ IndicatorSDF2D()

template<typename T >
olb::IndicatorSDF2D< T >::IndicatorSDF2D ( std::function< T(Vector< T, 2 >)> f)

Definition at line 493 of file indicatorF2D.hh.

494 : _f(f)
495{}

Member Function Documentation

◆ operator()()

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

Definition at line 498 of file indicatorF2D.hh.

499{
500 output[0] = _f(input) <= 0.0;
501 return true;
502}

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