https://mooseframework.inl.gov
Functions
ThermalFunctionSolidPropertiesTest.C File Reference

Go to the source code of this file.

Functions

 TEST_F (ThermalFunctionSolidPropertiesTest, k)
 Test that the thermal conductivity and its derivatives are correctly computed. More...
 
 TEST_F (ThermalFunctionSolidPropertiesTest, cp)
 Test that the isobaric specific heat capacity and its derivatives are correctly computed. More...
 
 TEST_F (ThermalFunctionSolidPropertiesTest, e)
 Test that the specific internal energy and its derivatives are correctly computed. More...
 
 TEST_F (ThermalFunctionSolidPropertiesTest, rho)
 Test that the density and its derivatives are correctly computed. More...
 

Function Documentation

◆ TEST_F() [1/4]

TEST_F ( ThermalFunctionSolidPropertiesTest  ,
 
)

Test that the thermal conductivity and its derivatives are correctly computed.

Definition at line 17 of file ThermalFunctionSolidPropertiesTest.C.

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 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ TEST_F() [2/4]

TEST_F ( ThermalFunctionSolidPropertiesTest  ,
cp   
)

Test that the isobaric specific heat capacity and its derivatives are correctly computed.

Definition at line 29 of file ThermalFunctionSolidPropertiesTest.C.

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 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ TEST_F() [3/4]

TEST_F ( ThermalFunctionSolidPropertiesTest  ,
 
)

Test that the specific internal energy and its derivatives are correctly computed.

Definition at line 41 of file ThermalFunctionSolidPropertiesTest.C.

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 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ TEST_F() [4/4]

TEST_F ( ThermalFunctionSolidPropertiesTest  ,
rho   
)

Test that the density and its derivatives are correctly computed.

Definition at line 52 of file ThermalFunctionSolidPropertiesTest.C.

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 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real