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

#include <postProcessing.h>

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

Public Member Functions

 LatticeCouplingGenerator3D ()=delete
 
 LatticeCouplingGenerator3D (int x0_, int x1_, int y0_, int y1_, int z0_, int z1_)
 
virtual ~LatticeCouplingGenerator3D ()
 
void shift (LatticeR< 3 > delta, int iC_=-1)
 
void shift (int deltaX, int deltaY, int deltaZ, 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 (LatticeR< 3 > lower, LatticeR< 3 > upper)
 
void reset (int x0_, int x1_, int y0_, int y1_, int z0_, int z1_)
 
virtual PostProcessor3D< T, DESCRIPTOR > * generate (std::vector< BlockStructureD< 3 > * > partners) const =0
 
virtual LatticeCouplingGenerator3D< 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::LatticeCouplingGenerator3D< T, DESCRIPTOR >

Definition at line 177 of file postProcessing.h.

Constructor & Destructor Documentation

◆ LatticeCouplingGenerator3D() [1/2]

template<typename T , typename DESCRIPTOR >
olb::LatticeCouplingGenerator3D< T, DESCRIPTOR >::LatticeCouplingGenerator3D ( )
delete

◆ LatticeCouplingGenerator3D() [2/2]

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

◆ ~LatticeCouplingGenerator3D()

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

Definition at line 182 of file postProcessing.h.

182{ }

Member Function Documentation

◆ clone()

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

◆ extract() [1/2]

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

Definition at line 328 of file postProcessing.hh.

330{
331 int newX0, newX1, newY0, newY1, newZ0, newZ1;
332 if ( util::intersect (
333 x0, x1, y0, y1, z0, z1,
334 x0_, x1_, y0_, y1_, z0_, z1_,
335 newX0, newX1, newY0, newY1, newZ0, newZ1 ) ) {
336 x0 = newX0;
337 x1 = newX1;
338 y0 = newY0;
339 y1 = newY1;
340 z0 = newZ0;
341 z1 = newZ1;
342 return true;
343 }
344 else {
345 return false;
346 }
347}
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::LatticeCouplingGenerator3D< T, DESCRIPTOR >::extract ( LatticeR< 3 > lower,
LatticeR< 3 > upper )

Definition at line 350 of file postProcessing.hh.

351{
352 return extract(lower[0], upper[0], lower[1], upper[1], lower[2], upper[2]);
353}
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::LatticeCouplingGenerator3D< T, DESCRIPTOR >::generate ( std::vector< BlockStructureD< 3 > * > partners) const
pure virtual

◆ reset() [1/2]

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

Definition at line 367 of file postProcessing.hh.

369{
370 x0 = x0_;
371 x1 = x1_;
372 y0 = y0_;
373 y1 = y1_;
374 z0 = z0_;
375 z1 = z1_;
376}

◆ reset() [2/2]

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

Definition at line 356 of file postProcessing.hh.

357{
358 x0 = lower[0];
359 x1 = upper[0];
360 y0 = lower[1];
361 y1 = upper[1];
362 z0 = lower[2];
363 z1 = upper[2];
364}

◆ shift() [1/2]

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

Definition at line 315 of file postProcessing.hh.

317{
318 x0 += deltaX;
319 x1 += deltaX;
320 y0 += deltaY;
321 y1 += deltaY;
322 z0 += deltaZ;
323 z1 += deltaZ;
324 iC = iC_;
325}

◆ shift() [2/2]

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

Definition at line 303 of file postProcessing.hh.

304{
305 x0 += delta[0];
306 x1 += delta[0];
307 y0 += delta[1];
308 y1 += delta[1];
309 z0 += delta[2];
310 z1 += delta[2];
311 iC = iC_;
312}

Member Data Documentation

◆ iC

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

Definition at line 192 of file postProcessing.h.

◆ x0

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

Definition at line 192 of file postProcessing.h.

◆ x1

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

Definition at line 192 of file postProcessing.h.

◆ y0

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

Definition at line 192 of file postProcessing.h.

◆ y1

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

Definition at line 192 of file postProcessing.h.

◆ z0

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

Definition at line 192 of file postProcessing.h.

◆ z1

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

Definition at line 192 of file postProcessing.h.


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