proteus 1.9.0
C/C++/Fortran libraries
Loading...
Searching...
No Matches
VOF3P.cpp
Go to the documentation of this file.
1#define FORCE_IMPORT_ARRAY
2#include "VOF3P.h"
3
4namespace py = pybind11;
5
6namespace 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
21{
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
PYBIND11_MODULE(cADR, m)
Definition ADR.cpp:21
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