#include <OGSMesh.h>
Public Member Functions | |
OGSMesh (MeshLib::Mesh &mesh) | |
std::vector< double > | getPointCoordinates () const |
std::pair< std::vector< int >, std::vector< int > > | getCells () const |
std::vector< std::string > | getDataArrayNames () const |
MeshLib::MeshItemType | meshItemType (std::string_view const name) const |
template<typename T > | |
pybind11::array & | dataArray (std::string const &name) |
pybind11::object | dataArray_dispatch (std::string const &name, std::string const &dtype) |
Private Attributes | |
MeshLib::Mesh & | _mesh |
std::map< std::string, pybind11::array > | data_array_mapping |
|
explicit |
Definition at line 30 of file OGSMesh.cpp.
|
inline |
Definition at line 33 of file OGSMesh.h.
|
inline |
Definition at line 117 of file OGSMesh.h.
Referenced by PYBIND11_MODULE().
std::pair< std::vector< int >, std::vector< int > > OGSMesh::getCells | ( | ) | const |
Definition at line 38 of file OGSMesh.cpp.
References _mesh, MeshLib::Mesh::getElements(), MeshLib::views::ids, and OGSToVtkCellType().
Referenced by PYBIND11_MODULE().
std::vector< std::string > OGSMesh::getDataArrayNames | ( | ) | const |
Definition at line 52 of file OGSMesh.cpp.
References _mesh, MeshLib::Mesh::getProperties(), and MeshLib::Properties::getPropertyVectorNames().
Referenced by PYBIND11_MODULE().
std::vector< double > OGSMesh::getPointCoordinates | ( | ) | const |
Definition at line 32 of file OGSMesh.cpp.
References _mesh, MeshLib::views::coords, and MeshLib::Mesh::getNodes().
Referenced by PYBIND11_MODULE().
MeshLib::MeshItemType OGSMesh::meshItemType | ( | std::string_view const | name | ) | const |
Definition at line 57 of file OGSMesh.cpp.
References _mesh, BaseLib::findElementOrError(), MeshLib::Mesh::getProperties(), and OGS_FATAL.
Referenced by PYBIND11_MODULE().
|
private |
Definition at line 149 of file OGSMesh.h.
Referenced by getCells(), getDataArrayNames(), getPointCoordinates(), and meshItemType().
|
private |