proteus
1.9.0
C/C++/Fortran libraries
Toggle main menu visibility
Loading...
Searching...
No Matches
work
cekees
proteus
proteus
mprans
RANS2P_IB.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 "
RANS2P_IB.h
"
6
7
namespace
py = pybind11;
8
using
proteus::RANS2P_IB_base
;
9
10
#if defined(__GNUC__) && !defined(__clang__)
11
namespace
workaround
12
{
13
inline
void
define_allocators()
14
{
15
std::allocator<int> a0;
16
std::allocator<double> a1;
17
}
18
}
19
#endif
20
21
PYBIND11_MODULE
(cRANS2P_IB, m)
22
{
23
xt::import_numpy();
24
25
py::class_<RANS2P_IB_base>(m,
"cRANS2P_IB_base"
)
26
.def(py::init(&
proteus::newRANS2P_IB
))
27
.def(
"calculateResidual"
, &
RANS2P_IB_base::calculateResidual
)
28
.def(
"calculateBeams"
, &
RANS2P_IB_base::calculateBeams
)
29
.def(
"calculateJacobian"
, &
RANS2P_IB_base::calculateJacobian
)
30
.def(
"calculateForce"
, &
RANS2P_IB_base::calculateForce
)
31
.def(
"calculateVelocityAverage"
, &
RANS2P_IB_base::calculateVelocityAverage
);
32
}
PYBIND11_MODULE
PYBIND11_MODULE(cADR, m)
Definition
ADR.cpp:21
RANS2P_IB.h
RANS2P_IB_base::calculateJacobian
virtual void calculateJacobian(arguments_dict &args)=0
RANS2P_IB_base::calculateForce
virtual void calculateForce(arguments_dict &args)=0
RANS2P_IB_base::calculateResidual
virtual void calculateResidual(arguments_dict &args)=0
RANS2P_IB_base::calculateBeams
virtual void calculateBeams(arguments_dict &args)=0
RANS2P_IB_base::calculateVelocityAverage
virtual void calculateVelocityAverage(arguments_dict &args)=0
proteus::RANS2P_IB_base
Definition
RANS2P_IB.h:16
proteus::newRANS2P_IB
RANS2P_IB_base * newRANS2P_IB(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition
RANS2P_IB.h:5740
Generated on
for proteus by
1.18.0