24#ifndef BLOCK_REDUCTION_2D2D_H
25#define BLOCK_REDUCTION_2D2D_H
54 std::vector<std::tuple<int,int,int>> _rankLocalSubplane;
65 void updateToWantedResolution(
int resolution);
BlockDataF2D can store data of any BlockFunctor2D.
BlockReduction2D2D interpolates the data of a SuperF2D functor in a given resolution.
void initialize()
Initialize rank-local list of points to be stored in _blockData.
HyperplaneLattice3D< T > getPlaneDiscretizationIn3D() const
Returns embedding of the discretized plane in 3D space.
void update()
Updates and writes the data to _blockData using _rankLocalSubplane.
Vector< T, 2 > getPhysR(const int &iX, const int &iY) const
Transform lattice coordinates to their physical location.
BlockReduction2D2D(FunctorPtr< SuperF2D< T > > &&f, int resolution=600, BlockDataSyncMode mode=BlockDataSyncMode::ReduceAndBcast)
BlockStructureD< 2 > & getBlockStructure() override
Overload of virtual function from class BlockF2D.
Smart pointer for managing the various ways of passing functors around.
Parametrization of a hyperplane lattice.
represents all functors that operate on a SuperStructure<T,2> in general
Top level namespace for all of OpenLB.
BlockDataSyncMode
Mode of synchronizing functor block data between processes.
@ ReduceAndBcast
default behavior, full block data available on all ranks after update
efficient implementation of a vector class