OGS
|
#include <OGSMesh.h>
Public Member Functions | |
OGSMesh (MeshLib::Mesh &mesh) | |
std::vector< double > | getPointCoordinates () const |
void | setPointDataArray (std::string const &name, std::vector< double > const &values, std::size_t const number_of_components) |
std::vector< double > | getPointDataArray (std::string const &name, std::size_t const number_of_components=1) const |
std::pair< std::vector< int >, std::vector< int > > | getCells () const |
void | setCellDataArray (std::string const &name, std::vector< double > const &values, std::size_t const number_of_components) |
std::vector< double > | getCellDataArray (std::string const &name, std::size_t const number_of_components) const |
Private Attributes | |
MeshLib::Mesh & | _mesh |
|
explicit |
Definition at line 42 of file OGSMesh.cpp.
std::vector< double > OGSMesh::getCellDataArray | ( | std::string const & | name, |
std::size_t const | number_of_components ) const |
Definition at line 116 of file OGSMesh.cpp.
References _mesh, MeshLib::Cell, MeshLib::getOrCreateMeshProperty(), and OGS_FATAL.
Referenced by PYBIND11_MODULE().
std::pair< std::vector< int >, std::vector< int > > OGSMesh::getCells | ( | ) | const |
Definition at line 50 of file OGSMesh.cpp.
References _mesh, MeshLib::Mesh::getElements(), MeshLib::views::ids, and OGSToVtkCellType().
Referenced by PYBIND11_MODULE().
std::vector< double > OGSMesh::getPointCoordinates | ( | ) | const |
Definition at line 44 of file OGSMesh.cpp.
References _mesh, MeshLib::views::coords, and MeshLib::Mesh::getNodes().
Referenced by PYBIND11_MODULE().
std::vector< double > OGSMesh::getPointDataArray | ( | std::string const & | name, |
std::size_t const | number_of_components = 1 ) const |
Definition at line 84 of file OGSMesh.cpp.
References _mesh, MeshLib::getOrCreateMeshProperty(), MeshLib::Node, and OGS_FATAL.
Referenced by PYBIND11_MODULE().
void OGSMesh::setCellDataArray | ( | std::string const & | name, |
std::vector< double > const & | values, | ||
std::size_t const | number_of_components ) |
Definition at line 96 of file OGSMesh.cpp.
References _mesh, MeshLib::Cell, MeshLib::getOrCreateMeshProperty(), and OGS_FATAL.
Referenced by PYBIND11_MODULE().
void OGSMesh::setPointDataArray | ( | std::string const & | name, |
std::vector< double > const & | values, | ||
std::size_t const | number_of_components ) |
Definition at line 64 of file OGSMesh.cpp.
References _mesh, MeshLib::getOrCreateMeshProperty(), MeshLib::Node, and OGS_FATAL.
Referenced by PYBIND11_MODULE().
|
private |
Definition at line 46 of file OGSMesh.h.
Referenced by getCellDataArray(), getCells(), getPointCoordinates(), getPointDataArray(), setCellDataArray(), and setPointDataArray().