https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Functions
ThermalUCPropertiesTest.C File Reference

Go to the source code of this file.

Functions

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

Function Documentation

◆ TEST_F() [1/4]

TEST_F ( ThermalUCPropertiesTest  ,
cp   
)

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

Definition at line 34 of file ThermalUCPropertiesTest.C.

35{
36 Real T;
37
38 T = 800.0;
39 REL_TEST(_sp1->cp_from_T(T), 241.46200375, 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), 227.6146, REL_TOL_SAVED_VALUE);
44 DERIV_TEST(_sp1->cp_from_T, T, REL_TOL_DERIVATIVE);
45}
const double T
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ TEST_F() [2/4]

TEST_F ( ThermalUCPropertiesTest  ,
 
)

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

Definition at line 51 of file ThermalUCPropertiesTest.C.

52{
53 const Real T = 800.0;
54 REL_TEST(_sp1->e_from_T(T), 119328.29374852851, REL_TOL_SAVED_VALUE);
55 SPECIFIC_INTERNAL_ENERGY_TESTS(_sp1, T, 1e-6, 1e-6);
56}

◆ TEST_F() [3/4]

TEST_F ( ThermalUCPropertiesTest  ,
 
)

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

Definition at line 17 of file ThermalUCPropertiesTest.C.

18{
19 Real T;
20
21 T = 800.0;
22 REL_TEST(_sp1->k_from_T(T), 21.578400000000002, 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), 21.0825, REL_TOL_SAVED_VALUE);
27 DERIV_TEST(_sp1->k_from_T, T, REL_TOL_DERIVATIVE);
28}

◆ TEST_F() [4/4]

TEST_F ( ThermalUCPropertiesTest  ,
rho   
)

Test that the density and its derivatives are correctly computed.

Definition at line 62 of file ThermalUCPropertiesTest.C.

63{
64 Real T = 800.0;
65
66 REL_TEST(_sp1->rho_from_T(T), 13824.7, REL_TOL_SAVED_VALUE);
67 DERIV_TEST(_sp1->rho_from_T, T, REL_TOL_DERIVATIVE);
68
69 REL_TEST(_sp2->rho_from_T(T), 13000.0, REL_TOL_SAVED_VALUE);
70 DERIV_TEST(_sp2->rho_from_T, T, REL_TOL_DERIVATIVE);
71}