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

#include <postProcessing.h>

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

Public Member Functions

 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)
 
virtual PostProcessor2D< T, DESCRIPTOR > * generate (std::vector< BlockStructureD< 2 > * > partners) const =0
 
virtual LatticeCouplingGenerator2D< T, DESCRIPTOR > * clone () const =0
 

Protected Attributes

int x0
 
int x1
 
int y0
 
int y1
 

Detailed Description

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

Definition at line 87 of file postProcessing.h.

Constructor & Destructor Documentation

◆ LatticeCouplingGenerator2D()

template<typename T , typename DESCRIPTOR >
olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::LatticeCouplingGenerator2D ( int x0_,
int x1_,
int y0_,
int y1_ )

◆ ~LatticeCouplingGenerator2D()

template<typename T , typename DESCRIPTOR >
virtual olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::~LatticeCouplingGenerator2D ( )
inlinevirtual

Definition at line 90 of file postProcessing.h.

90{ }

Member Function Documentation

◆ clone()

template<typename T , typename DESCRIPTOR >
virtual LatticeCouplingGenerator2D< T, DESCRIPTOR > * olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::clone ( ) const
pure virtual

◆ extract() [1/2]

template<typename T , typename DESCRIPTOR >
bool olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::extract ( int x0_,
int x1_,
int y0_,
int y1_ )

Definition at line 148 of file postProcessing.hh.

149{
150 int newX0, newX1, newY0, newY1;
151 if ( util::intersect (
152 x0, x1, y0, y1,
153 x0_, x1_, y0_, y1_,
154 newX0, newX1, newY0, newY1 ) ) {
155 x0 = newX0;
156 x1 = newX1;
157 y0 = newY0;
158 y1 = newY1;
159 return true;
160 }
161 else {
162 return false;
163 }
164}
bool intersect(int x0, int x1, int y0, int y1, int x0_, int x1_, int y0_, int y1_, int &newX0, int &newX1, int &newY0, int &newY1)
Definition util.h:89

◆ extract() [2/2]

template<typename T , typename DESCRIPTOR >
bool olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::extract ( LatticeR< 2 > lower,
LatticeR< 2 > upper )

Definition at line 167 of file postProcessing.hh.

168{
169 return extract(lower[0], upper[0], lower[1], upper[1]);
170}
bool extract(int x0_, int x1_, int y0_, int y1_)

◆ generate()

template<typename T , typename DESCRIPTOR >
virtual PostProcessor2D< T, DESCRIPTOR > * olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::generate ( std::vector< BlockStructureD< 2 > * > partners) const
pure virtual

◆ reset() [1/2]

template<typename T , typename DESCRIPTOR >
void olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::reset ( int x0_,
int x1_,
int y0_,
int y1_ )

Definition at line 173 of file postProcessing.hh.

174{
175 x0 = x0_;
176 x1 = x1_;
177 y0 = y0_;
178 y1 = y1_;
179}

◆ reset() [2/2]

template<typename T , typename DESCRIPTOR >
void olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::reset ( LatticeR< 2 > lower,
LatticeR< 2 > upper )

Definition at line 182 of file postProcessing.hh.

183{
184 reset(lower[0], upper[0], lower[1], upper[1]);
185}
void reset(int x0_, int x1_, int y0_, int y1_)

◆ shift() [1/2]

template<typename T , typename DESCRIPTOR >
void olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::shift ( int deltaX,
int deltaY )

Definition at line 139 of file postProcessing.hh.

140{
141 x0 += deltaX;
142 x1 += deltaX;
143 y0 += deltaY;
144 y1 += deltaY;
145}

◆ shift() [2/2]

template<typename T , typename DESCRIPTOR >
void olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::shift ( LatticeR< 2 > delta)

Definition at line 130 of file postProcessing.hh.

131{
132 x0 += delta[0];
133 x1 += delta[0];
134 y0 += delta[1];
135 y1 += delta[1];
136}

Member Data Documentation

◆ x0

template<typename T , typename DESCRIPTOR >
int olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::x0
protected

Definition at line 100 of file postProcessing.h.

◆ x1

template<typename T , typename DESCRIPTOR >
int olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::x1
protected

Definition at line 100 of file postProcessing.h.

◆ y0

template<typename T , typename DESCRIPTOR >
int olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::y0
protected

Definition at line 100 of file postProcessing.h.

◆ y1

template<typename T , typename DESCRIPTOR >
int olb::LatticeCouplingGenerator2D< T, DESCRIPTOR >::y1
protected

Definition at line 100 of file postProcessing.h.


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