37#include <boost/python/suite/indexing/map_indexing_suite.hpp>
48 return std::make_shared<ZoneRotate>(
id, domainID, domain, coordDim,
origin,
55 const std::vector<NekDouble> &
velocity)
57 return std::make_shared<ZoneTranslate>(
id, domainID, domain, coordDim,
68 return std::make_shared<ZonePrescribe>(
id, domainID, domain, coordDim,
69 xDeform, yDeform, zDeform);
75 return std::make_shared<ZoneFixed>(
id, domainID, domain, coordDim);
82 py::class_<ZoneBase, std::shared_ptr<ZoneBase>, boost::noncopyable>(
83 "ZoneBase", py::no_init)
84 .def(
"GetMovementType", &ZoneBase::GetMovementType)
85 .def(
"GetDomain", &ZoneBase::GetDomain)
86 .def(
"GetId", &ZoneBase::GetId,
87 py::return_value_policy<py::copy_non_const_reference>())
88 .def(
"GetDomainID", &ZoneBase::GetDomainID,
89 py::return_value_policy<py::copy_non_const_reference>())
90 .def(
"Move", &ZoneBase::Move)
91 .def(
"GetElements", &ZoneBase::GetElements,
92 py::return_internal_reference<>())
93 .def(
"GetMoved", &ZoneBase::GetMoved,
94 py::return_value_policy<py::copy_non_const_reference>())
95 .def(
"ClearBoundingBoxes", &ZoneBase::ClearBoundingBoxes);
97 py::class_<ZoneRotate, py::bases<ZoneBase>, std::shared_ptr<ZoneRotate>>(
98 "ZoneRotate", py::no_init)
100 .def(
"GetAngualrVel", &ZoneRotate::GetAngularVel)
101 .def(
"GetOrigin", &ZoneRotate::GetOrigin,
102 py::return_value_policy<py::copy_const_reference>())
103 .def(
"GetAxis", &ZoneRotate::GetAxis,
104 py::return_value_policy<py::copy_const_reference>())
105 .def(
"GetAngularVelEqn", &ZoneRotate::GetAngularVelEqn);
107 py::class_<ZoneTranslate, py::bases<ZoneBase>,
108 std::shared_ptr<ZoneTranslate>>(
"ZoneTranslate", py::no_init)
110 .def(
"GetVel", &ZoneTranslate::GetVel);
112 py::class_<ZonePrescribe, py::bases<ZoneBase>,
113 std::shared_ptr<ZonePrescribe>>(
"ZonePrescribe", py::no_init)
115 .def(
"GetXDeform", &ZonePrescribe::GetXDeform)
116 .def(
"GetYDeform", &ZonePrescribe::GetYDeform)
117 .def(
"GetZDeform", &ZonePrescribe::GetZDeform)
118 .def(
"GetXDeformEquation", &ZonePrescribe::GetXDeformEquation)
119 .def(
"GetYDeformEquation", &ZonePrescribe::GetYDeformEquation)
120 .def(
"GetZDeformEquation", &ZonePrescribe::GetZDeformEquation);
122 py::class_<ZoneFixed, py::bases<ZoneBase>, std::shared_ptr<ZoneFixed>>(
123 "ZoneFixed", py::no_init)
#define NEKPY_WRAP_ENUM_STRING(ENUMNAME, MAPNAME)
ZoneRotateShPtr ZoneRotate_Init(int id, int domainID, const CompositeMap &domain, const int coordDim, const NekPoint< NekDouble > &origin, const DNekVec &axis, LibUtilities::EquationSharedPtr &angularVelEqn)
ZoneTranslateShPtr ZoneTranslate_Init(int id, int domainID, const CompositeMap &domain, const int coordDim, const std::vector< NekDouble > &velocity)
ZoneFixedShPtr ZoneFixed_Init(int id, int domainID, const CompositeMap &domain, const int coordDim)
ZonePrescribeShPtr ZonePrescribe_Init(int id, int domainID, const CompositeMap &domain, const int coordDim, LibUtilities::EquationSharedPtr xDeform, LibUtilities::EquationSharedPtr yDeform, LibUtilities::EquationSharedPtr zDeform)
std::shared_ptr< Equation > EquationSharedPtr
const std::vector< NekDouble > velocity
const NekPoint< NekDouble > origin
std::shared_ptr< ZonePrescribe > ZonePrescribeShPtr
std::shared_ptr< ZoneTranslate > ZoneTranslateShPtr
std::shared_ptr< ZoneRotate > ZoneRotateShPtr
MovementType
Enum of zone movement type.
std::shared_ptr< ZoneFixed > ZoneFixedShPtr
const std::string MovementTypeStr[]
Map of zone movement type to movement type string.
std::map< int, CompositeSharedPtr > CompositeMap