40 explicit MshWriter(
const std::string &filename,
const std::string &compress_type =
"");
52 void appendNodes(
const std::vector<util::Point> *nodes,
53 const std::vector<util::Point> *u =
nullptr);
63 void appendMesh(
const std::vector<util::Point> *nodes,
64 const size_t &element_type,
65 const std::vector<size_t> *en_con,
66 const std::vector<util::Point> *u =
nullptr);
81 const std::vector<uint8_t> *
data);
89 const std::vector<size_t> *
data);
111 const std::vector<double> *
data);
119 const std::vector<util::Point> *
data);
128 const std::vector<util::SymMatrix3> *
data);
150 const std::vector<util::SymMatrix3> *
data);
201 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.