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

#include <postProcessing.h>

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

Public Member Functions

 PostProcessorGenerator3D (int x0_, int x1_, int y0_, int y1_, int z0_, int z1_)
 
virtual ~PostProcessorGenerator3D ()
 
void shift (int deltaX, int deltaY, int deltaZ, int iC_=-1)
 
void shift (LatticeR< 3 > delta, int iC_=-1)
 
bool extract (int x0_, int x1_, int y0_, int y1_, int z0_, int z1_)
 
bool extract (LatticeR< 3 > lower, LatticeR< 3 > upper)
 
void reset (int x0_, int x1_, int y0_, int y1_, int z0_, int z1_)
 
void reset (LatticeR< 3 > lower, LatticeR< 3 > upper)
 
virtual PostProcessor3D< T, DESCRIPTOR > * generate () const =0
 
virtual PostProcessorGenerator3D< T, DESCRIPTOR > * clone () const =0
 

Protected Attributes

int x0
 
int x1
 
int y0
 
int y1
 
int z0
 
int z1
 
int iC
 

Detailed Description

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

Definition at line 158 of file postProcessing.h.

Constructor & Destructor Documentation

◆ PostProcessorGenerator3D()

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

◆ ~PostProcessorGenerator3D()

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

Definition at line 162 of file postProcessing.h.

162{ }

Member Function Documentation

◆ clone()

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

◆ extract() [1/2]

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

Definition at line 244 of file postProcessing.hh.

246{
247 int newX0, newX1, newY0, newY1, newZ0, newZ1;
248 if ( util::intersect (
249 x0, x1, y0, y1, z0, z1,
250 x0_, x1_, y0_, y1_, z0_, z1_,
251 newX0, newX1, newY0, newY1, newZ0, newZ1 ) ) {
252 x0 = newX0;
253 x1 = newX1;
254 y0 = newY0;
255 y1 = newY1;
256 z0 = newZ0;
257 z1 = newZ1;
258 return true;
259 }
260 else {
261 return false;
262 }
263}
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::PostProcessorGenerator3D< T, DESCRIPTOR >::extract ( LatticeR< 3 > lower,
LatticeR< 3 > upper )

Definition at line 266 of file postProcessing.hh.

267{
268 return extract(lower[0], upper[0], lower[1], upper[1], lower[2], upper[2]);
269}
bool extract(int x0_, int x1_, int y0_, int y1_, int z0_, int z1_)

◆ generate()

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

◆ reset() [1/2]

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

Definition at line 283 of file postProcessing.hh.

285{
286 x0 = x0_;
287 x1 = x1_;
288 y0 = y0_;
289 y1 = y1_;
290 z0 = z0_;
291 z1 = z1_;
292}

◆ reset() [2/2]

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

Definition at line 272 of file postProcessing.hh.

273{
274 x0 = lower[0];
275 x1 = upper[0];
276 y0 = lower[1];
277 y1 = upper[1];
278 z0 = lower[2];
279 z1 = upper[2];
280}

◆ shift() [1/2]

template<typename T , typename DESCRIPTOR >
void olb::PostProcessorGenerator3D< T, DESCRIPTOR >::shift ( int deltaX,
int deltaY,
int deltaZ,
int iC_ = -1 )

Definition at line 218 of file postProcessing.hh.

220{
221 x0 += deltaX;
222 x1 += deltaX;
223 y0 += deltaY;
224 y1 += deltaY;
225 z0 += deltaZ;
226 z1 += deltaZ;
227 iC = iC_;
228}

◆ shift() [2/2]

template<typename T , typename DESCRIPTOR >
void olb::PostProcessorGenerator3D< T, DESCRIPTOR >::shift ( LatticeR< 3 > delta,
int iC_ = -1 )

Definition at line 231 of file postProcessing.hh.

233{
234 x0 += delta[0];
235 x1 += delta[0];
236 y0 += delta[1];
237 y1 += delta[1];
238 z0 += delta[2];
239 z1 += delta[2];
240 iC = iC_;
241}

Member Data Documentation

◆ iC

template<typename T , typename DESCRIPTOR >
int olb::PostProcessorGenerator3D< T, DESCRIPTOR >::iC
protected

Definition at line 172 of file postProcessing.h.

◆ x0

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

Definition at line 172 of file postProcessing.h.

◆ x1

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

Definition at line 172 of file postProcessing.h.

◆ y0

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

Definition at line 172 of file postProcessing.h.

◆ y1

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

Definition at line 172 of file postProcessing.h.

◆ z0

template<typename T , typename DESCRIPTOR >
int olb::PostProcessorGenerator3D< T, DESCRIPTOR >::z0
protected

Definition at line 172 of file postProcessing.h.

◆ z1

template<typename T , typename DESCRIPTOR >
int olb::PostProcessorGenerator3D< T, DESCRIPTOR >::z1
protected

Definition at line 172 of file postProcessing.h.


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