proteus 1.9.0
C/C++/Fortran libraries
Loading...
Searching...
No Matches
VOF.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 "VOF.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
18namespace py = pybind11;
20
22{
23 xt::import_numpy();
24
25 py::class_<VOF_base>(m, "cVOF_base")
26 .def(py::init(&proteus::newVOF))
27 .def("calculateResidualElementBased" , &VOF_base::calculateResidualElementBased )
28 .def("calculateJacobian" , &VOF_base::calculateJacobian )
29 .def("FCTStep" , &VOF_base::FCTStep )
30 .def("calculateResidualEdgeBased" , &VOF_base::calculateResidualEdgeBased );
31}
PYBIND11_MODULE(cADR, m)
Definition ADR.cpp:21
virtual void calculateResidualEdgeBased(arguments_dict &args)=0
virtual void calculateJacobian(arguments_dict &args)=0
virtual void FCTStep(arguments_dict &args)=0
virtual void calculateResidualElementBased(arguments_dict &args)=0
VOF_base * newVOF(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition VOF.h:2593