Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80129399
py_aka_solid_mechanics_model_cohesive.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Aug 30, 01:23
Size
2 KB
Mime Type
text/x-c
Expires
Sun, Sep 1, 01:23 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20154841
Attached To
rAKA akantu
py_aka_solid_mechanics_model_cohesive.cc
View Options
/* -------------------------------------------------------------------------- */
#include "py_aka_array.hh"
/* -------------------------------------------------------------------------- */
#include <non_linear_solver.hh>
#include <solid_mechanics_model_cohesive.hh>
/* -------------------------------------------------------------------------- */
#include <pybind11/operators.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
/* -------------------------------------------------------------------------- */
namespace
py
=
pybind11
;
/* -------------------------------------------------------------------------- */
namespace
akantu
{
/* -------------------------------------------------------------------------- */
#define def_deprecated(func_name, mesg) \
def(func_name, [](py::args, py::kwargs) { AKANTU_ERROR(mesg); })
#define def_function_nocopy(func_name) \
def(#func_name, \
[](SolidMechanicsModel & self) -> decltype(auto) { \
return self.func_name(); \
}, \
py::return_value_policy::reference)
#define def_function(func_name) \
def(#func_name, [](SolidMechanicsModel & self) -> decltype(auto) { \
return self.func_name(); \
})
/* -------------------------------------------------------------------------- */
[[
gnu
::
visibility
(
"default"
)]]
void
register_solid_mechanics_model_cohesive
(
py
::
module
&
mod
)
{
py
::
class_
<
SolidMechanicsModelCohesiveOptions
,
SolidMechanicsModelOptions
>
(
mod
,
"SolidMechanicsModelCohesiveOptions"
)
.
def
(
py
::
init
<
AnalysisMethod
,
bool
>
(),
py
::
arg
(
"analysis_method"
)
=
_explicit_lumped_mass
,
py
::
arg
(
"extrinsic"
)
=
false
);
py
::
class_
<
SolidMechanicsModelCohesive
,
SolidMechanicsModel
>
(
mod
,
"SolidMechanicsModelCohesive"
)
.
def
(
py
::
init
<
Mesh
&
,
UInt
,
const
ID
&
,
const
MemoryID
&>
(),
py
::
arg
(
"mesh"
),
py
::
arg
(
"spatial_dimension"
)
=
_all_dimensions
,
py
::
arg
(
"id"
)
=
"solid_mechanics_model"
,
py
::
arg
(
"memory_id"
)
=
0
)
.
def
(
"checkCohesiveStress"
,
&
SolidMechanicsModelCohesive
::
checkCohesiveStress
);
}
}
// namespace akantu
Event Timeline
Log In to Comment