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

BlockIndicatorF2D from IndicatorF2D. More...

#include <blockIndicatorF2D.h>

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

Public Member Functions

 BlockIndicatorFfromIndicatorF2D (IndicatorF2D< T > &indicatorF, BlockGeometry< T, 2 > &blockGeometry)
 
bool operator() (bool output[], const int input[]) override
 
Vector< int, 2 > getMin () override
 Returns min lattice position of the indicated domain's bounding box.
 
Vector< int, 2 > getMax () override
 Returns max lattice position of the indicated domain's bounding box.
 
- Public Member Functions inherited from olb::BlockIndicatorF2D< T >
 BlockIndicatorF2D (BlockGeometry< T, 2 > &geometry)
 
BlockGeometry< T, 2 > & getBlockGeometry ()
 Get underlying block geometry structure.
 
bool operator() (const int input[])
 Block indicator specific function operator overload.
 
bool operator() (int iX, int iY)
 
bool operator() (LatticeR< 2 > loc)
 
void setCache (const BlockData< 2, T, bool > &cache)
 Set bool-mask cache to be used by indicator operator overloads.
 
virtual bool isEmpty ()
 Returns true only if the indicated domain subset is empty.
 
- Public Member Functions inherited from olb::BlockF2D< bool >
virtual BlockStructureD< 2 > & getBlockStructure ()
 virtual destructor for defined behaviour
 
void setBlockStructure (BlockStructureD< 2 > *blockStructure)
 
BlockF2D< bool > & operator- (BlockF2D< bool > &rhs)
 
BlockF2D< bool > & operator+ (BlockF2D< bool > &rhs)
 
BlockF2D< bool > & operator* (BlockF2D< bool > &rhs)
 
BlockF2D< bool > & operator/ (BlockF2D< bool > &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
 
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)
 

Protected Attributes

IndicatorF2D< T > & _indicatorF
 
- Protected Attributes inherited from olb::BlockIndicatorF2D< T >
BlockGeometry< T, 2 > & _blockGeometryStructure
 
const BlockData< 2, T, bool > * _cachedData
 
- Protected Attributes inherited from olb::BlockF2D< bool >
BlockStructureD< 2 > * _blockStructure
 

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::BlockF2D< bool >
 BlockF2D (BlockStructureD< 2 > &blockStructure, int targetDim)
 
 BlockF2D (int targetDim)
 
- Protected Member Functions inherited from olb::GenericF< T, S >
 GenericF (int targetDim, int sourceDim)
 

Detailed Description

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

BlockIndicatorF2D from IndicatorF2D.

Definition at line 36 of file blockIndicatorF2D.h.

Constructor & Destructor Documentation

◆ BlockIndicatorFfromIndicatorF2D()

template<typename T >
olb::BlockIndicatorFfromIndicatorF2D< T >::BlockIndicatorFfromIndicatorF2D ( IndicatorF2D< T > & indicatorF,
BlockGeometry< T, 2 > & blockGeometry )
Parameters
indicatorFIndicator to be reduced to lattice space
blockGeometryBlock geometry structure to be used for conversion between lattice and physical coordinates.

Definition at line 35 of file blockIndicatorF2D.hh.

37 : BlockIndicatorF2D<T>(blockGeometry),
38 _indicatorF(indicatorF)
39{ }

Member Function Documentation

◆ getMax()

template<typename T >
Vector< int, 2 > olb::BlockIndicatorFfromIndicatorF2D< T >::getMax ( )
overridevirtual

Returns max lattice position of the indicated domain's bounding box.

Implements olb::BlockIndicatorF2D< T >.

Definition at line 60 of file blockIndicatorF2D.hh.

61{
62 const Vector<T,2> max = _indicatorF.getMax();
63 return Vector<int,2> {
64 static_cast<int>(util::ceil(max[0])),
65 static_cast<int>(util::ceil(max[1]))
66 };
67}
virtual Vector< S, 2 > & getMax()
Pack< T > max(Pack< T > rhs, Pack< T > lhs)
Definition 256.h:416
ADf< T, DIM > ceil(const ADf< T, DIM > &a)
Definition aDiff.h:900

References olb::util::ceil().

+ Here is the call graph for this function:

◆ getMin()

template<typename T >
Vector< int, 2 > olb::BlockIndicatorFfromIndicatorF2D< T >::getMin ( )
overridevirtual

Returns min lattice position of the indicated domain's bounding box.

Implements olb::BlockIndicatorF2D< T >.

Definition at line 50 of file blockIndicatorF2D.hh.

51{
52 const Vector<T,2> min = _indicatorF.getMin();
53 return Vector<int,2> {
54 static_cast<int>(util::floor(min[0])),
55 static_cast<int>(util::floor(min[1]))
56 };
57}
virtual Vector< S, 2 > & getMin()
Pack< T > min(Pack< T > rhs, Pack< T > lhs)
Definition 256.h:406
ADf< T, DIM > floor(const ADf< T, DIM > &a)
Definition aDiff.h:869

References olb::util::floor().

+ Here is the call graph for this function:

◆ operator()()

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

Definition at line 42 of file blockIndicatorF2D.hh.

43{
44 T physR[2];
45 this->_blockGeometryStructure.getPhysR(physR,input);
46 return _indicatorF(output,physR);
47}
Vector< T, D > getPhysR(LatticeR< D > latticeR)
BlockGeometry< T, 2 > & _blockGeometryStructure

Member Data Documentation

◆ _indicatorF

template<typename T >
IndicatorF2D<T>& olb::BlockIndicatorFfromIndicatorF2D< T >::_indicatorF
protected

Definition at line 38 of file blockIndicatorF2D.h.


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