PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
#include "util/point.h"
#include "util/matrix.h"
#include <cstdint>
#include <cstring>
#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | rw |
Collection of methods and database related to reading and writing. | |
namespace | rw::reader |
Collection of methods and database related to reading. | |
Functions | |
CSV specific functions | |
void | rw::reader::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 | rw::reader::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 | rw::reader::readParticleCsvFile (const std::string &filename, size_t dim, std::vector< util::Point > *nodes, std::vector< double > *rads, const size_t &zone) |
Reads particles center location, radius, and zone id. | |
void | rw::reader::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 orientation of particles. | |
VTU specific functions | |
void | rw::reader::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 | rw::reader::readVtuFileNodes (const std::string &filename, size_t dim, std::vector< util::Point > *nodes, bool ref_config=false) |
Reads nodal coordinates. | |
void | rw::reader::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. | |
void | rw::reader::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. | |
bool | rw::reader::readVtuFilePointData (const std::string &filename, const std::string &tag, std::vector< uint8_t > *data) |
Reads data of specified tag from the vtu file. | |
bool | rw::reader::readVtuFilePointData (const std::string &filename, const std::string &tag, std::vector< size_t > *data) |
Reads data of specified tag from the vtu file. | |
bool | rw::reader::readVtuFilePointData (const std::string &filename, const std::string &tag, std::vector< int > *data) |
Reads data of specified tag from the vtu file. | |
bool | rw::reader::readVtuFilePointData (const std::string &filename, const std::string &tag, std::vector< float > *data) |
Reads data of specified tag from the vtu file. | |
bool | rw::reader::readVtuFilePointData (const std::string &filename, const std::string &tag, std::vector< double > *data) |
Reads data of specified tag from the vtu file. | |
bool | rw::reader::readVtuFilePointData (const std::string &filename, const std::string &tag, std::vector< util::Point > *data) |
Reads data of specified tag from the vtu file. | |
bool | rw::reader::readVtuFilePointData (const std::string &filename, const std::string &tag, std::vector< util::SymMatrix3 > *data) |
Reads data of specified tag from the vtu file. | |
bool | rw::reader::readVtuFilePointData (const std::string &filename, const std::string &tag, std::vector< util::Matrix3 > *data) |
Reads data of specified tag from the vtu file. | |
bool | rw::reader::readVtuFileCellData (const std::string &filename, const std::string &tag, std::vector< float > *data) |
Reads data of specified tag from the vtu file. | |
bool | rw::reader::readVtuFileCellData (const std::string &filename, const std::string &tag, std::vector< double > *data) |
Reads data of specified tag from the vtu file. | |
bool | rw::reader::readVtuFileCellData (const std::string &filename, const std::string &tag, std::vector< util::Point > *data) |
Reads data of specified tag from the vtu file. | |
bool | rw::reader::readVtuFileCellData (const std::string &filename, const std::string &tag, std::vector< util::SymMatrix3 > *data) |
Reads data of specified tag from the vtu file. | |
bool | rw::reader::readVtuFileCellData (const std::string &filename, const std::string &tag, std::vector< util::Matrix3 > *data) |
Reads data of specified tag from the vtu file. | |
MSH specific functions | |
void | rw::reader::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. | |
void | rw::reader::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. | |
bool | rw::reader::readMshFilePointData (const std::string &filename, const std::string &tag, std::vector< double > *data) |
Reads data of specified tag from the vtu file. | |
void | rw::reader::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. | |