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

#include <postProcessing.h>

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

Public Member Functions

 PostProcessorGenerator2D (int x0_, int x1_, int y0_, int y1_)
 
virtual ~PostProcessorGenerator2D ()
 
void shift (int deltaX, int deltaY)
 
void shift (LatticeR< 2 > delta)
 
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 () const =0
 
virtual PostProcessorGenerator2D< T, DESCRIPTOR > * clone () const =0
 

Protected Attributes

int x0
 
int x1
 
int y0
 
int y1
 

Detailed Description

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

Definition at line 70 of file postProcessing.h.

Constructor & Destructor Documentation

◆ PostProcessorGenerator2D()

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

◆ ~PostProcessorGenerator2D()

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

Definition at line 73 of file postProcessing.h.

73{ }

Member Function Documentation

◆ clone()

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

◆ extract() [1/2]

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

Definition at line 77 of file postProcessing.hh.

79{
80 int newX0, newX1, newY0, newY1;
81 if ( util::intersect (
82 x0, x1, y0, y1,
83 x0_, x1_, y0_, y1_,
84 newX0, newX1, newY0, newY1 ) ) {
85 x0 = newX0;
86 x1 = newX1;
87 y0 = newY0;
88 y1 = newY1;
89 return true;
90 }
91 else {
92 return false;
93 }
94}
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

References olb::util::intersect().

+ Here is the call graph for this function:

◆ extract() [2/2]

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

Definition at line 97 of file postProcessing.hh.

98{
99 return extract(lower[0], upper[0], lower[1], upper[1]);
100}
bool extract(int x0_, int x1_, int y0_, int y1_)

◆ generate()

template<typename T , typename DESCRIPTOR >
virtual PostProcessor2D< T, DESCRIPTOR > * olb::PostProcessorGenerator2D< T, DESCRIPTOR >::generate ( ) const
pure virtual

◆ reset() [1/2]

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

Definition at line 112 of file postProcessing.hh.

113{
114 x0 = x0_;
115 x1 = x1_;
116 y0 = y0_;
117 y1 = y1_;
118}

◆ reset() [2/2]

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

Definition at line 103 of file postProcessing.hh.

104{
105 x0 = lower[0];
106 x1 = upper[0];
107 y0 = lower[1];
108 y1 = upper[1];
109}

◆ shift() [1/2]

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

Definition at line 59 of file postProcessing.hh.

60{
61 x0 += deltaX;
62 x1 += deltaX;
63 y0 += deltaY;
64 y1 += deltaY;
65}

◆ shift() [2/2]

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

Definition at line 68 of file postProcessing.hh.

69{
70 x0 += delta[0];
71 x1 += delta[0];
72 y0 += delta[1];
73 y1 += delta[1];
74}

Member Data Documentation

◆ x0

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

Definition at line 83 of file postProcessing.h.

◆ x1

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

Definition at line 83 of file postProcessing.h.

◆ y0

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

Definition at line 83 of file postProcessing.h.

◆ y1

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

Definition at line 83 of file postProcessing.h.


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