OpenLB 1.7
|
Block indicator functor from material numbers. More...
#include <blockIndicatorF2D.h>
Public Member Functions | |
BlockIndicatorMaterial2D (BlockGeometry< T, 2 > &blockGeometry, std::vector< int > materials) | |
BlockIndicatorMaterial2D (BlockGeometry< T, 2 > &blockGeometry, std::list< int > materials) | |
BlockIndicatorMaterial2D (BlockGeometry< T, 2 > &blockGeometry, int material) | |
bool | operator() (bool output[], const int input[]) override |
bool | isEmpty () override |
Returns true iff indicated domain subset is empty. | |
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. | |
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 | |
const std::vector< int > | _materials |
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) | |
Block indicator functor from material numbers.
Definition at line 88 of file blockIndicatorF2D.h.
olb::BlockIndicatorMaterial2D< T >::BlockIndicatorMaterial2D | ( | BlockGeometry< T, 2 > & | blockGeometry, |
std::vector< int > | materials ) |
blockGeometry | Block geometry structue to be queried |
materials | Material number vector |
Definition at line 101 of file blockIndicatorF2D.hh.
olb::BlockIndicatorMaterial2D< T >::BlockIndicatorMaterial2D | ( | BlockGeometry< T, 2 > & | blockGeometry, |
std::list< int > | materials ) |
blockGeometry | Block geometry structure to be queried |
materials | Material number list |
Definition at line 108 of file blockIndicatorF2D.hh.
olb::BlockIndicatorMaterial2D< T >::BlockIndicatorMaterial2D | ( | BlockGeometry< T, 2 > & | blockGeometry, |
int | material ) |
blockGeometry | Block geometry structure to be queried |
material | Material number |
Definition at line 115 of file blockIndicatorF2D.hh.
|
overridevirtual |
Returns max lattice position of the indicated domain's bounding box.
Implements olb::BlockIndicatorF2D< T >.
Definition at line 171 of file blockIndicatorF2D.hh.
|
overridevirtual |
Returns min lattice position of the indicated domain's bounding box.
Implements olb::BlockIndicatorF2D< T >.
Definition at line 148 of file blockIndicatorF2D.hh.
|
overridevirtual |
Returns true iff indicated domain subset is empty.
Reimplemented from olb::BlockIndicatorF2D< T >.
Definition at line 138 of file blockIndicatorF2D.hh.
|
override |
Definition at line 121 of file blockIndicatorF2D.hh.
References olb::BlockGeometry< T, D >::getMaterial().
|
protected |
Definition at line 90 of file blockIndicatorF2D.h.