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

Go to the source code of this file.

Functions

void export_Expansion (py::module &m)
 
void export_LocalElements (py::module &m)
 
void export_MatrixKey (py::module &m)
 Export for MatrixKey enumeration. More...
 
 PYBIND11_MODULE (_LocalRegions, m)
 

Function Documentation

◆ export_Expansion()

void export_Expansion ( py::module &  m)

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

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

Referenced by PYBIND11_MODULE().

◆ export_LocalElements()

void export_LocalElements ( py::module &  m)

Definition at line 47 of file LocalElements.cpp.

48{
50 std::shared_ptr<SegExp>>(m, "SegExp", py::multiple_inheritance())
51 .def(py::init<const LibUtilities::BasisKey &,
54 std::shared_ptr<TriExp>>(m, "TriExp", py::multiple_inheritance())
55 .def(py::init<const LibUtilities::BasisKey &,
59 std::shared_ptr<QuadExp>>(m, "QuadExp",
60 py::multiple_inheritance())
61 .def(py::init<const LibUtilities::BasisKey &,
65 std::shared_ptr<TetExp>>(m, "TetExp", py::multiple_inheritance())
66 .def(py::init<const LibUtilities::BasisKey &,
71 std::shared_ptr<PrismExp>>(m, "PrismExp",
72 py::multiple_inheritance())
73 .def(py::init<const LibUtilities::BasisKey &,
78 std::shared_ptr<PyrExp>>(m, "PyrExp", py::multiple_inheritance())
79 .def(py::init<const LibUtilities::BasisKey &,
84 std::shared_ptr<HexExp>>(m, "HexExp", py::multiple_inheritance())
85 .def(py::init<const LibUtilities::BasisKey &,
89}
Describes the specification for a Basis.
Definition: Basis.h:45
Class representing a hexehedral element in reference space.
Definition: StdHexExp.h:44
Class representing a prismatic element in reference space.
Definition: StdPrismExp.h:45
Class representing a segment element in reference space All interface of this class sits in StdExpans...
Definition: StdSegExp.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:58
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 PYBIND11_MODULE().

◆ export_MatrixKey()

void export_MatrixKey ( py::module &  m)

Export for MatrixKey enumeration.

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

61{
62 py::class_<MatrixKey, StdRegions::StdMatrixKey>(m, "MatrixKey")
63 .def(py::init<>(&MatrixKey_Init), py::arg("matType"),
64 py::arg("shapeType"), py::arg("exp"),
65 py::arg("constFactorMap") = StdRegions::NullConstFactorMap,
66 py::arg("varCoeffMap") = StdRegions::NullVarCoeffMap);
67}
std::unique_ptr< MatrixKey > MatrixKey_Init(const StdRegions::MatrixType matType, const LibUtilities::ShapeType shapeType, const StdRegions::StdExpansionSharedPtr exp, const StdRegions::ConstFactorMap &constFactorMap, const StdRegions::VarCoeffMap &varCoeffMap)
static ConstFactorMap NullConstFactorMap
Definition: StdRegions.hpp:431
static VarCoeffMap NullVarCoeffMap
Definition: StdRegions.hpp:376

References MatrixKey_Init(), Nektar::StdRegions::NullConstFactorMap, and Nektar::StdRegions::NullVarCoeffMap.

Referenced by PYBIND11_MODULE().

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( _LocalRegions  ,
 
)

Definition at line 41 of file LocalRegions.cpp.

42{
46}
void export_MatrixKey(py::module &m)
Export for MatrixKey enumeration.
void export_Expansion(py::module &m)
void export_LocalElements(py::module &m)

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