proteus  1.8.1
C/C++/Fortran libraries
RANS3PF.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 "RANS3PF.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(cRANS3PF, m)
22 {
23  xt::import_numpy();
24 
25  py::class_<cppRANS3PF_base>(m, "cppRANS3PF_base")
27  .def("calculateResidual", &cppRANS3PF_base::calculateResidual)
28  .def("calculateJacobian", &cppRANS3PF_base::calculateJacobian)
29  .def("calculateVelocityAverage", &cppRANS3PF_base::calculateVelocityAverage)
30  .def("getBoundaryDOFs", &cppRANS3PF_base::getBoundaryDOFs);
31 }
32 
PYBIND11_MODULE
PYBIND11_MODULE(cRANS3PF, m)
Definition: RANS3PF.cpp:21
proteus::newRANS3PF
cppRANS3PF_base * newRANS3PF(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag, double aDarcy, double betaForch, double grain, double packFraction, double packMargin, double maxFraction, double frFraction, double sigmaC, double C3e, double C4e, double eR, double fContact, double mContact, double nContact, double angFriction, double vos_limiter, double mu_fr_limiter)
Definition: RANS3PF.h:7069
RANS3PF.h
init
void init(void)
proteus::cppRANS3PF_base
Definition: RANS3PF.h:53