Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103590375
test_patch_linear_heat_transfer_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
Mon, Mar 3, 05:15
Size
970 B
Mime Type
text/x-python
Expires
Wed, Mar 5, 05:15 (22 h, 21 m)
Engine
blob
Format
Raw Data
Handle
24587364
Attached To
rAKA akantu
test_patch_linear_heat_transfer_static.py
View Options
#!/usr/bin/env python3
"""test_patch_linear_heat_transfer_static.py: heat transfer patch test in
python"""
__author__
=
"Nicolas Richart"
__credits__
=
[
"Nicolas Richart <nicolas.richart@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_heat_transfer_fixture
import
TestPatchTestHTMLinear
import
akantu
def
foo
(
self
):
self
.
initModel
(
akantu
.
_static
,
"heat_transfer_input.dat"
)
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
():
TestPatchTestHTMLinear
.
TYPED_TEST
(
foo
,
"Static"
)
if
'pytest'
not
in
sys
.
modules
:
test
()
Event Timeline
Log In to Comment