35 explicit MshWriter(
const std::string &filename,
const std::string &compress_type =
"");
47 void appendNodes(
const std::vector<util::Point> *nodes,
48 const std::vector<util::Point> *u =
nullptr);
58 void appendMesh(
const std::vector<util::Point> *nodes,
59 const size_t &element_type,
60 const std::vector<size_t> *en_con,
61 const std::vector<util::Point> *u =
nullptr);
76 const std::vector<uint8_t> *data);
84 const std::vector<size_t> *data);
91 void appendPointData(
const std::string &name,
const std::vector<int> *data);
98 void appendPointData(
const std::string &name,
const std::vector<float> *data);
106 const std::vector<double> *data);
114 const std::vector<util::Point> *data);
123 const std::vector<util::SymMatrix3> *data);
137 void appendCellData(
const std::string &name,
const std::vector<float> *data);
145 const std::vector<util::SymMatrix3> *data);
196 size_t num_data,
bool is_node_data =
true);
A .msh writer for simple point data and complex fem mesh data.
std::string d_compressType
compression_type Specify the compressor (if any)
void addTimeStep(const double ×tep)
Writes the time step to the file.
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.
void writeMshDataHeader(const std::string &name, int field_type, size_t num_data, bool is_node_data=true)
utility function
void appendFieldData(const std::string &name, const double &data)
Writes the scalar field data to the file.
void close()
Closes the file and store it to the hard disk.
void appendNodes(const std::vector< util::Point > *nodes, const std::vector< util::Point > *u=nullptr)
Writes the nodes to the file.
void appendPointData(const std::string &name, const std::vector< uint8_t > *data)
Writes the scalar point data to the file.
void appendCellData(const std::string &name, const std::vector< float > *data)
Writes the float data associated to cells to the file.
std::string d_filename
filename
Collection of methods and database related to reading and writing.