Nektar++
Loading...
Searching...
No Matches
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, Geometry *> &(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,
68 py::return_value_policy::copy);
69
70 py::class_<InterfacePair, std::shared_ptr<InterfacePair>>(m,
71 "InterfacePair")
72 .def(py::init<>(&InterfacePair_Init))
73 .def("GetLeftInterface", &InterfacePair::GetLeftInterface,
74 py::return_value_policy::copy)
75 .def("GetRightInterface", &InterfacePair::GetRightInterface,
76 py::return_value_policy::copy);
77}
std::shared_ptr< InterfacePair > InterfacePair_Init(const InterfaceShPtr &leftInterface, const InterfaceShPtr &rightInterface)
std::shared_ptr< Interface > Interface_Init(int indx, const CompositeMap &edge, bool skipCoordCheck)
A interface which is a single edge on a zone for handling non-conformality.
const InterfaceShPtr & GetRightInterface() const
Return the 'right' interface from the interface pair.
const InterfaceShPtr & GetLeftInterface() const
Return the 'left' interface from the interface pair.

References Nektar::SpatialDomains::Interface::GetCompositeIDs(), Nektar::SpatialDomains::Interface::GetEdge(), Nektar::SpatialDomains::Interface::GetId(), Nektar::SpatialDomains::InterfacePair::GetLeftInterface(), Nektar::SpatialDomains::Interface::GetOppInterface(), Nektar::SpatialDomains::InterfacePair::GetRightInterface(), Interface_Init(), InterfacePair_Init(), and Nektar::SpatialDomains::Interface::IsEmpty().

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