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.

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

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

◆ export_Expansion()

void export_Expansion ( )

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

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

Referenced by BOOST_PYTHON_MODULE().

◆ export_LocalElements()

void export_LocalElements ( )

Definition at line 47 of file LocalElements.cpp.

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",
56 py::init<const LibUtilities::BasisKey &, const LibUtilities::BasisKey &,
58 py::class_<QuadExp, py::bases<Expansion, StdRegions::StdQuadExp>,
59 std::shared_ptr<QuadExp>>(
60 "QuadExp",
61 py::init<const LibUtilities::BasisKey &, const LibUtilities::BasisKey &,
63 py::class_<TetExp, py::bases<Expansion, StdRegions::StdTetExp>,
64 std::shared_ptr<TetExp>>(
65 "TetExp",
66 py::init<const LibUtilities::BasisKey &, const LibUtilities::BasisKey &,
69 py::class_<PrismExp, py::bases<Expansion, StdRegions::StdPrismExp>,
70 std::shared_ptr<PrismExp>>(
71 "PrismExp",
72 py::init<const LibUtilities::BasisKey &, const LibUtilities::BasisKey &,
75 py::class_<PyrExp, py::bases<Expansion, StdRegions::StdPyrExp>,
76 std::shared_ptr<PyrExp>>(
77 "PyrExp",
78 py::init<const LibUtilities::BasisKey &, const LibUtilities::BasisKey &,
81 py::class_<HexExp, py::bases<Expansion, StdRegions::StdHexExp>,
82 std::shared_ptr<HexExp>>(
83 "HexExp",
84 py::init<const LibUtilities::BasisKey &, const LibUtilities::BasisKey &,
87}
Describes the specification for a Basis.
Definition: Basis.h:45
std::shared_ptr< QuadGeom > QuadGeomSharedPtr
Definition: HexGeom.h:45
std::shared_ptr< PrismGeom > PrismGeomSharedPtr
Definition: PrismGeom.h:82
std::shared_ptr< HexGeom > HexGeomSharedPtr
Definition: HexGeom.h:84
std::shared_ptr< SegGeom > SegGeomSharedPtr
Definition: Geometry2D.h:59
std::shared_ptr< PyrGeom > PyrGeomSharedPtr
Definition: PyrGeom.h:75
std::shared_ptr< TetGeom > TetGeomSharedPtr
Definition: TetGeom.h:82
std::shared_ptr< TriGeom > TriGeomSharedPtr
Definition: TriGeom.h:56

Referenced by BOOST_PYTHON_MODULE().

◆ export_MatrixKey()

void export_MatrixKey ( )

Export for MatrixKey enumeration.

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

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

References MatrixKey_Init().

Referenced by BOOST_PYTHON_MODULE().