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

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.

References Nektar::SpatialDomains::Geometry::FillGeom(), Geometry_ContainsPoint(), Geometry_GenGeomFactors(), Nektar::SpatialDomains::Geometry::GetCoeffs(), Nektar::SpatialDomains::Geometry::GetCoordim(), Nektar::SpatialDomains::Geometry::GetEdge(), Nektar::SpatialDomains::Geometry::GetEid(), Nektar::SpatialDomains::Geometry::GetEorient(), Nektar::SpatialDomains::Geometry::GetFace(), Nektar::SpatialDomains::Geometry::GetFid(), Nektar::SpatialDomains::Geometry::GetForient(), Nektar::SpatialDomains::Geometry::GetGlobalID(), Nektar::SpatialDomains::Geometry::GetNumEdges(), Nektar::SpatialDomains::Geometry::GetNumFaces(), Nektar::SpatialDomains::Geometry::GetNumVerts(), Nektar::SpatialDomains::Geometry::GetShapeDim(), Nektar::SpatialDomains::Geometry::GetShapeType(), Nektar::SpatialDomains::Geometry::GetTid(), Nektar::SpatialDomains::Geometry::GetVertex(), Nektar::SpatialDomains::Geometry::GetVid(), Nektar::SpatialDomains::Geometry::GetXmap(), and Nektar::SpatialDomains::Geometry::Setup().

Referenced by BOOST_PYTHON_MODULE().

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

◆ Geometry_ContainsPoint()

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

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

Referenced by export_Geometry().

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

◆ Geometry_GenGeomFactors()

void Geometry_GenGeomFactors ( GeometrySharedPtr  geom)

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

Referenced by export_Geometry().

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