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

SuperIndicatorF2D from SmoothIndicatorF2D. More...

#include <superIndicatorF2D.h>

+ Inheritance diagram for olb::SuperIndicatorFfromSmoothIndicatorF2D< T, HLBM >:
+ Collaboration diagram for olb::SuperIndicatorFfromSmoothIndicatorF2D< T, HLBM >:

Public Member Functions

 SuperIndicatorFfromSmoothIndicatorF2D (FunctorPtr< SmoothIndicatorF2D< T, T, HLBM > > &&indicatorF, SuperGeometry< T, 2 > &geometry)
 
bool operator() (bool output[], const int input[]) override
 
- Public Member Functions inherited from olb::SuperIndicatorF2D< T >
 SuperIndicatorF2D (SuperGeometry< T, 2 > &geometry)
 
BlockIndicatorF2D< T > & getBlockIndicatorF (int iCloc)
 Get block indicator.
 
SuperGeometry< T, 2 > & getSuperGeometry ()
 Get underlying super geometry.
 
bool operator() (const int input[])
 Indicator specific function operator overload.
 
bool operator() (int iC, int iX, int iY)
 Indicator specific function operator overload.
 
void cache ()
 Optional: initialize _cachedData for faster access.
 
- Public Member Functions inherited from olb::SuperF2D< T, bool >
SuperF2D< T, bool > & operator- (SuperF2D< T, bool > &rhs)
 
SuperF2D< T, bool > & operator+ (SuperF2D< T, bool > &rhs)
 
SuperF2D< T, bool > & operator* (SuperF2D< T, bool > &rhs)
 
SuperF2D< T, bool > & operator/ (SuperF2D< T, bool > &rhs)
 
SuperStructure< T, 2 > & getSuperStructure ()
 
int getBlockFSize () const
 
BlockF2D< bool > & getBlockF (int iCloc)
 
bool operator() (bool output[], const int input[]) override
 
- 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< SmoothIndicatorF2D< T, T, HLBM > > _indicatorF
 
- Protected Attributes inherited from olb::SuperIndicatorF2D< T >
SuperGeometry< T, 2 > & _superGeometry
 
std::unique_ptr< SuperData< 2, T, bool > > _cachedData
 
- Protected Attributes inherited from olb::SuperF2D< T, bool >
SuperStructure< T, 2 > & _superStructure
 
std::vector< std::unique_ptr< BlockF2D< bool > > > _blockF
 Super functors may consist of several BlockF2D<W> derived functors.
 

Additional Inherited Members

- Public Types inherited from olb::SuperIndicatorF2D< T >
using identity_functor_type = SuperIndicatorIdentity2D<T>
 
- Public Types inherited from olb::SuperF2D< 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)
 
- Protected Member Functions inherited from olb::SuperF2D< T, bool >
 SuperF2D (SuperStructure< T, 2 > &superStructure, int targetDim)
 
- Protected Member Functions inherited from olb::GenericF< T, S >
 GenericF (int targetDim, int sourceDim)
 

Detailed Description

template<typename T, bool HLBM>
class olb::SuperIndicatorFfromSmoothIndicatorF2D< T, HLBM >

SuperIndicatorF2D from SmoothIndicatorF2D.

Returns true iff SmoothIndicatorF2D output is not near zero.

Definition at line 60 of file superIndicatorF2D.h.

Constructor & Destructor Documentation

◆ SuperIndicatorFfromSmoothIndicatorF2D()

template<typename T , bool HLBM>
olb::SuperIndicatorFfromSmoothIndicatorF2D< T, HLBM >::SuperIndicatorFfromSmoothIndicatorF2D ( FunctorPtr< SmoothIndicatorF2D< T, T, HLBM > > && indicatorF,
SuperGeometry< T, 2 > & geometry )
Parameters
indicatorFIndicator to be converted into a super indicator
geometrySuper geometry required for block indicator construction

Definition at line 63 of file superIndicatorF2D.hh.

66 : SuperIndicatorF2D<T>(geometry),
67 _indicatorF(std::move(indicatorF))
68{
69 this->getName() = "SuperIndicator_from_" + _indicatorF->getName();
70
71 LoadBalancer<T>& load = this->getSuperStructure().getLoadBalancer();
72
73 for (int iC = 0; iC < load.size(); ++iC) {
74 this->_blockF.emplace_back(
75 new BlockIndicatorFfromSmoothIndicatorF2D<T, HLBM>(
76 *_indicatorF, geometry.getBlockGeometry(iC))
77 );
78 }
79}
std::string & getName()
read and write access to name
Definition genericF.hh:51
std::vector< std::unique_ptr< BlockF2D< bool > > > _blockF
Super functors may consist of several BlockF2D<W> derived functors.
SuperStructure< T, 2 > & getSuperStructure()
BlockGeometry< T, D > & getBlockGeometry(int locIC)
Read and write access to a single block geometry.
FunctorPtr< SmoothIndicatorF2D< T, T, HLBM > > _indicatorF
LoadBalancer< T > & getLoadBalancer()
Read and write access to the load balancer.

References olb::SuperF2D< T, bool >::_blockF, olb::SuperIndicatorFfromSmoothIndicatorF2D< T, HLBM >::_indicatorF, olb::SuperGeometry< T, D >::getBlockGeometry(), olb::SuperStructure< T, D >::getLoadBalancer(), olb::GenericF< T, S >::getName(), olb::SuperF2D< T, bool >::getSuperStructure(), and olb::LoadBalancer< T >::size().

+ Here is the call graph for this function:

Member Function Documentation

◆ operator()()

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

Definition at line 82 of file superIndicatorF2D.hh.

83{
84 T physR[2];
85 T inside[1];
86 this->_superStructure.getCuboidGeometry().getPhysR(physR, input);
87 _indicatorF(inside, physR);
88 return !util::nearZero(inside[0]);
89}
SuperStructure< T, 2 > & _superStructure
CuboidGeometry< T, D > & getCuboidGeometry()
Read and write access to cuboid geometry.
bool nearZero(const ADf< T, DIM > &a)
Definition aDiff.h:1087

References olb::util::nearZero().

+ Here is the call graph for this function:

Member Data Documentation

◆ _indicatorF

template<typename T , bool HLBM>
FunctorPtr<SmoothIndicatorF2D<T,T,HLBM> > olb::SuperIndicatorFfromSmoothIndicatorF2D< T, HLBM >::_indicatorF
protected

Definition at line 62 of file superIndicatorF2D.h.


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