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

Go to the source code of this file.

Functions

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

Function Documentation

◆ export_Interfaces()

void export_Interfaces ( py::module &  m)

Definition at line 54 of file Interfaces.cpp.

55{
56 py::bind_vector<std::vector<unsigned int>>(m, "UIntList");
57
58 py::class_<Interface, std::shared_ptr<Interface>>(m, "Interface")
59 .def(py::init<>(&Interface_Init))
60 .def<const std::map<int, GeometrySharedPtr> &(Interface::*)() const>(
61 "GetEdge", &Interface::GetEdge,
62 py::return_value_policy::reference_internal)
63 .def("IsEmpty", &Interface::IsEmpty)
64 .def("GetId", &Interface::GetId, py::return_value_policy::copy)
65 .def("GetOppInterace", &Interface::GetOppInterface,
66 py::return_value_policy::reference_internal)
67 .def("GetCompositeIDs", &Interface::GetCompositeIDs,
69
70 py::class_<InterfacePair, std::shared_ptr<InterfacePair>>(m,
71 "InterfacePair")
72 .def(py::init<>(&InterfacePair_Init))
73 .def("GetLeftInterface", &InterfacePair::GetLeftInterface,
75 .def("GetRightInterface", &InterfacePair::GetRightInterface,
77}
std::shared_ptr< InterfacePair > InterfacePair_Init(const InterfaceShPtr &leftInterface, const InterfaceShPtr &rightInterface)
Definition: Interfaces.cpp:48
std::shared_ptr< Interface > Interface_Init(int indx, const CompositeMap &edge, bool skipCoordCheck)
Definition: Interfaces.cpp:42
def copy(self)
Definition: pycml.py:2663
A interface which is a single edge on a zone for handling non-conformality.

References CellMLToNektar.pycml::copy(), Interface_Init(), and InterfacePair_Init().

Referenced by PYBIND11_MODULE().

◆ Interface_Init()

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

Definition at line 42 of file Interfaces.cpp.

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

Referenced by export_Interfaces().

◆ InterfacePair_Init()

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

Definition at line 48 of file Interfaces.cpp.

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

Referenced by export_Interfaces().