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>
40 auto const& elements =
_mesh.getElements();
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};
54 return _mesh.getProperties().getPropertyVectorNames();
59 auto const& properties =
_mesh.getProperties();
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)
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