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

#include <offBoundaryPostProcessors3D.h>

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

Public Member Functions

 ZeroVelocityBounceBackPostProcessor3D (int x_, int y_, int z_, 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_, int z0_, int z1_) override
 Execute post-processing step on a sublattice.
 
- Public Member Functions inherited from olb::PostProcessor3D< T, DESCRIPTOR >
 PostProcessor3D ()
 
virtual ~PostProcessor3D ()
 
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::PostProcessor3D< T, DESCRIPTOR >
int _priority
 

Detailed Description

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

Definition at line 58 of file offBoundaryPostProcessors3D.h.

Constructor & Destructor Documentation

◆ ZeroVelocityBounceBackPostProcessor3D()

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

Definition at line 174 of file offBoundaryPostProcessors3D.hh.

176 : x(x_), y(y_), z(z_), iPop(iPop_), dist(dist_)
177{
178 this->getName() = "ZeroVelocityBounceBackPostProcessor3D";
179 this->_priority = -1;
180
181#ifndef QUIET
182 if (dist < 0 || dist > 1)
183 std::cout << "WARNING: Bogus distance at (" << x << "," << y << "," << z << "): "
184 << dist << std::endl;
185#endif
186 typedef DESCRIPTOR L;
187 const Vector<int,3> c = descriptors::c<L>(iPop);
188 opp = descriptors::opposite<L>(iPop);
189 xN = x + c[0];
190 yN = y + c[1];
191 zN = z + c[2];
192 /*
193 std::cout << "Corner (" << x << "," << y << "," << z <<
194 "), iPop: " << iPop << ", nP: (" << xN << "," << yN << "," << zN <<
195 "), dist: " << dist << std::endl;
196 */
197}
std::string & getName()
read and write access to name
platform_constant int c[Q][D]

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

+ Here is the call graph for this function:

Member Function Documentation

◆ extent() [1/2]

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

Extent of application area (0 for purely local operations)

Implements olb::PostProcessor3D< T, DESCRIPTOR >.

Definition at line 61 of file offBoundaryPostProcessors3D.h.

62 {
63 return 1;
64 }

◆ extent() [2/2]

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

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

Implements olb::PostProcessor3D< T, DESCRIPTOR >.

Definition at line 65 of file offBoundaryPostProcessors3D.h.

66 {
67 return 1;
68 }

◆ process()

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

Execute post-processing step.

Implements olb::PostProcessor3D< T, DESCRIPTOR >.

Definition at line 209 of file offBoundaryPostProcessors3D.hh.

211{
212 blockLattice.get(x, y, z)[opp] = blockLattice.get(xN, yN, zN)[iPop];
213}

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

+ Here is the call graph for this function:

◆ processSubDomain()

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

Execute post-processing step on a sublattice.

Implements olb::PostProcessor3D< T, DESCRIPTOR >.

Definition at line 200 of file offBoundaryPostProcessors3D.hh.

202{
203 if (util::contained(x, y, z, x0_, x1_, y0_, y1_, z0_, z1_)) {
204 process(blockLattice);
205 }
206}
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: