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

#include <offBoundaryPostProcessors2D.h>

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

Public Member Functions

 AntiBounceBackPostProcessor2D (int x_, int y_, int iPop_)
 
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::AntiBounceBackPostProcessor2D< T, DESCRIPTOR >

Definition at line 122 of file offBoundaryPostProcessors2D.h.

Constructor & Destructor Documentation

◆ AntiBounceBackPostProcessor2D()

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

Definition at line 235 of file offBoundaryPostProcessors2D.hh.

237 : x(x_), y(y_), iPop(iPop_)
238{
239 typedef DESCRIPTOR L;
240 opp = descriptors::opposite<L>(iPop);
241 xN = x + descriptors::c<L>(iPop,0);
242 yN = y + descriptors::c<L>(iPop,1);
243
244 /*
245 std::cout << "Corner (" << x << "," << y << "," <<
246 "), iPop: " << iPop << ", nP: (" << xN << "," << yN << "," <<
247 "), dist: " << dist << std::endl;
248 */
249 this->getName() = "AntiBounceBackPostProcessor2D";
250}
std::string & getName()
read and write access to name

References 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::AntiBounceBackPostProcessor2D< T, DESCRIPTOR >::extent ( ) const
inlineoverridevirtual

Extent of application area (0 for purely local operations)

Implements olb::PostProcessor2D< T, DESCRIPTOR >.

Definition at line 125 of file offBoundaryPostProcessors2D.h.

126 {
127 return 1;
128 }

◆ extent() [2/2]

template<typename T , typename DESCRIPTOR >
int olb::AntiBounceBackPostProcessor2D< 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 129 of file offBoundaryPostProcessors2D.h.

130 {
131 return 1;
132 }

◆ process()

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

Execute post-processing step.

Implements olb::PostProcessor2D< T, DESCRIPTOR >.

Definition at line 262 of file offBoundaryPostProcessors2D.hh.

264{
265 /*Dynamics<T,DESCRIPTOR>* dynamics = blockLattice.getDynamics(xN, yN);
266 T velCoeff = dynamics->getVelocityCoefficient(iPop);
267 dynamics->defineRho( blockLattice.get(xN, yN), blockLattice.get(x, y).computeRho() );*/
268 if (descriptors::c<DESCRIPTOR>(iPop,1)==0) {
269 blockLattice.get(x, y)[opp] = -blockLattice.get(xN, yN)[iPop]; // + velCoeff;
270 }
271 //std::cout << "here" << std::endl;
272}

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

+ Here is the call graph for this function:

◆ processSubDomain()

template<typename T , typename DESCRIPTOR >
void olb::AntiBounceBackPostProcessor2D< 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 253 of file offBoundaryPostProcessors2D.hh.

255{
256 if (util::contained(x, y, x0_, x1_, y0_, y1_) ) {
257 process(blockLattice);
258 }
259}
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: