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)
 
bool Geometry_IsValid (GeometrySharedPtr geom)
 
void export_Geometry ()
 

Function Documentation

◆ export_Geometry()

void export_Geometry ( )

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

62{
63 py::class_<Geometry, std::shared_ptr<Geometry>, boost::noncopyable>(
64 "Geometry", py::no_init)
65
66 .def("GetCoordim", &Geometry::GetCoordim)
67 .def("GetGlobalID", &Geometry::GetGlobalID)
68 .def("SetGlobalID", &Geometry::SetGlobalID)
69
70 .def("Setup", &Geometry::Setup)
71 .def("FillGeom", &Geometry::FillGeom)
72 .def("GenGeomFactors", &Geometry_GenGeomFactors)
73 .def("IsValid", &Geometry_IsValid)
74
75 .def("ContainsPoint", &Geometry_ContainsPoint)
76
77 .def("GetVertex", &Geometry::GetVertex)
78 .def("GetEdge", &Geometry::GetEdge)
79 .def("GetFace", &Geometry::GetFace)
80 .def("GetVid", &Geometry::GetVid)
81 .def("GetEid", &Geometry::GetEid)
82 .def("GetFid", &Geometry::GetFid)
83 .def("GetTid", &Geometry::GetTid)
84
85 .def("GetNumVerts", &Geometry::GetNumVerts)
86 .def("GetNumEdges", &Geometry::GetNumEdges)
87 .def("GetNumFaces", &Geometry::GetNumFaces)
88 .def("GetShapeDim", &Geometry::GetShapeDim)
89 .def("GetShapeType", &Geometry::GetShapeType)
90 .def("GetEorient", &Geometry::GetEorient)
91 .def("GetForient", &Geometry::GetForient)
92
93 .def("GetXmap", &Geometry::GetXmap)
94 .def("GetCoeffs", &Geometry::GetCoeffs,
95 py::return_value_policy<py::copy_const_reference>());
96}
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 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().

◆ Geometry_IsValid()

bool Geometry_IsValid ( GeometrySharedPtr  geom)

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

56{
57 GeomFactorsSharedPtr geomFactors = geom->GetGeomFactors();
58 return geomFactors->IsValid();
59}

Referenced by export_Geometry().