Nektar++
Functions
Python/MeshGraph.cpp File Reference
#include <SpatialDomains/MeshGraph.h>
#include <LibUtilities/Python/NekPyConfig.hpp>
#include <boost/python/suite/indexing/map_indexing_suite.hpp>

Go to the source code of this file.

Functions

MeshGraphSharedPtr MeshGraph_Read (const LibUtilities::SessionReaderSharedPtr &session)
 
void export_MeshGraph ()
 MeshGraph exports. More...
 

Function Documentation

◆ export_MeshGraph()

void export_MeshGraph ( )

MeshGraph exports.

Definition at line 55 of file Python/MeshGraph.cpp.

References Nektar::SpatialDomains::MeshGraph::GetAllHexGeoms(), Nektar::SpatialDomains::MeshGraph::GetAllPointGeoms(), Nektar::SpatialDomains::MeshGraph::GetAllPrismGeoms(), Nektar::SpatialDomains::MeshGraph::GetAllPyrGeoms(), Nektar::SpatialDomains::MeshGraph::GetAllQuadGeoms(), Nektar::SpatialDomains::MeshGraph::GetAllSegGeoms(), Nektar::SpatialDomains::MeshGraph::GetAllTetGeoms(), Nektar::SpatialDomains::MeshGraph::GetAllTriGeoms(), Nektar::SpatialDomains::MeshGraph::GetCurvedEdges(), Nektar::SpatialDomains::MeshGraph::GetCurvedFaces(), Nektar::SpatialDomains::MeshGraph::GetMeshDimension(), Nektar::SpatialDomains::MeshGraph::GetNumElements(), MeshGraph_Read(), Nektar::SpatialDomains::MeshGraph::SetExpansionsToEvenlySpacedPoints(), Nektar::SpatialDomains::MeshGraph::SetExpansionsToPointOrder(), and Nektar::SpatialDomains::MeshGraph::SetExpansionsToPolyOrder().

Referenced by BOOST_PYTHON_MODULE().

56 {
57  py::class_<PointGeomMap>("PointGeomMap")
58  .def(py::map_indexing_suite<PointGeomMap, true>());
59  py::class_<SegGeomMap>("SegGeomMap")
60  .def(py::map_indexing_suite<SegGeomMap, true>());
61  py::class_<QuadGeomMap>("QuadGeomMap")
62  .def(py::map_indexing_suite<QuadGeomMap, true>());
63  py::class_<TriGeomMap>("TriGeomMap")
64  .def(py::map_indexing_suite<TriGeomMap, true>());
65  py::class_<TetGeomMap>("TetGeomMap")
66  .def(py::map_indexing_suite<TetGeomMap, true>());
67  py::class_<PrismGeomMap>("PrismGeomMap")
68  .def(py::map_indexing_suite<PrismGeomMap, true>());
69  py::class_<PyrGeomMap>("PyrGeomMap")
70  .def(py::map_indexing_suite<PyrGeomMap, true>());
71  py::class_<HexGeomMap>("HexGeomMap")
72  .def(py::map_indexing_suite<HexGeomMap, true>());
73  py::class_<CurveMap>("CurveMap")
74  .def(py::map_indexing_suite<CurveMap, true>());
75 
76  py::class_<MeshGraph,
77  std::shared_ptr<MeshGraph>,
78  boost::noncopyable>(
79  "MeshGraph", py::no_init)
80 
81  .def("Read", MeshGraph_Read)
82  .staticmethod("Read")
83 
84  .def("GetMeshDimension", &MeshGraph::GetMeshDimension)
85  .def("GetAllPointGeoms", &MeshGraph::GetAllPointGeoms,
86  py::return_internal_reference<>())
87  .def("GetAllSegGeoms", &MeshGraph::GetAllSegGeoms,
88  py::return_internal_reference<>())
89  .def("GetAllQuadGeoms", &MeshGraph::GetAllQuadGeoms,
90  py::return_internal_reference<>())
91  .def("GetAllTriGeoms", &MeshGraph::GetAllTriGeoms,
92  py::return_internal_reference<>())
93  .def("GetAllTetGeoms", &MeshGraph::GetAllTetGeoms,
94  py::return_internal_reference<>())
95  .def("GetAllPrismGeoms", &MeshGraph::GetAllPrismGeoms,
96  py::return_internal_reference<>())
97  .def("GetAllPyrGeoms", &MeshGraph::GetAllPyrGeoms,
98  py::return_internal_reference<>())
99  .def("GetAllHexGeoms", &MeshGraph::GetAllHexGeoms,
100  py::return_internal_reference<>())
101  .def("GetCurvedEdges", &MeshGraph::GetCurvedEdges,
102  py::return_internal_reference<>())
103  .def("GetCurvedFaces", &MeshGraph::GetCurvedFaces,
104  py::return_internal_reference<>())
105 
106  .def("GetNumElements", &MeshGraph::GetNumElements)
107 
108  .def("SetExpansionsToEvenlySpacedPoints",
109  &MeshGraph::SetExpansionsToEvenlySpacedPoints)
110  .def("SetExpansionsToPolyOrder", &MeshGraph::SetExpansionsToPolyOrder)
111  .def("SetExpansionsToPointOrder", &MeshGraph::SetExpansionsToPointOrder)
112  ;
113 }
MeshGraphSharedPtr MeshGraph_Read(const LibUtilities::SessionReaderSharedPtr &session)
Base class for a spectral/hp element mesh.
Definition: MeshGraph.h:167

◆ MeshGraph_Read()

MeshGraphSharedPtr MeshGraph_Read ( const LibUtilities::SessionReaderSharedPtr session)

Definition at line 46 of file Python/MeshGraph.cpp.

References Nektar::SpatialDomains::MeshGraph::Read().

Referenced by export_MeshGraph().

48 {
49  return MeshGraph::Read(session);
50 }