proteus  1.8.1
C/C++/Fortran libraries
CLSVOF.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 "CLSVOF.h"
6 
7 #if defined(__GNUC__) && !defined(__clang__)
8  namespace workaround
9  {
10  inline void define_allocators()
11  {
12  std::allocator<int> a0;
13  std::allocator<double> a1;
14  }
15  }
16 #endif
17 
18 namespace py = pybind11;
20 using py::return_value_policy;
21 
22 PYBIND11_MODULE(cCLSVOF, m)
23 {
24  xt::import_numpy();
25 
26  py::class_<CLSVOF_base>(m, "cCLSVOF_base")
28  .def("calculateResidual" , &CLSVOF_base::calculateResidual )
29  .def("calculateJacobian" , &CLSVOF_base::calculateJacobian )
30  .def("calculateMetricsAtEOS" , &CLSVOF_base::calculateMetricsAtEOS , return_value_policy::take_ownership)
31  .def("calculateMetricsAtETS" , &CLSVOF_base::calculateMetricsAtETS , return_value_policy::take_ownership)
32  .def("normalReconstruction" , &CLSVOF_base::normalReconstruction )
33  .def("calculateRhsL2Proj" , &CLSVOF_base::calculateRhsL2Proj )
34  .def("calculateLumpedMassMatrix", &CLSVOF_base::calculateLumpedMassMatrix)
35  .def("assembleSpinUpSystem" , &CLSVOF_base::assembleSpinUpSystem )
36  .def("FCTStep" , &CLSVOF_base::FCTStep );
37 }
PYBIND11_MODULE
PYBIND11_MODULE(cCLSVOF, m)
Definition: CLSVOF.cpp:22
proteus::newCLSVOF
CLSVOF_base * newCLSVOF(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition: CLSVOF.h:2034
init
void init(void)
CLSVOF.h
proteus::CLSVOF_base
Definition: CLSVOF.h:31