Nektar++
Functions
LocalRegions.cpp File Reference
#include <LibUtilities/Python/NekPyConfig.hpp>

Go to the source code of this file.

Functions

void export_Expansion ()
 
void export_LocalElements ()
 
void export_MatrixKey ()
 Export for MatrixKey enumeration. More...
 
 BOOST_PYTHON_MODULE (_LocalRegions)
 

Function Documentation

◆ BOOST_PYTHON_MODULE()

BOOST_PYTHON_MODULE ( _LocalRegions  )

Definition at line 41 of file LocalRegions.cpp.

References export_Expansion(), export_LocalElements(), and export_MatrixKey().

42 {
43  np::initialize();
44 
48 }
void export_MatrixKey()
Export for MatrixKey enumeration.
void export_LocalElements()
void export_Expansion()

◆ export_Expansion()

void export_Expansion ( )

Definition at line 43 of file Python/Expansion.cpp.

Referenced by BOOST_PYTHON_MODULE().

44 {
45  py::class_<Expansion,
46  std::shared_ptr<Expansion>, py::bases<StdExpansion>,
47  boost::noncopyable>(
48  "Expansion", py::no_init)
49 
50  .def("GetGeom", &Expansion::GetGeom)
51  .def("Reset", &Expansion::Reset)
52  ;
53 }

◆ export_LocalElements()

void export_LocalElements ( )

Definition at line 47 of file LocalElements.cpp.

References NEKPY_SHPTR_FIX.

Referenced by BOOST_PYTHON_MODULE().

48 {
49  py::class_<SegExp, py::bases<Expansion, StdRegions::StdSegExp>,
50  std::shared_ptr<SegExp> >(
51  "SegExp", py::init<const LibUtilities::BasisKey&,
53  py::class_<TriExp, py::bases<Expansion, StdRegions::StdTriExp>,
54  std::shared_ptr<TriExp> >(
55  "TriExp", py::init<const LibUtilities::BasisKey&,
58  py::class_<QuadExp, py::bases<Expansion, StdRegions::StdQuadExp>,
59  std::shared_ptr<QuadExp> >(
60  "QuadExp", py::init<const LibUtilities::BasisKey&,
63  py::class_<TetExp, py::bases<Expansion, StdRegions::StdTetExp>,
64  std::shared_ptr<TetExp> >(
65  "TetExp", py::init<const LibUtilities::BasisKey&,
69  py::class_<PrismExp, py::bases<Expansion, StdRegions::StdPrismExp>,
70  std::shared_ptr<PrismExp> >(
71  "PrismExp", py::init<const LibUtilities::BasisKey&,
75  py::class_<PyrExp, py::bases<Expansion, StdRegions::StdPyrExp>,
76  std::shared_ptr<PyrExp> >(
77  "PyrExp", py::init<const LibUtilities::BasisKey&,
81  py::class_<HexExp, py::bases<Expansion, StdRegions::StdHexExp>,
82  std::shared_ptr<HexExp> >(
83  "HexExp", py::init<const LibUtilities::BasisKey&,
87 
109 }
std::shared_ptr< TetGeom > TetGeomSharedPtr
Definition: TetGeom.h:88
std::shared_ptr< QuadGeom > QuadGeomSharedPtr
Definition: HexGeom.h:46
#define NEKPY_SHPTR_FIX(SOURCE, TARGET)
Class representing a segment element in reference space.
Definition: StdSegExp.h:53
std::shared_ptr< TriGeom > TriGeomSharedPtr
Definition: TriGeom.h:58
The base class for all shapes.
Definition: StdExpansion.h:68
Class representing a hexehedral element in reference space.
Definition: StdHexExp.h:47
Class representing a prismatic element in reference space.
Definition: StdPrismExp.h:48
std::shared_ptr< PyrGeom > PyrGeomSharedPtr
Definition: PyrGeom.h:80
std::shared_ptr< HexGeom > HexGeomSharedPtr
Definition: HexGeom.h:90
std::shared_ptr< PrismGeom > PrismGeomSharedPtr
Definition: PrismGeom.h:88
std::shared_ptr< SegGeom > SegGeomSharedPtr
Definition: Geometry2D.h:62
Describes the specification for a Basis.
Definition: Basis.h:49

◆ export_MatrixKey()

void export_MatrixKey ( )

Export for MatrixKey enumeration.

Definition at line 69 of file Python/MatrixKey.cpp.

References MatrixKey_Init().

Referenced by BOOST_PYTHON_MODULE().

70 {
71  py::class_<MatrixKey, py::bases<StdRegions::StdMatrixKey>>(
72  "MatrixKey", py::no_init)
73  .def("__init__",
74  py::make_constructor(
75  &MatrixKey_Init, py::default_call_policies(),
76  (py::arg("matType"), py::arg("shapeType"), py::arg("exp"),
77  py::arg("constFactorMap") = py::object(),
78  py::arg("varCoeffMap") = py::object())))
79  ;
80 }
MatrixKey * MatrixKey_Init(const StdRegions::MatrixType matType, const LibUtilities::ShapeType shapeType, const StdRegions::StdExpansionSharedPtr exp, const py::object &constFactorMap, const py::object &varCoeffMap)