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

Indicator identifying neighbors of boundary cells. More...

#include <superIndicatorF3D.h>

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

Public Member Functions

 SuperIndicatorBoundaryNeighbor3D (FunctorPtr< SuperIndicatorF3D< T > > &&indicatorF, int overlap)
 
bool operator() (bool output[], const int input[]) override
 
- Public Member Functions inherited from olb::SuperIndicatorF3D< T >
 SuperIndicatorF3D (SuperGeometry< T, 3 > &geometry)
 
BlockIndicatorF3D< T > & getBlockIndicatorF (int iCloc)
 Get block indicator.
 
SuperGeometry< T, 3 > & getSuperGeometry ()
 Get underlying super geometry.
 
bool operator() (const int input[])
 Indicator specific function operator overload.
 
bool operator() (int iC, int iX, int iY, int iZ)
 Indicator specific function operator overload.
 
void cache ()
 Optional: initialize _cachedData for faster access.
 
- Public Member Functions inherited from olb::SuperF3D< T, bool >
SuperF3D< T, bool > & operator- (SuperF3D< T, bool > &rhs)
 
SuperF3D< T, bool > & operator+ (SuperF3D< T, bool > &rhs)
 
SuperF3D< T, bool > & operator* (SuperF3D< T, bool > &rhs)
 
SuperF3D< T, bool > & operator/ (SuperF3D< T, bool > &rhs)
 
SuperStructure< T, 3 > & getSuperStructure ()
 
int getBlockFSize () const
 
BlockF3D< bool > & getBlockF (int iCloc)
 
bool operator() (bool output[], const int input[])
 
- 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

FunctorPtr< SuperIndicatorF3D< T > > _indicatorF
 
int _overlap
 
- Protected Attributes inherited from olb::SuperIndicatorF3D< T >
SuperGeometry< T, 3 > & _superGeometry
 
std::unique_ptr< SuperData< 3, T, bool > > _cachedData
 
- Protected Attributes inherited from olb::SuperF3D< T, bool >
SuperStructure< T, 3 > & _superStructure
 
std::vector< std::unique_ptr< BlockF3D< bool > > > _blockF
 Super functors may consist of several BlockF3D<W> derived functors.
 

Additional Inherited Members

- Public Types inherited from olb::SuperIndicatorF3D< T >
using identity_functor_type = SuperIndicatorIdentity3D<T>
 
- Public Types inherited from olb::SuperF3D< T, bool >
using identity_functor_type
 
- 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::SuperF3D< T, bool >
static constexpr bool isSuper
 
static constexpr unsigned d
 
- Protected Member Functions inherited from olb::SuperF3D< T, bool >
 SuperF3D (SuperStructure< T, 3 > &superStructure, int targetDim)
 
- Protected Member Functions inherited from olb::GenericF< T, S >
 GenericF (int targetDim, int sourceDim)
 

Detailed Description

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

Indicator identifying neighbors of boundary cells.

Checks if neighbor is part of a boundary via passed SuperIndicatorMaterial.

Definition at line 149 of file superIndicatorF3D.h.

Constructor & Destructor Documentation

◆ SuperIndicatorBoundaryNeighbor3D()

template<typename T >
olb::SuperIndicatorBoundaryNeighbor3D< T >::SuperIndicatorBoundaryNeighbor3D ( FunctorPtr< SuperIndicatorF3D< T > > && indicatorF,
int overlap )

Definition at line 213 of file superIndicatorF3D.hh.

214 : SuperIndicatorF3D<T>(indicatorF->getSuperGeometry()),
215 _indicatorF(std::move(indicatorF)),
216 _overlap(overlap)
217{
218 this->getName() = "SuperIndicatorBoundaryNeighbor_for_BoundaryMaterial_" + _indicatorF->getName();
219
220 for (int iC = 0; iC < _indicatorF->getBlockFSize(); ++iC) {
221 this->_blockF.emplace_back(
222 new BlockIndicatorBoundaryNeighbor3D<T>(_indicatorF->getBlockIndicatorF(iC), _overlap));
223 }
224}
std::string & getName()
read and write access to name
Definition genericF.hh:51
std::vector< std::unique_ptr< BlockF3D< bool > > > _blockF
Super functors may consist of several BlockF3D<W> derived functors.
FunctorPtr< SuperIndicatorF3D< T > > _indicatorF

References olb::SuperF3D< T, bool >::_blockF, olb::SuperIndicatorBoundaryNeighbor3D< T >::_indicatorF, olb::SuperIndicatorBoundaryNeighbor3D< T >::_overlap, and olb::GenericF< T, S >::getName().

+ Here is the call graph for this function:

Member Function Documentation

◆ operator()()

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

Definition at line 227 of file superIndicatorF3D.hh.

228{
229 output[0] = false;
230
231 LoadBalancer<T>& load = this->_superGeometry.getLoadBalancer();
232
233 if (load.isLocal(input[0])) {
234 return this->getBlockF(load.loc(input[0]))(output, &input[1]);
235 }
236 else {
237 return false;
238 }
239}
BlockF3D< bool > & getBlockF(int iCloc)
SuperGeometry< T, 3 > & _superGeometry
LoadBalancer< T > & getLoadBalancer()
Read and write access to the load balancer.

References olb::LoadBalancer< T >::isLocal(), and olb::LoadBalancer< T >::loc().

+ Here is the call graph for this function:

Member Data Documentation

◆ _indicatorF

template<typename T >
FunctorPtr<SuperIndicatorF3D<T> > olb::SuperIndicatorBoundaryNeighbor3D< T >::_indicatorF
protected

Definition at line 151 of file superIndicatorF3D.h.

◆ _overlap

template<typename T >
int olb::SuperIndicatorBoundaryNeighbor3D< T >::_overlap
protected

Definition at line 152 of file superIndicatorF3D.h.


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