proteus  1.8.1
C/C++/Fortran libraries
VOF3P.cpp
Go to the documentation of this file.
1 #define FORCE_IMPORT_ARRAY
2 #include "VOF3P.h"
3 
4 namespace py = pybind11;
5 
6 namespace xt
7 {
8 #if defined(__GNUC__) && !defined(__clang__)
9  namespace workaround
10  {
11  inline void complex_allocator()
12  {
13  std::allocator<int> ai;
14  std::allocator<double> ad;
15  }
16  }
17 #endif
18 }
19 
20 PYBIND11_MODULE(cVOF3P, m)
21 {
23  using proteus::newVOF3P;
24 
25  xt::import_numpy();
26 
27  py::class_<cppVOF3P_base>(m, "cppVOF3P_base")
28  .def("calculateResidualElementBased", &cppVOF3P_base::calculateResidualElementBased)
29  .def("calculateJacobian", &cppVOF3P_base::calculateJacobian)
30  .def("FCTStep", &cppVOF3P_base::FCTStep)
31  .def("calculateResidualEdgeBased", &cppVOF3P_base::calculateResidualEdgeBased);
32 
33  m.def("newVOF3P", newVOF3P);
34 }
35 
proteus::newVOF3P
cppVOF3P_base * newVOF3P(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition: VOF3P.h:2025
VOF3P.h
PYBIND11_MODULE
PYBIND11_MODULE(cVOF3P, m)
Definition: VOF3P.cpp:20
xt
Definition: AddedMass.cpp:7
proteus::cppVOF3P_base
Definition: VOF3P.h:44