Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82419440
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
Wed, Sep 11, 07:41
Size
858 B
Mime Type
text/x-c
Expires
Fri, Sep 13, 07:41 (2 d)
Engine
blob
Format
Raw Data
Handle
20688561
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
();
}
auto
eth
=
this
->
model
->
getEnergy
(
"thermal"
);
EXPECT_NEAR
(
0
,
eth
,
1e-16
);
this
->
checkAll
();
}
Event Timeline
Log In to Comment