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

#include <reactionPostProcessor2D.h>

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

Public Member Functions

 ReactionGenerator2D (int x0_, int x1_, int y0_, int y1_, std::vector< std::shared_ptr< Rate< T > > > rate, REACTIONS &&reactions)
 
 ReactionGenerator2D (std::vector< std::shared_ptr< Rate< T > > > rate, REACTIONS &&reactions)
 
PostProcessor2D< T, DESCRIPTOR > * generate (std::vector< BlockStructureD< 2 > * > partners) const override
 
LatticeCouplingGenerator2D< T, DESCRIPTOR > * clone () const override
 
- Public Member Functions inherited from olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >
 LatticeCouplingGenerator2D (int x0_, int x1_, int y0_, int y1_)
 
virtual ~LatticeCouplingGenerator2D ()
 
void shift (LatticeR< 2 > delta)
 
void shift (int deltaX, int deltaY)
 
bool extract (int x0_, int x1_, int y0_, int y1_)
 
bool extract (LatticeR< 2 > lower, LatticeR< 2 > upper)
 
void reset (int x0_, int x1_, int y0_, int y1_)
 
void reset (LatticeR< 2 > lower, LatticeR< 2 > upper)
 

Additional Inherited Members

- Protected Attributes inherited from olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >
int x0
 
int x1
 
int y0
 
int y1
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename REACTIONS>
class olb::ReactionGenerator2D< T, DESCRIPTOR, REACTIONS >

Definition at line 70 of file reactionPostProcessor2D.h.

Constructor & Destructor Documentation

◆ ReactionGenerator2D() [1/2]

template<typename T , typename DESCRIPTOR , typename REACTIONS >
olb::ReactionGenerator2D< T, DESCRIPTOR, REACTIONS >::ReactionGenerator2D ( int x0_,
int x1_,
int y0_,
int y1_,
std::vector< std::shared_ptr< Rate< T > > > rate,
REACTIONS && reactions )

Definition at line 126 of file reactionPostProcessor2D.hh.

128 : LatticeCouplingGenerator2D<T,DESCRIPTOR>(x0_, x1_, y0_, y1_),
129 _rate(rate), _reactions(std::make_shared<REACTIONS>(reactions))
130{}

◆ ReactionGenerator2D() [2/2]

template<typename T , typename DESCRIPTOR , typename REACTIONS >
olb::ReactionGenerator2D< T, DESCRIPTOR, REACTIONS >::ReactionGenerator2D ( std::vector< std::shared_ptr< Rate< T > > > rate,
REACTIONS && reactions )

Definition at line 133 of file reactionPostProcessor2D.hh.

135 : ReactionGenerator2D<T,DESCRIPTOR,REACTIONS>(0,0,0,0,rate,std::move(reactions))
136{}

Member Function Documentation

◆ clone()

template<typename T , typename DESCRIPTOR , typename REACTIONS >
LatticeCouplingGenerator2D< T, DESCRIPTOR > * olb::ReactionGenerator2D< T, DESCRIPTOR, REACTIONS >::clone ( ) const
overridevirtual

Implements olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >.

Definition at line 146 of file reactionPostProcessor2D.hh.

147{
148 return new ReactionGenerator2D<T,DESCRIPTOR,REACTIONS>(*this);
149}

◆ generate()

template<typename T , typename DESCRIPTOR , typename REACTIONS >
PostProcessor2D< T, DESCRIPTOR > * olb::ReactionGenerator2D< T, DESCRIPTOR, REACTIONS >::generate ( std::vector< BlockStructureD< 2 > * > partners) const
overridevirtual

Implements olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >.

Definition at line 139 of file reactionPostProcessor2D.hh.

140{
141 return new ReactionPostProcessor2D<T,DESCRIPTOR,REACTIONS>(
142 this->x0,this->x1,this->y0,this->y1, _rate, _reactions, partners);
143}

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