55template<
typename T,
typename FUNCTOR, vtkType VTKTYPE>
58 static constexpr bool parallel = FUNCTOR::isSuper;
59 static constexpr unsigned D = FUNCTOR::d;
61 VTKwriter(
const std::string & name,
bool binary=
true,
bool compress=
true );
67 void addFunctor(FUNCTOR& f,
const std::string& functorName);
74 template<
bool vtmAsMaster,
typename F>
75 void write(
int iT, std::string nameCollection, F applyFunctors);
76 void write(
int iT = 0);
77 void write(FUNCTOR& f,
int iT = 0);
78 void write(std::shared_ptr<FUNCTOR> ptr_f,
int iT = 0);
87 void dataPVD(
int iT,
const std::string& fullNamePVD,
88 const std::string& namePiece);
90 void closePVD(
const std::string& fullNamePVD);
95 void closeVTM(
const std::string& fullNameVTM);
98 void dataVTM(
int iC,
const std::string& fullNameVTM,
const std::string& namePiece);
100 template<
bool vtmAsMaster=false>
101 void writeVTM(
int iT,
int rankSize, std::string fileExtension, std::string nameCollection);
105 void closeVTU(
const std::string& fullNamePiece);
114 void closeVTI(
const std::string& fullNamePiece);
116 void closePiece(
const std::string& fullNamePiece);
120 template<
unsigned sourceDim>
124 template<
unsigned sourceDim>
133 std::string
const _name;
135 std::vector<FUNCTOR*> _pointerVec;
144template<
typename T,
typename DESCRIPTOR,
bool parallel=true>
147 typename std::conditional_t<
156template<
typename T,
typename DESCRIPTOR>
ContainerF is a NON-PARALLELIZED (no block/super differentiation) functor intended to extract data fr...
class for marking output with some text
represents all functors that operate on a SuperStructure<T,3> in general
void closeVTI(const std::string &fullNamePiece)
performes </ImageData> and </VTKFile>
void dataArraySingleFunctor(const std::string &fullName, FUNCTOR &f, Vector< int, sourceDim > extent1, int iC=0)
writes functors stored at pointerVec
void closeVTU(const std::string &fullNamePiece)
performes </ImageData> and </VTKFile>
void preambleVTM(const std::string &fullNameVTM)
performes <VTKFile ...> and <Collection>
VTKwriter(const std::string &name, bool binary=true, bool compress=true)
constructor
void preamblePVD(const std::string &fullNamePVD)
performes <VTKFile ...> and <Collection>
void createMasterFile()
have to be called before calling write(int iT=0), since it creates
void closeVTM(const std::string &fullNameVTM)
performes </Collection> and </VTKFile>
static constexpr unsigned D
void dataVTM(int iC, const std::string &fullNameVTM, const std::string &namePiece)
performes <DataSet timestep= ... file=namePiece > used for linking vti into pvd files
void dataArrayPoints(const std::string &fullName, Vector< int, sourceDim > extent1, int iC=0)
writes points necessary for VTU
void write(int iT, std::string nameCollection, F applyFunctors)
to clear stored functors, not yet used due to lack of necessity
void closePiece(const std::string &fullNamePiece)
performes </PointData> and </Piece>
void preambleVTU(const std::string &fullName, Vector< int, 1 > extent1)
performes <VTKFile ...>, <ImageData ...> and <PieceExtent ...>
void preambleVTI(const std::string &fullName, const LatticeR< D > extent0, const LatticeR< D > extent1, PhysR< T, D > origin, T delta)
performes <VTKFile ...>, <ImageData ...>, <PieceExtent ...> and <PointData ...>
void closePVD(const std::string &fullNamePVD)
performes </Collection> and </VTKFile>
static constexpr bool parallel
void cellDataVTU(const std::string &fullName, Vector< int, 1 > extent1)
TODO: add description: connectivity, offsete, type of unscructured nodes.
void addFunctor(FUNCTOR &f)
put functor to _pointerVec to simplify writing process of several functors
void writeVTM(int iT, int rankSize, std::string fileExtension, std::string nameCollection)
wrapper for VTM file creation
void dataPVD(int iT, const std::string &fullNamePVD, const std::string &namePiece)
performes <DataSet timestep= ... file=namePiece >
Top level namespace for all of OpenLB.