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_<RANS2P_base>(m,
"cRANS2P_base")
27 .def(
"calculateResidual" , &RANS2P_base::calculateResidual )
28 .def(
"calculateJacobian" , &RANS2P_base::calculateJacobian )
29 .def(
"calculateVelocityAverage" , &RANS2P_base::calculateVelocityAverage )
30 .def(
"getTwoPhaseAdvectionOperator" , &RANS2P_base::getTwoPhaseAdvectionOperator )
31 .def(
"getTwoPhaseInvScaledLaplaceOperator" , &RANS2P_base::getTwoPhaseInvScaledLaplaceOperator )
32 .def(
"getTwoPhaseScaledMassOperator" , &RANS2P_base::getTwoPhaseScaledMassOperator )
33 .def(
"step6DOF" , &RANS2P_base::step6DOF);