1 #include "pybind11/pybind11.h"
2 #include "pybind11/stl_bind.h"
4 #define FORCE_IMPORT_ARRAY
7 namespace py = pybind11;
10 #if defined(__GNUC__) && !defined(__clang__)
13 inline void define_allocators()
15 std::allocator<int> a0;
16 std::allocator<double> a1;
25 py::class_<RANS2P2D_base>(m,
"cRANS2P2D_base")
27 .def(
"calculateResidual" , &RANS2P2D_base::calculateResidual )
28 .def(
"calculateJacobian" , &RANS2P2D_base::calculateJacobian )
29 .def(
"calculateVelocityAverage" , &RANS2P2D_base::calculateVelocityAverage )
30 .def(
"getTwoPhaseAdvectionOperator" , &RANS2P2D_base::getTwoPhaseAdvectionOperator )
31 .def(
"getTwoPhaseInvScaledLaplaceOperator" , &RANS2P2D_base::getTwoPhaseInvScaledLaplaceOperator )
32 .def(
"getTwoPhaseScaledMassOperator" , &RANS2P2D_base::getTwoPhaseScaledMassOperator )
33 .def(
"step6DOF" , &RANS2P2D_base::step6DOF);