Nektar++
Functions
Python/Geometry.cpp File Reference
#include <LibUtilities/Python/NekPyConfig.hpp>
#include <SpatialDomains/Geometry.h>
#include <SpatialDomains/Geometry1D.h>
#include <SpatialDomains/Geometry2D.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)
 
void export_Geometry ()
 

Function Documentation

◆ export_Geometry()

void export_Geometry ( )

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

56{
57 py::class_<Geometry, std::shared_ptr<Geometry>, boost::noncopyable>(
58 "Geometry", py::no_init)
59
60 .def("GetCoordim", &Geometry::GetCoordim)
61 .def("GetGlobalID", &Geometry::GetGlobalID)
62 .def("SetGlobalID", &Geometry::SetGlobalID)
63
64 .def("Setup", &Geometry::Setup)
65 .def("FillGeom", &Geometry::FillGeom)
66 .def("GenGeomFactors", &Geometry_GenGeomFactors)
67
68 .def("ContainsPoint", &Geometry_ContainsPoint)
69
70 .def("GetVertex", &Geometry::GetVertex)
71 .def("GetEdge", &Geometry::GetEdge)
72 .def("GetFace", &Geometry::GetFace)
73 .def("GetVid", &Geometry::GetVid)
74 .def("GetEid", &Geometry::GetEid)
75 .def("GetFid", &Geometry::GetFid)
76 .def("GetTid", &Geometry::GetTid)
77
78 .def("GetNumVerts", &Geometry::GetNumVerts)
79 .def("GetNumEdges", &Geometry::GetNumEdges)
80 .def("GetNumFaces", &Geometry::GetNumFaces)
81 .def("GetShapeDim", &Geometry::GetShapeDim)
82 .def("GetShapeType", &Geometry::GetShapeType)
83 .def("GetEorient", &Geometry::GetEorient)
84 .def("GetForient", &Geometry::GetForient)
85
86 .def("GetXmap", &Geometry::GetXmap)
87 .def("GetCoeffs", &Geometry::GetCoeffs,
88 py::return_value_policy<py::copy_const_reference>());
89}
void Geometry_GenGeomFactors(GeometrySharedPtr geom)
bool Geometry_ContainsPoint(GeometrySharedPtr geom, const Array< OneD, const NekDouble > &gloCoord)

References Geometry_ContainsPoint(), and Geometry_GenGeomFactors().

Referenced by BOOST_PYTHON_MODULE().

◆ Geometry_ContainsPoint()

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

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

46{
47 return geom->ContainsPoint(gloCoord);
48}

Referenced by export_Geometry().

◆ Geometry_GenGeomFactors()

void Geometry_GenGeomFactors ( GeometrySharedPtr  geom)

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

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

Referenced by export_Geometry().