15#include <pybind11/eigen.h>
16#include <pybind11/pybind11.h>
17#include <pybind11/stl.h>
18#include <spdlog/spdlog.h>
20#include <range/v3/view/join.hpp>
41 std::vector<int> cells;
42 std::vector<int> cell_types;
43 for (
auto const* element : elements)
46 std::back_inserter(cells));
49 return {cells, cell_types};
63 [&name](
auto const& p) {
return p.first == name; },
66 OGS_FATAL(
"A property with the name '{}' doesn't exist in the mesh",
69 return found.second->getMeshItemType();
Definition of the Element class.
Definition of the Node class.
int OGSToVtkCellType(MeshLib::CellType ogs)
std::vector< Node * > const & getNodes() const
Get the nodes-vector for the mesh.
std::vector< Element * > const & getElements() const
Get the element-vector for the mesh.
Properties & getProperties()
std::vector< std::string > getPropertyVectorNames() const
MeshLib::MeshItemType meshItemType(std::string_view const name) const
std::vector< double > getPointCoordinates() const
std::vector< std::string > getDataArrayNames() const
OGSMesh(MeshLib::Mesh &mesh)
std::pair< std::vector< int >, std::vector< int > > getCells() const
ranges::range_reference_t< Range > findElementOrError(Range &range, std::predicate< ranges::range_reference_t< Range > > auto &&predicate, std::invocable auto error_callback)
constexpr ranges::views::view_closure ids
For an element of a range view return its id.
constexpr ranges::views::view_closure coords