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

#include <offBoundaryPostProcessors2D.h>

+ Inheritance diagram for olb::ZeroVelocityBounceBackPostProcessor2D< T, DESCRIPTOR >:
+ Collaboration diagram for olb::ZeroVelocityBounceBackPostProcessor2D< T, DESCRIPTOR >:

Public Member Functions

 ZeroVelocityBounceBackPostProcessor2D (int x_, int y_, int iPop_, T dist_)
 
int extent () const override
 Extent of application area (0 for purely local operations)
 
int extent (int whichDirection) const override
 Extent of application area along a direction (0 or 1)
 
void process (BlockLattice< T, DESCRIPTOR > &blockLattice) override
 Execute post-processing step.
 
void processSubDomain (BlockLattice< T, DESCRIPTOR > &blockLattice, int x0_, int x1_, int y0_, int y1_) override
 Execute post-processing step on a sublattice.
 
- Public Member Functions inherited from olb::PostProcessor2D< T, DESCRIPTOR >
 PostProcessor2D ()
 
virtual ~PostProcessor2D ()
 
std::string & getName ()
 read and write access to name
 
std::string const & getName () const
 read only access to name
 
int getPriority () const
 read only access to priority
 

Additional Inherited Members

- Protected Attributes inherited from olb::PostProcessor2D< T, DESCRIPTOR >
int _priority
 

Detailed Description

template<typename T, typename DESCRIPTOR>
class olb::ZeroVelocityBounceBackPostProcessor2D< T, DESCRIPTOR >

Definition at line 77 of file offBoundaryPostProcessors2D.h.

Constructor & Destructor Documentation

◆ ZeroVelocityBounceBackPostProcessor2D()

template<typename T , typename DESCRIPTOR >
olb::ZeroVelocityBounceBackPostProcessor2D< T, DESCRIPTOR >::ZeroVelocityBounceBackPostProcessor2D ( int x_,
int y_,
int iPop_,
T dist_ )

Definition at line 149 of file offBoundaryPostProcessors2D.hh.

151 : x(x_), y(y_), iPop(iPop_), dist(dist_)
152{
153 this->getName() = "ZeroVelocityBounceBackPostProcessor2D";
154 this->_priority = -1;
155#ifndef QUIET
156 if (dist < 0 || dist > 1)
157 std::cout << "WARNING: Bogus distance at (" << x << "," << y << "," << "): "
158 << dist << std::endl;
159#endif
160 typedef DESCRIPTOR L;
161 opp = descriptors::opposite<L>(iPop);
162 xN = x + descriptors::c<L>(iPop,0);
163 yN = y + descriptors::c<L>(iPop,1);
164 /*
165 std::cout << "Corner (" << x << "," << y << "," <<
166 "), iPop: " << iPop << ", nP: (" << xN << "," << yN << "," <<
167 "), dist: " << dist << std::endl;
168 */
169}
std::string & getName()
read and write access to name

References olb::PostProcessor2D< T, DESCRIPTOR >::_priority, and olb::PostProcessor2D< T, DESCRIPTOR >::getName().

+ Here is the call graph for this function:

Member Function Documentation

◆ extent() [1/2]

template<typename T , typename DESCRIPTOR >
int olb::ZeroVelocityBounceBackPostProcessor2D< T, DESCRIPTOR >::extent ( ) const
inlineoverridevirtual

Extent of application area (0 for purely local operations)

Implements olb::PostProcessor2D< T, DESCRIPTOR >.

Definition at line 80 of file offBoundaryPostProcessors2D.h.

81 {
82 return 1;
83 }

◆ extent() [2/2]

template<typename T , typename DESCRIPTOR >
int olb::ZeroVelocityBounceBackPostProcessor2D< T, DESCRIPTOR >::extent ( int direction) const
inlineoverridevirtual

Extent of application area along a direction (0 or 1)

Implements olb::PostProcessor2D< T, DESCRIPTOR >.

Definition at line 84 of file offBoundaryPostProcessors2D.h.

85 {
86 return 1;
87 }

◆ process()

template<typename T , typename DESCRIPTOR >
void olb::ZeroVelocityBounceBackPostProcessor2D< T, DESCRIPTOR >::process ( BlockLattice< T, DESCRIPTOR > & blockLattice)
overridevirtual

Execute post-processing step.

Implements olb::PostProcessor2D< T, DESCRIPTOR >.

Definition at line 181 of file offBoundaryPostProcessors2D.hh.

183{
184 blockLattice.get(x, y)[opp] = blockLattice.get(xN, yN)[iPop];
185}

References olb::BlockLattice< T, DESCRIPTOR >::get().

+ Here is the call graph for this function:

◆ processSubDomain()

template<typename T , typename DESCRIPTOR >
void olb::ZeroVelocityBounceBackPostProcessor2D< T, DESCRIPTOR >::processSubDomain ( BlockLattice< T, DESCRIPTOR > & blockLattice,
int x0_,
int x1_,
int y0_,
int y1_ )
overridevirtual

Execute post-processing step on a sublattice.

Implements olb::PostProcessor2D< T, DESCRIPTOR >.

Definition at line 172 of file offBoundaryPostProcessors2D.hh.

174{
175 if (util::contained(x, y, x0_, x1_, y0_, y1_) ) {
176 process(blockLattice);
177 }
178}
void process(BlockLattice< T, DESCRIPTOR > &blockLattice) override
Execute post-processing step.
bool contained(int x, int y, int x0, int x1, int y0, int y1)
Definition util.h:119

References olb::util::contained().

+ Here is the call graph for this function:

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