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

Go to the source code of this file.

Functions

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

Function Documentation

◆ TEST_F() [1/11]

TEST_F ( FlibeFluidPropertiesTest  ,
fluidName   
)

Test that the fluid name is correctly returned.

Definition at line 16 of file FlibeFluidPropertiesTest.C.

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

◆ TEST_F() [2/11]

TEST_F ( FlibeFluidPropertiesTest  ,
molarMass   
)

Test that the molar mass is correctly returned.

Definition at line 21 of file FlibeFluidPropertiesTest.C.

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

◆ TEST_F() [3/11]

TEST_F ( FlibeFluidPropertiesTest  ,
thermalConductivity   
)

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

Definition at line 30 of file FlibeFluidPropertiesTest.C.

31 {
32  const Real T = 800.0;
33  const Real p = 2.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 = 1.030000000000000027e+00;
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 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string v
Definition: NS.h:84
static const std::string k
Definition: NS.h:130

◆ TEST_F() [4/11]

TEST_F ( FlibeFluidPropertiesTest  ,
viscosity   
)

Test that the viscosity and its derivatives are correctly computed.

Definition at line 46 of file FlibeFluidPropertiesTest.C.

47 {
48  const Real T = 800.0;
49  const Real p = 2.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 = 1.267440888533459542e-02;
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 }
static const std::string mu
Definition: NS.h:123
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string v
Definition: NS.h:84

◆ TEST_F() [5/11]

TEST_F ( FlibeFluidPropertiesTest  ,
isobaricSpecificHeat   
)

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

Definition at line 62 of file FlibeFluidPropertiesTest.C.

63 {
64  const Real T = 800.0;
65  const Real p = 2.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 = 2416.;
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 }
static const std::string cp
Definition: NS.h:121
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string v
Definition: NS.h:84

◆ TEST_F() [6/11]

TEST_F ( FlibeFluidPropertiesTest  ,
isochoricSpecificHeat   
)

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

Definition at line 79 of file FlibeFluidPropertiesTest.C.

80 {
81  const Real T = 800.0;
82  const Real p = 2.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), 1.0219369260016974e+03, REL_TOL_SAVED_VALUE);
87  DERIV_TEST(_fp->cv_from_v_e, v, e, REL_TOL_DERIVATIVE);
88 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string v
Definition: NS.h:84

◆ TEST_F() [7/11]

TEST_F ( FlibeFluidPropertiesTest  ,
density   
)

Test that the density and its derivatives are correctly computed.

Definition at line 93 of file FlibeFluidPropertiesTest.C.

94 {
95  const Real T = 800.0;
96  const Real p = 2.0 * 101325;
97 
98  ABS_TEST(_fp->rho_from_p_T(p, T), 2.0222975535430000e+03, REL_TOL_SAVED_VALUE);
99  DERIV_TEST(_fp->rho_from_p_T, p, T, REL_TOL_DERIVATIVE);
100 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ TEST_F() [8/11]

TEST_F ( FlibeFluidPropertiesTest  ,
specificInternalEnergy   
)

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

Definition at line 105 of file FlibeFluidPropertiesTest.C.

106 {
107  const Real T = 800.0;
108  const Real p = 2.0 * 101325;
109  const Real e = 1.9326997921944547e+06;
110 
111  ABS_TEST(_fp->e_from_p_T(p, T), e, REL_TOL_SAVED_VALUE);
112  DERIV_TEST(_fp->e_from_p_T, p, T, REL_TOL_DERIVATIVE);
113 
114  ABS_TEST(_fp->e_from_p_rho(p, _fp->rho_from_p_T(p, T)), e, REL_TOL_SAVED_VALUE);
115 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ TEST_F() [9/11]

TEST_F ( FlibeFluidPropertiesTest  ,
pressure   
)

Test that the pressure and its derivatives are correctly computed.

Definition at line 120 of file FlibeFluidPropertiesTest.C.

121 {
122  const Real T = 800.0;
123  const Real p = 2.0 * 101325;
124  const Real e = _fp->e_from_p_T(p, T);
125  const Real v = 1. / _fp->rho_from_p_T(p, T);
126 
127  // A slightly larger tolerance is required for the pressure because the
128  // compressibility is so small we are polluted by a little numerical error.
129  REL_TEST(_fp->p_from_v_e(v, e), p, 2e-11);
130  DERIV_TEST(_fp->p_from_v_e, v, e, REL_TOL_DERIVATIVE);
131 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string v
Definition: NS.h:84

◆ TEST_F() [10/11]

TEST_F ( FlibeFluidPropertiesTest  ,
temperature   
)

Test that the temperature and its derivatives are correctly computed.

Definition at line 136 of file FlibeFluidPropertiesTest.C.

137 {
138  const Real T = 800.0;
139  const Real p = 2.0 * 101325;
140  const Real e = _fp->e_from_p_T(p, T);
141  const Real h = _fp->h_from_p_T(p, T);
142  const Real v = 1. / _fp->rho_from_p_T(p, T);
143 
144  REL_TEST(_fp->T_from_v_e(v, e), T, REL_TOL_SAVED_VALUE);
145  DERIV_TEST(_fp->T_from_v_e, v, e, REL_TOL_DERIVATIVE);
146 
147  REL_TEST(_fp->T_from_p_rho(p, 1. / v), T, REL_TOL_SAVED_VALUE);
148  REL_TEST(_fp->T_from_p_h(p, h), T, REL_TOL_SAVED_VALUE);
149 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string v
Definition: NS.h:84

◆ TEST_F() [11/11]

TEST_F ( FlibeFluidPropertiesTest  ,
specificEnthalpy   
)

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

Definition at line 154 of file FlibeFluidPropertiesTest.C.

155 {
156  const Real T = 800.0;
157  const Real p = 2.0 * 101325;
158 
159  ABS_TEST(_fp->h_from_p_T(p, T), 1.932800000000000000e+06, REL_TOL_SAVED_VALUE);
160  DERIV_TEST(_fp->h_from_p_T, p, T, REL_TOL_DERIVATIVE);
161 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real