63 explicit Writer(
const std::string &filename,
const std::string &format =
64 "vtu",
const std::string &compress_type =
"");
76 void open(
const std::string &filename,
const std::string &format =
"vtu",
77 const std::string &compress_type =
"");
89 void appendNodes(
const std::vector<util::Point> *nodes,
90 const std::vector<util::Point> *u =
nullptr);
100 void appendMesh(
const std::vector<util::Point> *nodes,
101 const size_t &element_type,
102 const std::vector<size_t> *en_con,
103 const std::vector<util::Point> *u =
nullptr);
118 const std::vector<uint8_t> *data);
126 const std::vector<size_t> *data);
133 void appendPointData(
const std::string &name,
const std::vector<int> *data);
140 void appendPointData(
const std::string &name,
const std::vector<float> *data);
148 const std::vector<double> *data);
156 const std::vector<util::Point> *data);
165 const std::vector<util::SymMatrix3> *data);
179 void appendCellData(
const std::string &name,
const std::vector<float> *data);
187 const std::vector<util::SymMatrix3> *data);
A vtk writer for simple point data and complex fem mesh data.
A .msh writer for simple point data and complex fem mesh data.
A vtk writer for simple point data and complex fem mesh data.
A interface class writing data.
void appendCellData(const std::string &name, const std::vector< float > *data)
Writes the float data associated to cells to the file.
rw::writer::MshWriter * d_mshWriter_p
Pointer to the vtk writer class.
void appendFieldData(const std::string &name, const double &data)
Writes the scalar field data to the file.
void appendNodes(const std::vector< util::Point > *nodes, const std::vector< util::Point > *u=nullptr)
Writes the nodes to the file.
void addTimeStep(const double ×tep)
Writes the time step to the file.
void appendPointData(const std::string &name, const std::vector< uint8_t > *data)
Writes the scalar point data to the file.
std::string d_format
Format of output file.
void open(const std::string &filename, const std::string &format="vtu", const std::string &compress_type="")
Open a .vtu file.
void close()
Closes the file and store it to the hard disk.
rw::writer::VtkWriter * d_vtkWriter_p
Pointer to the vtk writer class.
void appendMesh(const std::vector< util::Point > *nodes, const size_t &element_type, const std::vector< size_t > *en_con, const std::vector< util::Point > *u=nullptr)
Writes the mesh data to file.
rw::writer::LegacyVtkWriter * d_legacyVtkWriter_p
Pointer to the vtk writer class.
Collection of methods and database related to reading and writing.