Nektar++
Functions
Python/MeshGraph.cpp File Reference
#include <LibUtilities/Python/NekPyConfig.hpp>
#include <SpatialDomains/MeshGraph.h>
#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.

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, std::shared_ptr<MeshGraph>, boost::noncopyable>(
77 "MeshGraph", py::no_init)
78
79 .def("Read", MeshGraph_Read)
80 .staticmethod("Read")
81
82 .def("GetMeshDimension", &MeshGraph::GetMeshDimension)
83 .def("GetAllPointGeoms", &MeshGraph::GetAllPointGeoms,
84 py::return_internal_reference<>())
85 .def("GetAllSegGeoms", &MeshGraph::GetAllSegGeoms,
86 py::return_internal_reference<>())
87 .def("GetAllQuadGeoms", &MeshGraph::GetAllQuadGeoms,
88 py::return_internal_reference<>())
89 .def("GetAllTriGeoms", &MeshGraph::GetAllTriGeoms,
90 py::return_internal_reference<>())
91 .def("GetAllTetGeoms", &MeshGraph::GetAllTetGeoms,
92 py::return_internal_reference<>())
93 .def("GetAllPrismGeoms", &MeshGraph::GetAllPrismGeoms,
94 py::return_internal_reference<>())
95 .def("GetAllPyrGeoms", &MeshGraph::GetAllPyrGeoms,
96 py::return_internal_reference<>())
97 .def("GetAllHexGeoms", &MeshGraph::GetAllHexGeoms,
98 py::return_internal_reference<>())
99 .def("GetCurvedEdges", &MeshGraph::GetCurvedEdges,
100 py::return_internal_reference<>())
101 .def("GetCurvedFaces", &MeshGraph::GetCurvedFaces,
102 py::return_internal_reference<>())
103
104 .def("GetNumElements", &MeshGraph::GetNumElements)
105
106 .def("SetExpansionInfosToEvenlySpacedPoints",
107 &MeshGraph::SetExpansionInfoToEvenlySpacedPoints)
108 .def("SetExpansionInfosToPolyOrder",
109 &MeshGraph::SetExpansionInfoToNumModes)
110 .def("SetExpansionInfosToPointOrder",
111 &MeshGraph::SetExpansionInfoToPointOrder);
112}
MeshGraphSharedPtr MeshGraph_Read(const LibUtilities::SessionReaderSharedPtr &session)

References MeshGraph_Read().

Referenced by BOOST_PYTHON_MODULE().

◆ MeshGraph_Read()

MeshGraphSharedPtr MeshGraph_Read ( const LibUtilities::SessionReaderSharedPtr session)

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

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

Referenced by export_MeshGraph().