39 explicit VtkReader(
const std::string &filename);
53 void readMesh(
size_t dim, std::vector<util::Point> *nodes,
54 size_t &element_type,
size_t &num_elems,
55 std::vector<size_t> *enc, std::vector<std::vector<size_t>> *nec,
56 std::vector<double> *volumes,
bool is_fd =
false);
63 void readNodes(std::vector<util::Point> *nodes);
73 void readCells(
size_t dim,
size_t &element_type,
74 size_t &num_elems, std::vector<size_t> *enc,
75 std::vector<std::vector<size_t>> *nec);
83 bool readPointData(
const std::string &name, std::vector<uint8_t> *data);
86 bool readPointData(
const std::string &name, std::vector<size_t> *data);
89 bool readPointData(
const std::string &name, std::vector<int> *data);
92 bool readPointData(
const std::string &name, std::vector<float> *data);
95 bool readPointData(
const std::string &name, std::vector<double> *data);
98 bool readPointData(
const std::string &name, std::vector<util::Point> *data);
101 bool readPointData(
const std::string &name, std::vector<util::SymMatrix3> *data);
105 std::vector<util::Matrix3> *data);
113 bool readCellData(
const std::string &name, std::vector<float> *data);
116 bool readCellData(
const std::string &name, std::vector<double> *data);
119 bool readCellData(
const std::string &name, std::vector<util::Point> *data);
122 bool readCellData(
const std::string &name, std::vector<util::SymMatrix3> *data);
125 bool readCellData(
const std::string &name, std::vector<util::Matrix3> *data);
void readMesh(size_t dim, std::vector< util::Point > *nodes, size_t &element_type, size_t &num_elems, std::vector< size_t > *enc, std::vector< std::vector< size_t > > *nec, std::vector< double > *volumes, bool is_fd=false)
Reads mesh data into node file and element file.
void readCells(size_t dim, size_t &element_type, size_t &num_elems, std::vector< size_t > *enc, std::vector< std::vector< size_t > > *nec)
Reads cell data, i.e. element-node connectivity and node-element connectivity.