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

Go to the source code of this file.

Functions

 TEST_F (FlinakFluidPropertiesTest, fluidName)
 Test that the fluid name is correctly returned.
 
 TEST_F (FlinakFluidPropertiesTest, molarMass)
 Test that the molar mass is correctly returned.
 
 TEST_F (FlinakFluidPropertiesTest, thermalConductivity)
 Test that the thermal conductivity and its derivatives are correctly computed.
 
 TEST_F (FlinakFluidPropertiesTest, viscosity)
 Test that the viscosity and its derivatives are correctly computed.
 
 TEST_F (FlinakFluidPropertiesTest, isobaricSpecificHeat)
 Test that the isobaric specific heat and its derivatives are correctly computed.
 
 TEST_F (FlinakFluidPropertiesTest, isochoricSpecificHeat)
 Test that the isochoric specific heat and its derivatives are correctly computed.
 
 TEST_F (FlinakFluidPropertiesTest, density)
 Test that the density and its derivatives are correctly computed.
 
 TEST_F (FlinakFluidPropertiesTest, specificInternalEnergy)
 Test that the specific internal energy and its derivatives are correctly computed.
 
 TEST_F (FlinakFluidPropertiesTest, pressure)
 Test that the pressure and its derivatives are correctly computed.
 
 TEST_F (FlinakFluidPropertiesTest, temperature)
 Test that the temperature and its derivatives are correctly computed.
 
 TEST_F (FlinakFluidPropertiesTest, specificEnthalpy)
 Test that the specific enthalpy and its derivatives are correctly computed.
 

Function Documentation

◆ TEST_F() [1/11]

TEST_F ( FlinakFluidPropertiesTest  ,
density   
)

Test that the density and its derivatives are correctly computed.

Definition at line 94 of file FlinakFluidPropertiesTest.C.

95{
96 const Real T = 800.0;
97 const Real p = 3.0 * 101325;
98
99 ABS_TEST(_fp->rho_from_p_T(p, T), 2145.035107086000153, REL_TOL_SAVED_VALUE);
100 DERIV_TEST(_fp->rho_from_p_T, p, T, 4.0e-6);
101}
const Real p
const double T
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ TEST_F() [2/11]

TEST_F ( FlinakFluidPropertiesTest  ,
fluidName   
)

Test that the fluid name is correctly returned.

Definition at line 16 of file FlinakFluidPropertiesTest.C.

16{ EXPECT_EQ(_fp->fluidName(), "flinak"); }

◆ TEST_F() [3/11]

TEST_F ( FlinakFluidPropertiesTest  ,
isobaricSpecificHeat   
)

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

Definition at line 62 of file FlinakFluidPropertiesTest.C.

63{
64 const Real T = 800.0;
65 const Real p = 3.0 * 101325;
66 const Real e = _fp->e_from_p_T(p, T);
67 const Real v = 1. / _fp->rho_from_p_T(p, T);
68 const Real cp = 2010.;
69
70 REL_TEST(_fp->cp_from_v_e(v, e), cp, REL_TOL_SAVED_VALUE);
71 REL_TEST(_fp->cp_from_p_T(p, T), cp, REL_TOL_SAVED_VALUE);
72 DERIV_TEST(_fp->cp_from_p_T, p, T, REL_TOL_DERIVATIVE);
73 DERIV_TEST(_fp->cp_from_v_e, v, e, REL_TOL_DERIVATIVE);
74}
const double v

◆ TEST_F() [4/11]

TEST_F ( FlinakFluidPropertiesTest  ,
isochoricSpecificHeat   
)

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

Definition at line 79 of file FlinakFluidPropertiesTest.C.

80{
81 const Real T = 800.0;
82 const Real p = 3.0 * 101325;
83 const Real e = _fp->e_from_p_T(p, T);
84 const Real v = 1. / _fp->rho_from_p_T(p, T);
85
86 REL_TEST(_fp->cv_from_v_e(v, e), 45.55316141330309, REL_TOL_SAVED_VALUE);
87 DERIV_TEST(_fp->cv_from_v_e, v, e, REL_TOL_DERIVATIVE);
88 DERIV_TEST(_fp->cv_from_p_T, p, T, 5 * REL_TOL_DERIVATIVE);
89}

◆ TEST_F() [5/11]

TEST_F ( FlinakFluidPropertiesTest  ,
molarMass   
)

Test that the molar mass is correctly returned.

Definition at line 21 of file FlinakFluidPropertiesTest.C.

22{
23 ABS_TEST(_fp->molarMass(), 41.291077435E-3, REL_TOL_SAVED_VALUE);
24}

◆ TEST_F() [6/11]

TEST_F ( FlinakFluidPropertiesTest  ,
pressure   
)

