https://mooseframework.inl.gov
ThermalGraphitePropertiesTest.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  T = 800.0;
22  REL_TEST(_sp1->k_from_T(T), 90.31037199999997, REL_TOL_SAVED_VALUE);
23  DERIV_TEST(_sp1->k_from_T, T, REL_TOL_DERIVATIVE);
24 
25  T = 500.0;
26  REL_TEST(_sp1->k_from_T(T), 114.97569999999999, REL_TOL_SAVED_VALUE);
27  DERIV_TEST(_sp1->k_from_T, T, REL_TOL_DERIVATIVE);
28 }
29 
35 {
36  Real T;
37 
38  T = 800.0;
39  REL_TEST(_sp1->cp_from_T(T), 1619.4403751760003, REL_TOL_SAVED_VALUE);
40  DERIV_TEST(_sp1->cp_from_T, T, REL_TOL_DERIVATIVE);
41 
42  T = 500.0;
43  REL_TEST(_sp1->cp_from_T(T), 1217.6343116400003, REL_TOL_SAVED_VALUE);
44  DERIV_TEST(_sp1->cp_from_T, T, REL_TOL_DERIVATIVE);
45 }
46 
52 {
53  const Real T = 800.0;
54  REL_TEST(_sp1->e_from_T(T), 648167.7112224712, REL_TOL_SAVED_VALUE);
55  SPECIFIC_INTERNAL_ENERGY_TESTS(_sp1, T, 1e-6, 1e-6);
56 }
57 
63 {
64  Real T = 800.0;
65 
66  REL_TEST(_sp1->rho_from_T(T), 1850.0, REL_TOL_SAVED_VALUE);
67  DERIV_TEST(_sp1->rho_from_T, T, REL_TOL_DERIVATIVE);
68 
69  REL_TEST(_sp2->rho_from_T(T), 2000.0, REL_TOL_SAVED_VALUE);
70  DERIV_TEST(_sp2->rho_from_T, T, REL_TOL_DERIVATIVE);
71 }
static const std::string cp
Definition: NS.h:121
TEST_F(ThermalGraphitePropertiesTest, k)
Test that the thermal conductivity and its derivatives are correctly computed.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string k
Definition: NS.h:130