24#ifndef VTU_POINT_WRITER_H
25#define VTU_POINT_WRITER_H
35template <
typename T,
typename W,
int dim>
38template<
typename T,
typename W>
44 std::vector<Vector<T,2>>
pos;
49 void preamblePVD(
const std::string& fullNamePVD);
51 void closePVD(
const std::string& fullNamePVD);
53 void preambleVTU(
const std::string& fullName,
int num);
55 void closeVTU(
const std::string& fullNamePiece);
57 void dataPVD(
int iT,
int i,
const std::string& fullNamePVD,
58 const std::string& namePiece);
60 void dataPVDmaster(
int iT,
int i,
const std::string& fullNamePVDMaster,
61 const std::string& namePiece);
62 void dataArray(
const std::string& fullName );
64 void writeFunctor(
const std::string& fullName, std::ofstream& fout ,
SuperF2D<T,W>& f );
65 void writeAnalyticalFunctor(
const std::string& fullName, std::ofstream& fout ,
AnalyticalF2D<T,W>& f );
67 void writePosition( std::ofstream& fout );
73 void createMasterFile();
87template<
typename T,
typename W>
93 std::vector<Vector<T,3>>
pos;
98 void preamblePVD(
const std::string& fullNamePVD);
100 void closePVD(
const std::string& fullNamePVD);
102 void preambleVTU(
const std::string& fullName,
int num);
104 void closeVTU(
const std::string& fullNamePiece);
106 void dataPVD(
int iT,
int i,
const std::string& fullNamePVD,
107 const std::string& namePiece);
109 void dataPVDmaster(
int iT,
int i,
const std::string& fullNamePVDMaster,
110 const std::string& namePiece);
111 void dataArray(
const std::string& fullName );
113 void writeFunctor(
const std::string& fullName, std::ofstream& fout ,
SuperF3D<T,W>& f );
114 void writeAnalyticalFunctor(
const std::string& fullName, std::ofstream& fout ,
AnalyticalF3D<T,W>& f );
116 void writePosition( std::ofstream& fout );
120 bool binary =
false);
122 void createMasterFile();
129 void addFunctor(
SuperF3D<T,W>& f,
const std::string& name );
133 void addPoints( std::vector<
Vector<T,3>>& new_positions );
AnalyticalF are applications from DD to XD, where X is set by the constructor.
class for marking output with some text
represents all functors that operate on a SuperStructure<T,2> in general
represents all functors that operate on a SuperStructure<T,3> in general
void write(std::size_t iT, std::vector< Vector< T, 2 > > &new_positions)
write function to call during runtime, also accepts additional points during call
std::vector< SuperF2D< T, W > * > functors
void write(std::size_t iT)
std::vector< AnalyticalF2D< T, W > * > functorsA
std::vector< Vector< T, 2 > > pos
std::vector< AnalyticalF3D< T, W > * > functorsA
std::vector< Vector< T, 3 > > pos
void write(std::size_t iT, std::vector< Vector< T, 3 > > &new_positions)
write function to call during runtime, also accepts additional points during call
void write(std::size_t iT)
std::vector< SuperF3D< T, W > * > functors
Top level namespace for all of OpenLB.
efficient implementation of a vector class