Nektar++
Functions
Interfaces.cpp File Reference
#include <LibUtilities/Python/NekPyConfig.hpp>
#include <SpatialDomains/Movement/InterfaceInterpolation.h>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>

Go to the source code of this file.

Functions

std::shared_ptr< InterfaceInterface_Init (int indx, const CompositeMap &edge)
 
std::shared_ptr< InterfacePairInterfacePair_Init (const InterfaceShPtr &leftInterface, const InterfaceShPtr &rightInterface)
 
void export_Interfaces ()
 

Function Documentation

◆ export_Interfaces()

void export_Interfaces ( )

Definition at line 53 of file Interfaces.cpp.

54{
55 py::class_<std::vector<unsigned int>>("UIntList")
56 .def(py::vector_indexing_suite<std::vector<unsigned int>, true>());
57
58 py::class_<Interface, std::shared_ptr<Interface>>("Interface", py::no_init)
59 .def("__init__", py::make_constructor(&Interface_Init))
60 .def<const std::map<int, GeometrySharedPtr> &(Interface::*)() const>(
61 "GetEdge", &Interface::GetEdge, py::return_internal_reference<>())
62 .def("IsEmpty", &Interface::IsEmpty)
63 .def("GetId", &Interface::GetId,
64 py::return_value_policy<py::copy_non_const_reference>())
65 .def("GetOppInterace", &Interface::GetOppInterface,
66 py::return_internal_reference<>())
67 .def("GetCompositeIDs", &Interface::GetCompositeIDs,
68 py::return_value_policy<py::copy_const_reference>());
69
70 py::class_<InterfacePair, std::shared_ptr<InterfacePair>>("InterfacePair",
71 py::no_init)
72 .def("__init__", py::make_constructor(&InterfacePair_Init))
73 .def("GetLeftInterface", &InterfacePair::GetLeftInterface,
74 py::return_value_policy<py::copy_const_reference>())
75 .def("GetRightInterface", &InterfacePair::GetRightInterface,
76 py::return_value_policy<py::copy_const_reference>());
77}
std::shared_ptr< InterfacePair > InterfacePair_Init(const InterfaceShPtr &leftInterface, const InterfaceShPtr &rightInterface)
Definition: Interfaces.cpp:47
std::shared_ptr< Interface > Interface_Init(int indx, const CompositeMap &edge)
Definition: Interfaces.cpp:42
A interface which is a single edge on a zone for handling non-conformality.

References Interface_Init(), and InterfacePair_Init().

Referenced by BOOST_PYTHON_MODULE().

◆ Interface_Init()

std::shared_ptr< Interface > Interface_Init ( int  indx,
const CompositeMap edge 
)

Definition at line 42 of file Interfaces.cpp.

43{
44 return std::make_shared<Interface>(indx, edge);
45}

Referenced by export_Interfaces().

◆ InterfacePair_Init()

std::shared_ptr< InterfacePair > InterfacePair_Init ( const InterfaceShPtr leftInterface,
const InterfaceShPtr rightInterface 
)

Definition at line 47 of file Interfaces.cpp.

49{
50 return std::make_shared<InterfacePair>(leftInterface, rightInterface);
51}

Referenced by export_Interfaces().