Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80923155
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
Tue, Sep 3, 06:53
Size
584 B
Mime Type
text/x-python
Expires
Thu, Sep 5, 06:53 (2 d)
Engine
blob
Format
Raw Data
Handle
20368607
Attached To
rAKA akantu
patch_test_linear_heat_transfer_explicit.py
View Options
#!/usr/bin/env python3
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
()
TestPatchTestHTMLinear
.
TYPED_TEST
(
foo
,
"Explicit"
)
Event Timeline
Log In to Comment