Nektar++
Loading...
Searching...
No Matches
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.
 
 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}
SpatialDomains::Geometry * GetGeom() const

References Nektar::LocalRegions::Expansion::GetGeom(), and Nektar::LocalRegions::Expansion::Reset().

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<
70 std::shared_ptr<PrismExp>>(m, "PrismExp",
71 py::multiple_inheritance())
72 .def(py::init<
76 std::shared_ptr<PyrExp>>(m, "PyrExp", py::multiple_inheritance())
77 .def(py::init<
81 std::shared_ptr<HexExp>>(m, "HexExp", py::multiple_inheritance())
82 .def(py::init<
85}
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

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
static VarCoeffMap NullVarCoeffMap

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().