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

#include <indicatorBaseF2D.h>

+ Inheritance diagram for olb::IndicatorIdentity2D< S >:
+ Collaboration diagram for olb::IndicatorIdentity2D< S >:

Public Member Functions

 IndicatorIdentity2D (std::shared_ptr< IndicatorF2D< S > > f)
 
bool operator() (bool output[1], const S input[2])
 Returns true if input is inside the indicator.
 
- Public Member Functions inherited from olb::IndicatorF2D< S >
virtual Vector< S, 2 > & getMin ()
 
virtual Vector< S, 2 > & getMax ()
 
virtual bool distance (S &distance, const Vector< S, 2 > &origin, S precision, const Vector< S, 2 > &direction)
 returns false or true and pos. distance if there was one found for an given origin and direction
 
virtual bool distance (S &distance, const Vector< S, 2 > &origin, const Vector< S, 2 > &direction, S precision, S pitch)
 
virtual bool distance (S &distance, const Vector< S, 2 > &origin, const Vector< S, 2 > &direction, int iC=-1)
 
virtual bool distance (S &distance, const Vector< S, 2 > &origin)
 
virtual bool distance (S &distance, const S input[])
 
virtual bool normal (Vector< S, 2 > &normal, const Vector< S, 2 > &origin, const Vector< S, 2 > &direction, int iC=-1)
 returns true and the normal if there was one found for an given origin and direction
 
virtual S signedDistance (const Vector< S, 2 > &input)
 Returns signed distance to the nearest point on the indicator surface.
 
virtual Vector< S, 2 > surfaceNormal (const Vector< S, 2 > &pos, const S meshSize)
 Return surface normal.
 
Vector< S, 2 > surfaceNormal (const Vector< S, 2 > &pos, const S meshSize, std::function< Vector< S, 2 >(const Vector< S, 2 > &)> transformPos)
 Return surface normal after possible translation and rotation.
 
bool isInsideBox (Vector< S, 2 > point)
 Returns true if point is inside a cube with corners _myMin and _myMax
 
virtual bool operator() (const S input[])
 Indicator specific function operator overload.
 
- Public Member Functions inherited from olb::GenericF< bool, 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() (bool output[], const S input[])=0
 has to be implemented for 'every' derived class
 
bool operator() (bool output[])
 wrapper that call the pure virtual operator() (T output[], const S input[]) from above
 
bool operator() (bool output[], S input0)
 
bool operator() (bool output[], S input0, S input1)
 
bool operator() (bool output[], S input0, S input1, S input2)
 
bool operator() (bool output[], S input0, S input1, S input2, S input3)
 

Public Attributes

std::shared_ptr< IndicatorF2D< S > > _f
 
- Public Attributes inherited from olb::GenericF< bool, S >
std::shared_ptr< GenericF< bool, S > > _ptrCalcC
 memory management, frees resouces (calcClass)
 

Additional Inherited Members

- Public Types inherited from olb::GenericF< bool, S >
using targetType
 
using sourceType
 
- Protected Member Functions inherited from olb::IndicatorF2D< S >
 IndicatorF2D ()
 
- Protected Member Functions inherited from olb::GenericF< bool, S >
 GenericF (int targetDim, int sourceDim)
 
- Protected Attributes inherited from olb::IndicatorF2D< S >
Vector< S, 2 > _myMin
 
Vector< S, 2 > _myMax
 

Detailed Description

template<typename S>
class olb::IndicatorIdentity2D< S >

Definition at line 117 of file indicatorBaseF2D.h.

Constructor & Destructor Documentation

◆ IndicatorIdentity2D()

template<typename S >
olb::IndicatorIdentity2D< S >::IndicatorIdentity2D ( std::shared_ptr< IndicatorF2D< S > > f)

Definition at line 207 of file indicatorBaseF2D.hh.

208 : _f(f)
209{
210 this->_myMin = _f->getMin();
211 this->_myMax = _f->getMax();
212}
Vector< S, 2 > _myMin
Vector< S, 2 > _myMax
std::shared_ptr< IndicatorF2D< S > > _f

References olb::IndicatorIdentity2D< S >::_f, olb::IndicatorF2D< S >::_myMax, and olb::IndicatorF2D< S >::_myMin.

Member Function Documentation

◆ operator()()

template<typename S >
bool olb::IndicatorIdentity2D< S >::operator() ( bool output[1],
const S input[2] )
virtual

Returns true if input is inside the indicator.

Reimplemented from olb::IndicatorF2D< S >.

Definition at line 247 of file indicatorBaseF2D.hh.

248{
249 return (_f)->operator()(output, input);
250}

Member Data Documentation

◆ _f

template<typename S >
std::shared_ptr<IndicatorF2D<S> > olb::IndicatorIdentity2D< S >::_f

Definition at line 119 of file indicatorBaseF2D.h.


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