proteus  1.8.1
C/C++/Fortran libraries
RANS2P.cpp
Go to the documentation of this file.
1 #include "pybind11/pybind11.h"
2 #include "pybind11/stl_bind.h"
3 
4 #define FORCE_IMPORT_ARRAY
5 #include "RANS2P.h"
6 
7 namespace py = pybind11;
9 
10 #if defined(__GNUC__) && !defined(__clang__)
11  namespace workaround
12  {
13  inline void define_allocators()
14  {
15  std::allocator<int> a0;
16  std::allocator<double> a1;
17  }
18  }
19 #endif
20 
21 PYBIND11_MODULE(cRANS2P, m)
22 {
23  xt::import_numpy();
24 
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);
34 }
RANS2P.h
proteus::RANS2P_base
Definition: RANS2P.h:125
proteus::newRANS2P
RANS2P_base * newRANS2P(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nDOF_v_trial_elementIn, int nDOF_v_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition: RANS2P.h:8780
PYBIND11_MODULE
PYBIND11_MODULE(cRANS2P, m)
Definition: RANS2P.cpp:21
init
void init(void)