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

Block indicator intersection. More...

#include <blockIndicatorF3D.h>

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

Public Member Functions

 BlockIndicatorMultiplication3D (BlockIndicatorF3D< T > &f, BlockIndicatorF3D< T > &g)
 
bool operator() (bool output[], const int input[]) override
 
Vector< int, 3 > getMin () override
 Returns min lattice position of the indicated domain's bounding box.
 
Vector< int, 3 > getMax () override
 Returns max lattice position of the indicated domain's bounding box.
 
- Public Member Functions inherited from olb::BlockIndicatorF3D< T >
 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.
 
- 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

BlockIndicatorF3D< T > & _f
 
BlockIndicatorF3D< T > & _g
 
- Protected Attributes inherited from olb::BlockIndicatorF3D< T >
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)
 

Detailed Description

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

Block indicator intersection.

Definition at line 159 of file blockIndicatorF3D.h.

Constructor & Destructor Documentation

◆ BlockIndicatorMultiplication3D()

template<typename T >
olb::BlockIndicatorMultiplication3D< T >::BlockIndicatorMultiplication3D ( BlockIndicatorF3D< T > & f,
BlockIndicatorF3D< T > & g )
Parameters
fBlock indicator to be multiplied
gBlock indicator to be multiplied

Definition at line 261 of file blockIndicatorF3D.hh.

263 : BlockIndicatorF3D<T>(f.getBlockGeometry()),
264 _f(f), _g(g)
265{ }

Member Function Documentation

◆ getMax()

template<typename T >
Vector< int, 3 > olb::BlockIndicatorMultiplication3D< T >::getMax ( )
overridevirtual

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

Implements olb::BlockIndicatorF3D< T >.

Definition at line 288 of file blockIndicatorF3D.hh.

289{
290 auto resF = _f.getMax();
291 auto resG = _g.getMax();
292 return {util::min(resF[0], resG[0]),
293 util::min(resF[1], resG[1]),
294 util::min(resF[2], resG[2])};
295}
cpu::simd::Pack< T > min(cpu::simd::Pack< T > rhs, cpu::simd::Pack< T > lhs)
Definition pack.h:124

References olb::util::min().

+ Here is the call graph for this function:

◆ getMin()

template<typename T >
Vector< int, 3 > olb::BlockIndicatorMultiplication3D< T >::getMin ( )
overridevirtual

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

Implements olb::BlockIndicatorF3D< T >.

Definition at line 278 of file blockIndicatorF3D.hh.

279{
280 auto resF = _f.getMin();
281 auto resG = _g.getMin();
282 return {util::max(resF[0], resG[0]),
283 util::max(resF[1], resG[1]),
284 util::max(resF[2], resG[2])};
285}
cpu::simd::Pack< T > max(cpu::simd::Pack< T > rhs, cpu::simd::Pack< T > lhs)
Definition pack.h:130

References olb::util::max().

+ Here is the call graph for this function:

◆ operator()()

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

Definition at line 268 of file blockIndicatorF3D.hh.

269{
270 _f(output, input);
271 if (output[0]) {
272 _g(output, input);
273 }
274 return output[0];
275}

Member Data Documentation

◆ _f

template<typename T >
BlockIndicatorF3D<T>& olb::BlockIndicatorMultiplication3D< T >::_f
protected

Definition at line 161 of file blockIndicatorF3D.h.

◆ _g

template<typename T >
BlockIndicatorF3D<T>& olb::BlockIndicatorMultiplication3D< T >::_g
protected

Definition at line 162 of file blockIndicatorF3D.h.


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