Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79927420
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
Thu, Aug 29, 00:26
Size
610 B
Mime Type
text/x-python
Expires
Sat, Aug 31, 00:26 (2 d)
Engine
blob
Format
Raw Data
Handle
20191260
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
import
unittest
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
.
_scc_residual
)
self
.
model
.
solveStep
()
self
.
checkAll
()
TestPatchTestSMMLinear
.
TYPED_TEST
(
foo
,
"Static"
)
Event Timeline
Log In to Comment