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

#include <offBoundaryPostProcessors2D.h>

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

Public Member Functions

 BoundaryStreamPostProcessor2D (int x_, int y_, const bool streamDirections[DESCRIPTOR::q])
 
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::BoundaryStreamPostProcessor2D< T, DESCRIPTOR >

Definition at line 143 of file offBoundaryPostProcessors2D.h.

Constructor & Destructor Documentation

◆ BoundaryStreamPostProcessor2D()

template<typename T , typename DESCRIPTOR >
olb::BoundaryStreamPostProcessor2D< T, DESCRIPTOR >::BoundaryStreamPostProcessor2D ( int x_,
int y_,
const bool streamDirections[DESCRIPTOR::q] )

Definition at line 276 of file offBoundaryPostProcessors2D.hh.

278 : x(x_), y(y_)
279{
280 for (int iPop = 0; iPop < DESCRIPTOR::q ; ++iPop) {
281 this->_streamDirections[iPop] = streamDirection[iPop];
282 }
283 this->getName() = "BoundaryStreamPostProcessor2D";
284}
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::BoundaryStreamPostProcessor2D< T, DESCRIPTOR >::extent ( ) const
inlineoverridevirtual

Extent of application area (0 for purely local operations)

Implements olb::PostProcessor2D< T, DESCRIPTOR >.

Definition at line 146 of file offBoundaryPostProcessors2D.h.

147 {
148 return 1;
149 }

◆ extent() [2/2]

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

151 {
152 return 1;
153 }

◆ process()

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

Execute post-processing step.

Implements olb::PostProcessor2D< T, DESCRIPTOR >.

Definition at line 296 of file offBoundaryPostProcessors2D.hh.

298{
299 auto cell = blockLattice.get(x, y);
300 for (int iPop = 1; iPop < DESCRIPTOR::q ; ++iPop) {
301 if (_streamDirections[iPop]) {
302 blockLattice.get(x + descriptors::c<DESCRIPTOR>(iPop,0), y + descriptors::c<DESCRIPTOR>(iPop,1))[iPop] = cell[iPop];
303 }
304 }
305}

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

+ Here is the call graph for this function:

◆ processSubDomain()

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

289{
290 if (util::contained(x, y, x0_, x1_, y0_, y1_) ) {
291 process(blockLattice);
292 }
293}
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: