OpenLB 1.7
|
BlockReduction2D2D interpolates the data of a SuperF2D functor in a given resolution. More...
#include <blockReduction2D2D.h>
Public Member Functions | |
BlockReduction2D2D (FunctorPtr< SuperF2D< T > > &&f, int resolution=600, BlockDataSyncMode mode=BlockDataSyncMode::ReduceAndBcast) | |
Vector< T, 2 > | getPhysR (const int &iX, const int &iY) const |
Transform lattice coordinates to their physical location. | |
HyperplaneLattice3D< T > | getPlaneDiscretizationIn3D () const |
Returns embedding of the discretized plane in 3D space. | |
void | initialize () |
Initialize rank-local list of points to be stored in _blockData. | |
void | update () |
Updates and writes the data to _blockData using _rankLocalSubplane. | |
BlockStructureD< 2 > & | getBlockStructure () override |
Overload of virtual function from class BlockF2D. | |
Public Member Functions inherited from olb::BlockDataF2D< T, T > | |
BlockDataF2D (BlockData< 2, T, T > &blockData) | |
Constructor. | |
BlockDataF2D (BlockF2D< T > &f) | |
to store functor data, constuctor creates _blockData with functor data | |
~BlockDataF2D () | |
BlockData< 2, T, T > & | getBlockData () |
returns _blockData | |
bool | operator() (T output[], const int input[]) override |
access to _blockData via its get() | |
Public Member Functions inherited from olb::BlockF2D< T > | |
void | setBlockStructure (BlockStructureD< 2 > *blockStructure) |
BlockF2D< T > & | operator- (BlockF2D< T > &rhs) |
BlockF2D< T > & | operator+ (BlockF2D< T > &rhs) |
BlockF2D< T > & | operator* (BlockF2D< T > &rhs) |
BlockF2D< T > & | operator/ (BlockF2D< T > &rhs) |
Public Member Functions inherited from olb::GenericF< T, int > | |
virtual | ~GenericF ()=default |
int | getSourceDim () const |
read only access to member variable _m | |
int | getTargetDim () const |
read only access to member variable _n | |
std::string & | getName () |
read and write access to name | |
std::string const & | getName () const |
read only access to name | |
virtual bool | operator() (T output[], const int input[])=0 |
has to be implemented for 'every' derived class | |
bool | operator() (T output[]) |
wrapper that call the pure virtual operator() (T output[], const S input[]) from above | |
bool | operator() (T output[], int input0) |
bool | operator() (T output[], int input0, int input1) |
bool | operator() (T output[], int input0, int input1, int input2) |
bool | operator() (T output[], int input0, int input1, int input2, int input3) |
Additional Inherited Members | |
Public Types inherited from olb::GenericF< T, int > | |
using | targetType |
using | sourceType |
Public Attributes inherited from olb::GenericF< T, int > | |
std::shared_ptr< GenericF< T, int > > | _ptrCalcC |
memory management, frees resouces (calcClass) | |
Protected Member Functions inherited from olb::BlockDataF2D< T, T > | |
BlockDataF2D (int nx, int ny, int size=1) | |
Protected Member Functions inherited from olb::BlockF2D< T > | |
BlockF2D (BlockStructureD< 2 > &blockStructure, int targetDim) | |
BlockF2D (int targetDim) | |
Protected Member Functions inherited from olb::GenericF< T, int > | |
GenericF (int targetDim, int sourceDim) | |
Protected Attributes inherited from olb::BlockDataF2D< T, T > | |
BlockData< 2, T, T > * | _blockData |
bool | _owning |
Protected Attributes inherited from olb::BlockF2D< T > | |
BlockStructureD< 2 > * | _blockStructure |
BlockReduction2D2D interpolates the data of a SuperF2D functor in a given resolution.
This is primarily used for exporting GIF images via BlockGifWriter.
Definition at line 47 of file blockReduction2D2D.h.
olb::BlockReduction2D2D< T >::BlockReduction2D2D | ( | FunctorPtr< SuperF2D< T > > && | f, |
int | resolution = 600, | ||
BlockDataSyncMode | mode = BlockDataSyncMode::ReduceAndBcast ) |
Definition at line 68 of file blockReduction2D2D.hh.
References olb::GenericF< T, int >::getName(), olb::BlockReduction2D2D< T >::initialize(), and olb::BlockReduction2D2D< T >::update().
|
overridevirtual |
Overload of virtual function from class BlockF2D.
Reimplemented from olb::BlockF2D< T >.
Definition at line 193 of file blockReduction2D2D.hh.
Vector< T, 2 > olb::BlockReduction2D2D< T >::getPhysR | ( | const int & | iX, |
const int & | iY ) const |
Transform lattice coordinates to their physical location.
Definition at line 94 of file blockReduction2D2D.hh.
HyperplaneLattice3D< T > olb::BlockReduction2D2D< T >::getPlaneDiscretizationIn3D | ( | ) | const |
Returns embedding of the discretized plane in 3D space.
i.e. span vectors are X, Y unit vectors. Origin, spacing and resolution is exposed.
Required for dimension agnostic implementation of GnuplotHeatMap<T>
Definition at line 103 of file blockReduction2D2D.hh.
void olb::BlockReduction2D2D< T >::initialize | ( | ) |
Initialize rank-local list of points to be stored in _blockData.
Definition at line 113 of file blockReduction2D2D.hh.
References olb::CuboidGeometry2D< T >::getC(), and olb::LoadBalancer< T >::isLocal().
void olb::BlockReduction2D2D< T >::update | ( | ) |
Updates and writes the data to _blockData using _rankLocalSubplane.
Definition at line 138 of file blockReduction2D2D.hh.
References olb::singleton::MpiManager::bCast(), olb::singleton::mpi(), olb::None, olb::singleton::MpiManager::reduce(), olb::ReduceAndBcast, and olb::ReduceOnly.