OpenLB 1.7
|
Base block indicator functor. More...
#include <blockIndicatorBaseF3D.h>
Public Member Functions | |
BlockIndicatorF3D (BlockGeometry< T, 3 > &geometry) | |
BlockGeometry< T, 3 > & | getBlockGeometry () |
Get underlying block geometry structure. | |
bool | operator() (const int input[]) |
Block indicator specific function operator overload. | |
bool | operator() (int iX, int iY, int iZ) |
bool | operator() (LatticeR< 3 > loc) |
void | setCache (const BlockData< 3, 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. | |
virtual Vector< int, 3 > | getMin ()=0 |
Returns min lattice position of the indicated subset's bounding box. | |
virtual Vector< int, 3 > | getMax ()=0 |
Returns max lattice position of the indicated subset's bounding box. | |
Public Member Functions inherited from olb::BlockF3D< bool > | |
~BlockF3D () override | |
virtual destructor for defined behaviour | |
virtual BlockStructureD< 3 > & | getBlockStructure () const |
BlockF3D< bool > & | operator- (BlockF3D< bool > &rhs) |
BlockF3D< bool > & | operator+ (BlockF3D< bool > &rhs) |
BlockF3D< bool > & | operator* (BlockF3D< bool > &rhs) |
BlockF3D< bool > & | operator/ (BlockF3D< 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 | |
BlockGeometry< T, 3 > & | _block |
const BlockData< 3, T, bool > * | _cachedData |
Protected Attributes inherited from olb::BlockF3D< bool > | |
BlockStructureD< 3 > & | _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::BlockF3D< bool > | |
BlockF3D (BlockStructureD< 3 > &blockStructure, int targetDim) | |
Protected Member Functions inherited from olb::GenericF< T, S > | |
GenericF (int targetDim, int sourceDim) | |
Base block indicator functor.
Derived functors implement a indicator function on the full domain given by BlockGeometry3D.
Definition at line 40 of file blockIndicatorBaseF3D.h.
olb::BlockIndicatorF3D< T >::BlockIndicatorF3D | ( | BlockGeometry< T, 3 > & | geometry | ) |
Definition at line 33 of file blockIndicatorBaseF3D.hh.
BlockGeometry< T, 3 > & olb::BlockIndicatorF3D< T >::getBlockGeometry | ( | ) |
Get underlying block geometry structure.
Definition at line 40 of file blockIndicatorBaseF3D.hh.
|
pure virtual |
Returns max lattice position of the indicated subset's bounding box.
Implemented in olb::BlockIndicatorFfromIndicatorF3D< T >, olb::BlockIndicatorFfromSmoothIndicatorF3D< T, HLBM >, olb::BlockIndicatorMaterial3D< T >, olb::BlockIndicatorLayer3D< T >, olb::BlockIndicatorIdentity3D< T >, olb::BlockIndicatorMultiplication3D< T >, and olb::BlockIndicatorBoundaryNeighbor3D< T >.
|
pure virtual |
Returns min lattice position of the indicated subset's bounding box.
Implemented in olb::BlockIndicatorFfromIndicatorF3D< T >, olb::BlockIndicatorFfromSmoothIndicatorF3D< T, HLBM >, olb::BlockIndicatorMaterial3D< T >, olb::BlockIndicatorLayer3D< T >, olb::BlockIndicatorIdentity3D< T >, olb::BlockIndicatorMultiplication3D< T >, and olb::BlockIndicatorBoundaryNeighbor3D< T >.
|
virtual |
Returns true only if the indicated domain subset is empty.
May return false even if the indicated domain subset is in fact empty. Primarily implemented to minimize block accesses if an empty domain can be inferred by e.g. BlockGeometryStatistics3D data.
i.e. only override this method if the domain can be checked for emptyness in an efficient fashion.
Reimplemented in olb::BlockIndicatorMaterial3D< T >.
Definition at line 78 of file blockIndicatorBaseF3D.hh.
bool olb::BlockIndicatorF3D< T >::operator() | ( | const int | input[] | ) |
Block indicator specific function operator overload.
The boolean return value of operator()(T output[], S input[])
describes the call's success and by convention must not describe the indicated domain.
true
iff the input lies within the described subset. Definition at line 46 of file blockIndicatorBaseF3D.hh.
bool olb::BlockIndicatorF3D< T >::operator() | ( | int | iX, |
int | iY, | ||
int | iZ ) |
Definition at line 59 of file blockIndicatorBaseF3D.hh.
bool olb::BlockIndicatorF3D< T >::operator() | ( | LatticeR< 3 > | loc | ) |
Definition at line 66 of file blockIndicatorBaseF3D.hh.
void olb::BlockIndicatorF3D< T >::setCache | ( | const BlockData< 3, T, bool > & | cache | ) |
Set bool-mask cache to be used by indicator operator overloads.
Definition at line 72 of file blockIndicatorBaseF3D.hh.
|
protected |
Definition at line 42 of file blockIndicatorBaseF3D.h.
|
protected |
Definition at line 43 of file blockIndicatorBaseF3D.h.