Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61506565
patch_test_linear_elastic_static.py
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, May 7, 02:41
Size
629 B
Mime Type
text/x-python
Expires
Thu, May 9, 02:41 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17481418
Attached To
rAKA akantu
patch_test_linear_elastic_static.py
View Options
#!/usr/bin/env python3
from
patch_test_linear_solid_mechanics_fixture
import
TestPatchTestSMMLinear
import
akantu
def
foo
(
self
):
filename
=
"material_check_stress_plane_stress.dat"
if
self
.
plane_strain
:
filename
=
"material_check_stress_plane_strain.dat"
self
.
initModel
(
akantu
.
SolidMechanicsModelOptions
(
akantu
.
_static
),
filename
)
solver
=
self
.
model
.
getNonLinearSolver
()
solver
.
set
(
"max_iterations"
,
2
)
solver
.
set
(
"threshold"
,
2e-4
)
solver
.
set
(
"convergence_type"
,
akantu
.
_scc_residual
)
self
.
model
.
solveStep
()
self
.
checkAll
()
TestPatchTestSMMLinear
.
TYPED_TEST
(
foo
,
"Static"
)
Event Timeline
Log In to Comment