48void readCsvFile(
const std::string &filename,
size_t dim,
49 std::vector<util::Point> *nodes,
50 std::vector<double> *volumes);
61 std::vector<util::Point> *nodes,
62 std::vector<double> *rads,
63 std::vector<size_t> *zones);
74 std::vector<util::Point> *nodes,
75 std::vector<double> *rads,
88 std::vector<util::Point> *nodes,
89 std::vector<double> *rads,
90 std::vector<double> *orients,
113void readVtuFile(
const std::string &filename,
size_t dim,
114 std::vector<util::Point> *nodes,
size_t &element_type,
115 size_t &num_elem, std::vector<size_t> *enc,
116 std::vector<std::vector<size_t>> *nec,
117 std::vector<double> *volumes,
bool is_fd =
false);
129 std::vector<util::Point> *nodes,
bool
142 size_t &element_type,
size_t &num_elem,
143 std::vector<size_t> *enc,
144 std::vector<std::vector<size_t>> *nec);
154 std::vector<util::Point> *u,
155 std::vector<util::Point> *v,
156 const std::vector<util::Point> *X =
nullptr);
166 const std::string &tag,
167 std::vector<uint8_t> *data);
177 const std::string &tag,
178 std::vector<size_t> *data);
188 const std::string &tag,
189 std::vector<int> *data);
199 const std::string &tag,
200 std::vector<float> *data);
210 const std::string &tag,
211 std::vector<double> *data);
221 const std::string &tag,
222 std::vector<util::Point> *data);
232 const std::string &tag,
233 std::vector<util::SymMatrix3> *data);
243 const std::string &tag,
244 std::vector<util::Matrix3> *data);
254 const std::string &tag,
255 std::vector<float> *data);
265 const std::string &tag,
266 std::vector<double> *data);
276 const std::string &tag,
277 std::vector<util::Point> *data);
287 const std::string &tag,
288 std::vector<util::SymMatrix3> *data);
298 const std::string &tag,
299 std::vector<util::Matrix3> *data);
321void readMshFile(
const std::string &filename,
size_t dim,
322 std::vector<util::Point> *nodes,
size_t &element_type,
323 size_t &num_elem, std::vector<size_t> *enc,
324 std::vector<std::vector<size_t>> *nec,
325 std::vector<double> *volumes,
bool is_fd =
false);
335 std::vector<util::Point> *u,
336 std::vector<util::Point> *v,
337 const std::vector<util::Point> *X =
nullptr);
347 const std::string &tag,
348 std::vector<double> *data);
360 size_t &element_type,
size_t &num_elem,
361 std::vector<size_t> *enc,
362 std::vector<std::vector<size_t>> *nec);
bool readMshFilePointData(const std::string &filename, const std::string &tag, std::vector< double > *data)
Reads data of specified tag from the vtu file.
void readMshFileRestart(const std::string &filename, std::vector< util::Point > *u, std::vector< util::Point > *v, const std::vector< util::Point > *X=nullptr)
Reads mesh data into node file and element file.
void readVtuFileRestart(const std::string &filename, std::vector< util::Point > *u, std::vector< util::Point > *v, const std::vector< util::Point > *X=nullptr)
Reads mesh data into node file and element file.
void readVtuFileCells(const std::string &filename, size_t dim, size_t &element_type, size_t &num_elem, std::vector< size_t > *enc, std::vector< std::vector< size_t > > *nec)
Reads cell data, i.e. element-node connectivity and node-element connectivity.
bool readVtuFileCellData(const std::string &filename, const std::string &tag, std::vector< float > *data)
Reads data of specified tag from the vtu file.
void readParticleWithOrientCsvFile(const std::string &filename, size_t dim, std::vector< util::Point > *nodes, std::vector< double > *rads, std::vector< double > *orients, const size_t &zone)
Reads particles center location, radius, and zone id. In this case, file also provides initial orient...
void readParticleCsvFile(const std::string &filename, size_t dim, std::vector< util::Point > *nodes, std::vector< double > *rads, std::vector< size_t > *zones)
Reads particles center location, radius, and zone id.
void readVtuFile(const std::string &filename, size_t dim, std::vector< util::Point > *nodes, size_t &element_type, size_t &num_elem, 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 readMshFileCells(const std::string &filename, size_t dim, size_t &element_type, size_t &num_elem, std::vector< size_t > *enc, std::vector< std::vector< size_t > > *nec)
Reads cell data, i.e. element-node connectivity and node-element connectivity.
bool readVtuFilePointData(const std::string &filename, const std::string &tag, std::vector< uint8_t > *data)
Reads data of specified tag from the vtu file.
void readVtuFileNodes(const std::string &filename, size_t dim, std::vector< util::Point > *nodes, bool ref_config=false)
Reads nodal coordinates.
void readCsvFile(const std::string &filename, size_t dim, std::vector< util::Point > *nodes, std::vector< double > *volumes)
Reads mesh data into node file and element file.
void readMshFile(const std::string &filename, size_t dim, std::vector< util::Point > *nodes, size_t &element_type, size_t &num_elem, 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.
Collection of methods and database related to reading and writing.