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

#include <smoothIndicatorBaseF2D.h>

+ Inheritance diagram for olb::SmoothIndicatorIdentity2D< T, S >:
+ Collaboration diagram for olb::SmoothIndicatorIdentity2D< T, S >:

Public Member Functions

 SmoothIndicatorIdentity2D (SmoothIndicatorF2D< T, S, false > &f)
 
bool operator() (T output[], const S input[]) override
 has to be implemented for 'every' derived class
 
- Public Member Functions inherited from olb::SmoothIndicatorF2D< T, S, false >
void init ()
 
const Vector< S, 2 > & getMin () const
 
const Vector< S, 2 > & getMax () const
 
const Vector< S, 2 > & getPos () const
 
const Vector< S, 4 > & getRotationMatrix () const
 
const S & getCircumRadius () const
 
const S & getTheta () const
 
const S & getEpsilon () const
 
std::string name ()
 
void setPos (Vector< S, 2 > pos)
 
void setTheta (S theta)
 
void setEpsilon (S epsilon)
 
virtual S getArea ()
 
virtual Vector< S, 2 > calcMofiAndMass (S density)
 
virtual Vector< S, 2 > surfaceNormal (const Vector< S, 2 > &pos, const S meshSize)
 
virtual Vector< S, 2 > surfaceNormal (const Vector< S, 2 > &pos, const S meshSize, std::function< Vector< S, 2 >(const Vector< S, 2 > &)> transformPos)
 
virtual const S signedDistance (const PhysR< T, 2 > input)
 
virtual bool distance (S &distance, const Vector< S, 2 > &origin, const Vector< S, 2 > &direction, S precision, S pitch)
 
bool isInsideCircumRadius (const PhysR< S, 2 > &input)
 
SmoothIndicatorF2D< T, S, false > & operator+ (SmoothIndicatorF2D< T, S, false > &rhs)
 
- Public Member Functions inherited from olb::AnalyticalF< D, T, S >
AnalyticalF< D, T, S > & operator- (AnalyticalF< D, T, S > &rhs)
 
AnalyticalF< D, T, S > & operator+ (AnalyticalF< D, T, S > &rhs)
 
AnalyticalF< D, T, S > & operator* (AnalyticalF< D, T, S > &rhs)
 
AnalyticalF< D, T, S > & operator/ (AnalyticalF< D, T, S > &rhs)
 
- 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
 
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)
 

Protected Attributes

SmoothIndicatorF2D< T, S, false > & _f
 
- Protected Attributes inherited from olb::SmoothIndicatorF2D< T, S, false >
Vector< S, 2 > _myMin
 
Vector< S, 2 > _myMax
 
Vector< S, 2 > _pos
 
Vector< S, 4 > _rotMat
 
_circumRadius
 
_theta
 
_epsilon
 
std::string _name = "smoothIndicator2D"
 

Additional Inherited Members

- Public Types inherited from olb::AnalyticalF< D, T, S >
using identity_functor_type = AnalyticalIdentity<D,T,S>
 
- 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)
 
- Static Public Attributes inherited from olb::AnalyticalF< D, T, S >
static constexpr unsigned dim = D
 
- Protected Member Functions inherited from olb::SmoothIndicatorF2D< T, S, false >
 SmoothIndicatorF2D ()
 
- Protected Member Functions inherited from olb::AnalyticalF< D, T, S >
 AnalyticalF (int n)
 
- Protected Member Functions inherited from olb::GenericF< T, S >
 GenericF (int targetDim, int sourceDim)
 

Detailed Description

template<typename T, typename S>
class olb::SmoothIndicatorIdentity2D< T, S >

Definition at line 85 of file smoothIndicatorBaseF2D.h.

Constructor & Destructor Documentation

◆ SmoothIndicatorIdentity2D()

template<typename T , typename S >
olb::SmoothIndicatorIdentity2D< T, S >::SmoothIndicatorIdentity2D ( SmoothIndicatorF2D< T, S, false > & f)

Definition at line 217 of file smoothIndicatorBaseF2D.hh.

218 : _f(f)
219{
220 this->_myMin = _f.getMin();
221 this->_myMax = _f.getMax();
222 std::swap( _f._ptrCalcC, this->_ptrCalcC );
223}
std::shared_ptr< GenericF< T, S > > _ptrCalcC
memory management, frees resouces (calcClass)
Definition genericF.h:71
SmoothIndicatorF2D< T, S, false > & _f

References olb::SmoothIndicatorIdentity2D< T, S >::_f, olb::SmoothIndicatorF2D< T, S, false >::_myMax, olb::SmoothIndicatorF2D< T, S, false >::_myMin, olb::GenericF< T, S >::_ptrCalcC, olb::SmoothIndicatorF2D< T, S, false >::getMax(), and olb::SmoothIndicatorF2D< T, S, false >::getMin().

+ Here is the call graph for this function:

Member Function Documentation

◆ operator()()

template<typename T , typename S >
bool olb::SmoothIndicatorIdentity2D< T, S >::operator() ( T output[],
const S input[] )
overridevirtual

has to be implemented for 'every' derived class

Reimplemented from olb::SmoothIndicatorF2D< T, S, false >.

Definition at line 226 of file smoothIndicatorBaseF2D.hh.

227{
228 _f(output, input);
229 return true;
230}

Member Data Documentation

◆ _f

template<typename T , typename S >
SmoothIndicatorF2D<T,S,false>& olb::SmoothIndicatorIdentity2D< T, S >::_f
protected

Definition at line 87 of file smoothIndicatorBaseF2D.h.


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