Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92562882
patch_test_linear_heat_transfer_explicit.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, Nov 21, 12:23
Size
1 KB
Mime Type
text/x-python
Expires
Sat, Nov 23, 12:23 (1 d, 6 h)
Engine
blob
Format
Raw Data
Handle
22341428
Attached To
rAKA akantu
patch_test_linear_heat_transfer_explicit.py
View Options
#!/usr/bin/env python3
# ------------------------------------------------------------------------------
__author__
=
"Guillaume Anciaux"
__copyright__
=
"Copyright (C) 2016-2018, EPFL (Ecole Polytechnique Fédérale"
\
" de Lausanne) Laboratory (LSMS - Laboratoire de Simulation"
\
" en Mécanique des Solides)"
__credits__
=
[
"Guillaume Anciaux"
]
__license__
=
"L-GPLv3"
__maintainer__
=
"Guillaume Anciaux"
__email__
=
"guillaume.anciaux@epfl.ch"
# ------------------------------------------------------------------------------
from
patch_test_linear_heat_transfer_fixture
import
TestPatchTestHTMLinear
import
akantu
def
foo
(
self
):
self
.
initModel
(
akantu
.
HeatTransferModelOptions
(
akantu
.
_explicit_lumped_mass
),
"heat_transfer_input.dat"
)
coordinates
=
self
.
mesh
.
getNodes
()
temperature
=
self
.
model
.
getTemperature
()
# set the position of all nodes to the static solution
self
.
setLinearDOF
(
temperature
,
coordinates
)
for
s
in
range
(
0
,
100
):
self
.
model
.
solveStep
()
self
.
checkAll
()
akantu
.
initialize
()
TestPatchTestHTMLinear
.
TYPED_TEST
(
foo
,
"Explicit"
)
Event Timeline
Log In to Comment