https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
12
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
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
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
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}
const double rho
const double T
TEST_F(ThermalFunctionSolidPropertiesTest, k)
Test that the thermal conductivity and its derivatives are correctly computed.