Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F69519183
py_aka_common.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
Tue, Jul 2, 04:24
Size
2 KB
Mime Type
text/x-c
Expires
Thu, Jul 4, 04:24 (2 d)
Engine
blob
Format
Raw Data
Handle
18715929
Attached To
rAKA akantu
py_aka_common.cc
View Options
/* -------------------------------------------------------------------------- */
#include "aka_common.hh"
/* -------------------------------------------------------------------------- */
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
/* -------------------------------------------------------------------------- */
namespace
py
=
pybind11
;
namespace
_aka
=
akantu
;
namespace
{
py
::
module
&
register_enums
(
py
::
module
&
mod
)
{
py
::
enum_
<
_aka
::
SpatialDirection
>
(
mod
,
"SpatialDirection"
)
.
value
(
"_x"
,
_aka
::
_x
)
.
value
(
"_y"
,
_aka
::
_y
)
.
value
(
"_z"
,
_aka
::
_z
);
py
::
enum_
<
_aka
::
AnalysisMethod
>
(
mod
,
"AnalysisMethod"
)
.
value
(
"_static"
,
_aka
::
_static
)
.
value
(
"_implicit_dynamic"
,
_aka
::
_implicit_dynamic
)
.
value
(
"_explicit_lumped_mass"
,
_aka
::
_explicit_lumped_mass
)
.
value
(
"_explicit_lumped_capacity"
,
_aka
::
_explicit_lumped_capacity
)
.
value
(
"_explicit_consistent_mass"
,
_aka
::
_explicit_consistent_mass
);
py
::
enum_
<
_aka
::
NonLinearSolverType
>
(
mod
,
"NonLinearSolverType"
)
.
value
(
"_nls_linear"
,
_aka
::
_nls_linear
)
.
value
(
"_nls_newton_raphson"
,
_aka
::
_nls_newton_raphson
)
.
value
(
"_nls_newton_raphson_modified"
,
_aka
::
_nls_newton_raphson_modified
)
.
value
(
"_nls_lumped"
,
_aka
::
_nls_lumped
)
.
value
(
"_nls_auto"
,
_aka
::
_nls_auto
);
py
::
enum_
<
_aka
::
TimeStepSolverType
>
(
mod
,
"TimeStepSolverType"
)
.
value
(
"_tsst_static"
,
_aka
::
_tsst_static
)
.
value
(
"_tsst_dynamic"
,
_aka
::
_tsst_dynamic
)
.
value
(
"_tsst_dynamic_lumped"
,
_aka
::
_tsst_dynamic_lumped
)
.
value
(
"_tsst_not_defined"
,
_aka
::
_tsst_not_defined
);
py
::
enum_
<
_aka
::
IntegrationSchemeType
>
(
mod
,
"IntegrationSchemeType"
)
.
value
(
"_ist_pseudo_time"
,
_aka
::
_ist_pseudo_time
)
.
value
(
"_ist_forward_euler"
,
_aka
::
_ist_forward_euler
)
.
value
(
"_ist_trapezoidal_rule_1"
,
_aka
::
_ist_trapezoidal_rule_1
)
.
value
(
"_ist_backward_euler"
,
_aka
::
_ist_backward_euler
)
.
value
(
"_ist_central_difference"
,
_aka
::
_ist_central_difference
)
.
value
(
"_ist_fox_goodwin"
,
_aka
::
_ist_fox_goodwin
)
.
value
(
"_ist_trapezoidal_rule_2"
,
_aka
::
_ist_trapezoidal_rule_2
)
.
value
(
"_ist_linear_acceleration"
,
_aka
::
_ist_linear_acceleration
)
.
value
(
"_ist_newmark_beta"
,
_aka
::
_ist_newmark_beta
)
.
value
(
"_ist_generalized_trapezoidal"
,
_aka
::
_ist_generalized_trapezoidal
);
py
::
enum_
<
_aka
::
SolveConvergenceCriteria
>
(
mod
,
"SolveConvergenceCriteria"
)
.
value
(
"_scc_residual"
,
_aka
::
_scc_residual
)
.
value
(
"_scc_solution"
,
_aka
::
_scc_solution
)
.
value
(
"_scc_residual_mass_wgh"
,
_aka
::
_scc_residual_mass_wgh
);
py
::
enum_
<
_aka
::
CohesiveMethod
>
(
mod
,
"CohesiveMethod"
)
.
value
(
"_intrinsic"
,
_aka
::
_intrinsic
)
.
value
(
"_extrinsic"
,
_aka
::
_extrinsic
);
py
::
enum_
<
_aka
::
GhostType
>
(
mod
,
"GhostType"
)
.
value
(
"_not_ghost"
,
_aka
::
_not_ghost
)
.
value
(
"_ghost"
,
_aka
::
_ghost
)
.
value
(
"_casper"
,
_aka
::
_casper
);
return
mod
;
}
}
// namespace
Event Timeline
Log In to Comment