11#ifndef RW_LEGACY_VTKWRITER_H
12#define RW_LEGACY_VTKWRITER_H
38 explicit LegacyVtkWriter(
const std::string &filename,
const std::string &compress_type =
"");
49 void appendNodes(
const std::vector<util::Point> *nodes);
56 void appendNodes(
const std::vector<util::Point> *nodes,
57 const std::vector<util::Point> *u);
67 void appendMesh(
const std::vector<util::Point> *nodes,
68 const size_t &element_type,
69 const std::vector<size_t> *en_con,
70 const std::vector<util::Point> *u =
nullptr);
85 const std::vector<uint8_t> *data);
93 const std::vector<size_t> *data);
100 void appendPointData(
const std::string &name,
const std::vector<int> *data);
107 void appendPointData(
const std::string &name,
const std::vector<float> *data);
115 const std::vector<double> *data);
123 const std::vector<util::Point> *data);
132 const std::vector<util::SymMatrix3> *data);
146 void appendCellData(
const std::string &name,
const std::vector<float> *data);
154 const std::vector<util::SymMatrix3> *data);
A vtk writer for simple point data and complex fem mesh data.
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.
std::string d_filename
filename
std::ofstream d_file
vtk/vtu file
void appendFieldData(const std::string &name, const double &data)
Writes the scalar field data to the file.
void appendPointData(const std::string &name, const std::vector< uint8_t > *data)
Writes the scalar point data to the file.
void addTimeStep(const double ×tep)
Writes the time step to the file.
void appendNodes(const std::vector< util::Point > *nodes)
Writes the nodes to the file.
std::string d_compressType
compression_type Specify the compressor (if any)
void close()
Closes the file and store it to the hard disk.
void appendCellData(const std::string &name, const std::vector< float > *data)
Writes the float data associated to cells to the file.
Collection of methods and database related to reading and writing.