https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ThermalMonolithicSiCPropertiesTest.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;
20
21 // Snead correlation
22 T = 800.0;
23 REL_TEST(_sp1->k_from_T(T), 123.4567901234568, REL_TOL_SAVED_VALUE);
24 DERIV_TEST(_sp1->k_from_T, T, REL_TOL_DERIVATIVE);
25
26 T = 500.0;
27 REL_TEST(_sp1->k_from_T(T), 202.02020202020205, REL_TOL_SAVED_VALUE);
28 DERIV_TEST(_sp1->k_from_T, T, REL_TOL_DERIVATIVE);
29
30 // Stone correlation
31 T = 800.0;
32 REL_TEST(_sp2->k_from_T(T), 61.516, REL_TOL_SAVED_VALUE);
33 DERIV_TEST(_sp2->k_from_T, T, REL_TOL_DERIVATIVE);
34
35 T = 500.0;
36 REL_TEST(_sp2->k_from_T(T), 79.975, REL_TOL_SAVED_VALUE);
37 DERIV_TEST(_sp2->k_from_T, T, REL_TOL_DERIVATIVE);
38}
39
45{
46 Real T;
47
48 T = 800.0;
49 REL_TEST(_sp1->cp_from_T(T), 1126.7686149999997, REL_TOL_SAVED_VALUE);
50 DERIV_TEST(_sp1->cp_from_T, T, REL_TOL_DERIVATIVE);
51
52 T = 500.0;
53 REL_TEST(_sp1->cp_from_T(T), 966.65125, REL_TOL_SAVED_VALUE);
54 DERIV_TEST(_sp1->cp_from_T, T, REL_TOL_DERIVATIVE);
55}
56
62{
63 const Real T = 800.0;
64 REL_TEST(_sp1->e_from_T(T), 504301.09074042423, REL_TOL_SAVED_VALUE);
65 SPECIFIC_INTERNAL_ENERGY_TESTS(_sp1, T, 1e-6, 1e-6);
66}
67
73{
74 Real T = 800.0;
75
76 REL_TEST(_sp1->rho_from_T(T), 3216.0, REL_TOL_SAVED_VALUE);
77 DERIV_TEST(_sp1->rho_from_T, T, REL_TOL_DERIVATIVE);
78
79 REL_TEST(_sp2->rho_from_T(T), 3000.0, REL_TOL_SAVED_VALUE);
80 DERIV_TEST(_sp2->rho_from_T, T, REL_TOL_DERIVATIVE);
81}
const double rho
const double T
TEST_F(ThermalMonolithicSiCPropertiesTest, k)
Test that the thermal conductivity and its derivatives are correctly computed.