6#include <pybind11/eigen.h>
7#include <pybind11/pybind11.h>
8#include <pybind11/stl.h>
9#include <spdlog/spdlog.h>
11#include <range/v3/view/join.hpp>
31 auto const& elements =
_mesh.getElements();
32 std::vector<int> cells;
33 std::vector<int> cell_types;
34 for (
auto const* element : elements)
37 std::back_inserter(cells));
40 return {cells, cell_types};
45 return _mesh.getProperties().getPropertyVectorNames();
50 auto const& properties =
_mesh.getProperties();
54 [&name](
auto const& p) {
return p.first == name; },
57 OGS_FATAL(
"A property with the name '{}' doesn't exist in the mesh",
60 return found.second->getMeshItemType();
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