Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80200009
patch_test_linear_heat_transfer_explicit.cc
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
Fri, Aug 30, 10:15
Size
779 B
Mime Type
text/x-c
Expires
Sun, Sep 1, 10:15 (2 d)
Engine
blob
Format
Raw Data
Handle
20181293
Attached To
rAKA akantu
patch_test_linear_heat_transfer_explicit.cc
View Options
/* -------------------------------------------------------------------------- */
#include "patch_test_linear_heat_transfer_fixture.hh"
/* -------------------------------------------------------------------------- */
TYPED_TEST
(
TestPatchTestHTMLinear
,
Explicit
)
{
this
->
initModel
(
_explicit_lumped_mass
,
"heat_transfer_input.dat"
);
const
auto
&
coordinates
=
this
->
mesh
->
getNodes
();
auto
&
temperature
=
this
->
model
->
getTemperature
();
// set the position of all nodes to the static solution
for
(
auto
&&
tuple
:
zip
(
make_view
(
coordinates
,
this
->
dim
),
make_view
(
temperature
,
1
)))
{
this
->
setLinearDOF
(
std
::
get
<
1
>
(
tuple
),
std
::
get
<
0
>
(
tuple
));
}
for
(
UInt
s
=
0
;
s
<
100
;
++
s
)
{
this
->
model
->
solveStep
();
}
this
->
checkAll
();
}
Event Timeline
Log In to Comment