Nektar++
Functions
Python/Geometry.cpp File Reference
#include <SpatialDomains/Geometry.h>
#include <SpatialDomains/Geometry1D.h>
#include <SpatialDomains/Geometry2D.h>
#include <LibUtilities/Python/BasicUtils/SharedArray.hpp>
#include <LibUtilities/Python/NekPyConfig.hpp>
#include <SpatialDomains/Python/SpatialDomains.h>

Go to the source code of this file.

Functions

bool Geometry_ContainsPoint (GeometrySharedPtr geom, const Array< OneD, const NekDouble > &gloCoord)
 
void Geometry_GenGeomFactors (GeometrySharedPtr geom)
 
bool Geometry_IsValid (GeometrySharedPtr geom)
 
void export_Geometry (py::module &m)
 

Function Documentation

◆ export_Geometry()

void export_Geometry ( py::module &  m)

Definition at line 64 of file Python/Geometry.cpp.

65{
66 py::class_<Geometry, std::shared_ptr<Geometry>>(m, "Geometry")
67
68 .def("GetCoordim", &Geometry::GetCoordim)
69 .def("GetGlobalID", &Geometry::GetGlobalID)
70 .def("SetGlobalID", &Geometry::SetGlobalID)
71
72 .def("Setup", &Geometry::Setup)
73 .def("FillGeom", &Geometry::FillGeom)
74 .def("GenGeomFactors", &Geometry_GenGeomFactors)
75 .def("IsValid", &Geometry_IsValid)
76
77 .def("ContainsPoint", &Geometry_ContainsPoint)
78
79 .def("GetVertex", &Geometry::GetVertex)
80 .def("GetEdge", &Geometry::GetEdge)
81 .def("GetFace", &Geometry::GetFace)
82 .def("GetVid", &Geometry::GetVid)
83 .def("GetEid", &Geometry::GetEid)
84 .def("GetFid", &Geometry::GetFid)
85 .def("GetTid", &Geometry::GetTid)
86
87 .def("GetNumVerts", &Geometry::GetNumVerts)
88 .def("GetNumEdges", &Geometry::GetNumEdges)
89 .def("GetNumFaces", &Geometry::GetNumFaces)
90 .def("GetShapeDim", &Geometry::GetShapeDim)
91 .def("GetShapeType", &Geometry::GetShapeType)
92 .def("GetEorient", &Geometry::GetEorient)
93 .def("GetForient", &Geometry::GetForient)
94
95 .def("GetXmap", &Geometry::GetXmap)
96 .def("GetCoeffs", &Geometry::GetCoeffs);
97}
bool Geometry_IsValid(GeometrySharedPtr geom)
void Geometry_GenGeomFactors(GeometrySharedPtr geom)
bool Geometry_ContainsPoint(GeometrySharedPtr geom, const Array< OneD, const NekDouble > &gloCoord)

References Geometry_ContainsPoint(), Geometry_GenGeomFactors(), and Geometry_IsValid().

Referenced by PYBIND11_MODULE().

◆ Geometry_ContainsPoint()

bool Geometry_ContainsPoint ( GeometrySharedPtr  geom,
const Array< OneD, const NekDouble > &  gloCoord 
)

Definition at line 47 of file Python/Geometry.cpp.

49{
50 return geom->ContainsPoint(gloCoord);
51}

Referenced by export_Geometry().

◆ Geometry_GenGeomFactors()

void Geometry_GenGeomFactors ( GeometrySharedPtr  geom)

Definition at line 53 of file Python/Geometry.cpp.

54{
55 GeomFactorsSharedPtr geomFactors = geom->GetGeomFactors();
56}
std::shared_ptr< GeomFactors > GeomFactorsSharedPtr
Pointer to a GeomFactors object.
Definition: GeomFactors.h:60

Referenced by export_Geometry().

◆ Geometry_IsValid()

bool Geometry_IsValid ( GeometrySharedPtr  geom)

Definition at line 58 of file Python/Geometry.cpp.

59{
60 GeomFactorsSharedPtr geomFactors = geom->GetGeomFactors();
61 return geomFactors->IsValid();
62}

Referenced by export_Geometry().