https://mooseframework.inl.gov
Loading...
Searching...
No Matches
solid_properties
unit
src
ThermalFunctionSolidPropertiesTest.C
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://mooseframework.inl.gov
3
//*
4
//* All rights reserved, see COPYRIGHT for full restrictions
5
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6
//*
7
//* Licensed under LGPL 2.1, please see LICENSE for details
8
//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10
#include "
SolidPropertiesTestUtils.h
"
11
#include "
ThermalFunctionSolidPropertiesTest.h
"
12
17
TEST_F
(
ThermalFunctionSolidPropertiesTest
, k)
18
{
19
Real
T
= 10.0;
20
21
REL_TEST(_sp->k_from_T(
T
), 7.121, REL_TOL_SAVED_VALUE);
22
DERIV_TEST(_sp->k_from_T,
T
, REL_TOL_DERIVATIVE);
23
}
24
29
TEST_F
(
ThermalFunctionSolidPropertiesTest
, cp)
30
{
31
Real
T
= 800.0;
32
33
REL_TEST(_sp->cp_from_T(
T
), 1200.0, REL_TOL_SAVED_VALUE);
34
DERIV_TEST(_sp->cp_from_T,
T
, REL_TOL_DERIVATIVE);
35
}
36
41
TEST_F
(
ThermalFunctionSolidPropertiesTest
, e)
42
{
43
const
Real
T
= 800.0;
44
REL_TEST(_sp->e_from_T(
T
), 536850.0, REL_TOL_SAVED_VALUE);
45
SPECIFIC_INTERNAL_ENERGY_TESTS(_sp,
T
, 1e-6, 1e-6);
46
}
47
52
TEST_F
(
ThermalFunctionSolidPropertiesTest
,
rho
)
53
{
54
Real
T
= 10.0;
55
56
REL_TEST(_sp->rho_from_T(
T
), 110.0, REL_TOL_SAVED_VALUE);
57
DERIV_TEST(_sp->rho_from_T,
T
, REL_TOL_DERIVATIVE);
58
}
rho
const double rho
Definition
GasLiquidMassTransferTest.C:27
T
const double T
Definition
GasLiquidMassTransferTest.C:19
SolidPropertiesTestUtils.h
TEST_F
TEST_F(ThermalFunctionSolidPropertiesTest, k)
Test that the thermal conductivity and its derivatives are correctly computed.
Definition
ThermalFunctionSolidPropertiesTest.C:17
ThermalFunctionSolidPropertiesTest.h
ThermalFunctionSolidPropertiesTest
Definition
ThermalFunctionSolidPropertiesTest.h:17
Generated on Fri Aug 21 2026 13:41:47 for https://mooseframework.inl.gov by
1.9.8