Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80631416
test_patch_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
Sun, Sep 1, 18:52
Size
1 KB
Mime Type
text/x-python
Expires
Tue, Sep 3, 18:52 (2 d)
Engine
blob
Format
Raw Data
Handle
20359355
Attached To
rAKA akantu
test_patch_linear_elastic_static.py
View Options
#!/usr/bin/env python3
""" test_patch_linear_elastic_static.py: static patch test in python"""
__author__
=
"Guillaume Anciaux"
__credits__
=
[
"Guillaume Anciaux <guillaume.anciaux@epfl.ch>"
,
]
__copyright__
=
"Copyright (©) 2016-2021 EPFL (Ecole Polytechnique Fédérale"
\
" de Lausanne) Laboratory (LSMS - Laboratoire de Simulation"
\
" en Mécanique des Solides)"
__license__
=
"LGPLv3"
import
sys
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
.
_static
,
filename
)
solver
=
self
.
model
.
getNonLinearSolver
()
solver
.
set
(
"max_iterations"
,
2
)
solver
.
set
(
"threshold"
,
2e-4
)
solver
.
set
(
"convergence_type"
,
akantu
.
SolveConvergenceCriteria
.
residual
)
self
.
model
.
solveStep
()
self
.
checkAll
()
def
test
():
TestPatchTestSMMLinear
.
TYPED_TEST
(
foo
,
"Static"
)
if
'pytest'
not
in
sys
.
modules
:
test
()
Event Timeline
Log In to Comment