29#ifndef SUPER_VTM_WRITER_2D_H
30#define SUPER_VTM_WRITER_2D_H
50template<
typename T,
typename OUT_T=
float,
typename W=T>
51class SuperVTMwriter2D {
58 void write(std::vector<T> rMin, std::vector<T> rMax,
int iT=0);
60 void write(SuperF2D<T,W>& f,
int iT=0);
61 void write(SuperF2D<T,W>& f, std::vector<T> rMin, std::vector<T> rMax,
int iT=0);
62 void write(std::shared_ptr<SuperF2D<T,W>> ptr_f,
int iT=0);
63 void write(std::shared_ptr<SuperF2D<T,W>> ptr_f, std::vector<T> rMin, std::vector<T> rMax,
int iT=0);
72 void addFunctor(SuperF2D<T,W>& f,
const std::string& functorName);
79 void extremes(
int nMinOut[],
int nMaxOut[],
CuboidDecomposition2D<T> const& cGeometry, LoadBalancer<T>& load, std::vector<T> rMin, std::vector<T> rMax,
int iCloc);
81 void preambleVTI(
const std::string& fullName,
int x0,
int y0,
int x1,
int y1,
82 T originX, T originY, T delta);
84 void closeVTI(
const std::string& fullNamePiece);
86 void preamblePVD(
const std::string& fullNamePVD);
88 void closePVD(
const std::string& fullNamePVD);
90 void preambleVTM(
const std::string& fullNamePVD);
92 void closeVTM(
const std::string& fullNamePVD);
95 void dataVTM(
int iC,
const std::string& fullNamePVD,
const std::string& namePiece);
98 void dataPVDmaster(
int iT,
const std::string& fullNamePVDMaster,
99 const std::string& namePiece);
101 void dataArray(
const std::string& fullName, SuperF2D<T,W>& f,
102 int iC,
int nxMin,
int nxMax,
int nyMin,
int nyMax);
104 void dataArrayBinary(
const std::string& fullName, SuperF2D<T,W>& f,
105 int iC,
int nxMin,
int nxMax,
int nyMin,
int nyMax);
107 void closePiece(
const std::string& fullNamePiece);
109 mutable OstreamManager clout;
115 std::vector< SuperF2D<T,W>* > _pointerVec;
121template <
typename T,
typename W>
represents all functors that operate on a SuperStructure<T,2> in general
SuperVTMwriter2D writes any SuperF2D to vtk-based output files.
void createMasterFile()
have to be called before calling write(int iT=0), since it creates
void write(int iT=0)
writes functors stored in pointerVec every thread writes a vti file with data from his cuboids the vt...
SuperVTMwriter2D(std::string name, int overlap=1, bool binary=true)
void clearAddedFunctors()
to clear stored functors, not yet used due to lack of necessity
std::string getName() const
getter for _name
void addFunctor(SuperF2D< T, W > &f)
put functor to _pointerVec to simplify writing process of several functors
Top level namespace for all of OpenLB.
CuboidDecomposition< T, 2 > CuboidDecomposition2D
void writeVTK(SuperF2D< T, W > &f, int iT=0)
Write out functor F to VTK file (helper)