Test that the pressure and its derivatives are correctly computed.

Definition at line 121 of file FlinakFluidPropertiesTest.C.

122{
123 const Real T = 800.0;
124 const Real p = 3.0 * 101325;
125 const Real e = _fp->e_from_p_T(p, T);
126 const Real v = 1. / _fp->rho_from_p_T(p, T);
127
128 // test pressure and its derivatives with respect to v and e. We need a slightly
129 // larger tolerance for pressure because the compressibility is so small we are
130 // polluted by a little numerical error.
131 REL_TEST(_fp->p_from_v_e(v, e), p, 6e-11);
132 DERIV_TEST(_fp->p_from_v_e, v, e, 2e-9);
133}

◆ TEST_F() [7/11]

TEST_F ( FlinakFluidPropertiesTest  ,
specificEnthalpy   
)

Test that the specific enthalpy and its derivatives are correctly computed.

Definition at line 156 of file FlinakFluidPropertiesTest.C.

157{
158 const Real T = 800.0;
159 const Real p = 3.0 * 101325;
160
161 ABS_TEST(_fp->h_from_p_T(p, T), 1.608e+06, REL_TOL_SAVED_VALUE);
162 DERIV_TEST(_fp->h_from_p_T, p, T, REL_TOL_DERIVATIVE);
163}

◆ TEST_F() [8/11]

TEST_F ( FlinakFluidPropertiesTest  ,
specificInternalEnergy   
)

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

Definition at line 106 of file FlinakFluidPropertiesTest.C.

107{
108 const Real T = 800.0;
109 const Real p = 3.0 * 101325;
110 const Real e = 1607858.289032661588863;
111
112 ABS_TEST(_fp->e_from_p_T(p, T), e, REL_TOL_SAVED_VALUE);
113 DERIV_TEST(_fp->e_from_p_T, p, T, REL_TOL_DERIVATIVE);
114
115 ABS_TEST(_fp->e_from_p_rho(p, _fp->rho_from_p_T(p, T)), e, REL_TOL_SAVED_VALUE);
116}

◆ TEST_F() [9/11]

TEST_F ( FlinakFluidPropertiesTest  ,
temperature   
)

Test that the temperature and its derivatives are correctly computed.

Definition at line 138 of file FlinakFluidPropertiesTest.C.

139{
140 const Real T = 800.0;
141 const Real p = 3.0 * 101325;
142 const Real e = _fp->e_from_p_T(p, T);
143 const Real h = _fp->h_from_p_T(p, T);
144 const Real v = 1. / _fp->rho_from_p_T(p, T);
145
146 REL_TEST(_fp->T_from_v_e(v, e), T, REL_TOL_SAVED_VALUE);
147 DERIV_TEST(_fp->T_from_v_e, v, e, REL_TOL_DERIVATIVE);
148
149 REL_TEST(_fp->T_from_p_rho(p, 1. / v), T, REL_TOL_SAVED_VALUE);
150 REL_TEST(_fp->T_from_p_h(p, h), T, REL_TOL_SAVED_VALUE);
151}

◆ TEST_F() [10/11]

TEST_F ( FlinakFluidPropertiesTest  ,
thermalConductivity   
)

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

Definition at line 30 of file FlinakFluidPropertiesTest.C.

31{
32 const Real T = 800.0;
33 const Real p = 3.0 * 101325;
34 const Real e = _fp->e_from_p_T(p, T);
35 const Real v = 1. / _fp->rho_from_p_T(p, T);
36 const Real k = 0.83;
37
38 REL_TEST(_fp->k_from_v_e(v, e), k, REL_TOL_SAVED_VALUE);
39 REL_TEST(_fp->k_from_p_T(p, T), k, REL_TOL_SAVED_VALUE);
40 DERIV_TEST(_fp->k_from_p_T, p, T, REL_TOL_DERIVATIVE);
41}

◆ TEST_F() [11/11]

TEST_F ( FlinakFluidPropertiesTest  ,
viscosity   
)

Test that the viscosity and its derivatives are correctly computed.

Definition at line 46 of file FlinakFluidPropertiesTest.C.

47{
48 const Real T = 800.0;
49 const Real p = 3.0 * 101325;
50 const Real e = _fp->e_from_p_T(p, T);
51 const Real v = 1. / _fp->rho_from_p_T(p, T);
52 const Real mu = 0.0073420946394096;
53
54 REL_TEST(_fp->mu_from_v_e(v, e), mu, REL_TOL_SAVED_VALUE);
55 REL_TEST(_fp->mu_from_p_T(p, T), mu, REL_TOL_SAVED_VALUE);
56 DERIV_TEST(_fp->mu_from_p_T, p, T, REL_TOL_DERIVATIVE);
57}
const double mu