proteus
1.9.0
C/C++/Fortran libraries
Toggle main menu visibility
Loading...
Searching...
No Matches
work
cekees
proteus
proteus
mprans
Kappa2D.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 "
Kappa2D.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;
19
using
proteus::Kappa2D_base
;
20
21
PYBIND11_MODULE
(cKappa2D, m)
22
{
23
xt::import_numpy();
24
25
py::class_<Kappa2D_base>(m,
"cKappa2D_base"
)
26
.def(py::init(&
proteus::newKappa2D
))
27
.def(
"calculateResidual"
, &
Kappa2D_base::calculateResidual
)
28
.def(
"calculateJacobian"
, &
Kappa2D_base::calculateJacobian
);
29
}
PYBIND11_MODULE
PYBIND11_MODULE(cADR, m)
Definition
ADR.cpp:21
Kappa2D.h
Kappa2D_base::calculateJacobian
virtual void calculateJacobian(arguments_dict &args)=0
Kappa2D_base::calculateResidual
virtual void calculateResidual(arguments_dict &args)=0
proteus::Kappa2D_base
Definition
Kappa2D.h:16
proteus::newKappa2D
Kappa2D_base * newKappa2D(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
Kappa2D.h:1716
Generated on
for proteus by
1.18.0