https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PBSodiumFluidPropertiesTest.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
14{
15 const Real T = 1000.0;
16 const Real p = 2.0 * 101325;
17
18 ABS_TEST(_fp->rho_from_p_T(p, T), 779.284, REL_TOL_SAVED_VALUE);
19 DERIV_TEST(_fp->rho_from_p_T, p, T, REL_TOL_DERIVATIVE);
20}
21
23{
24 const Real T = 1000.0;
25 const Real p = 2.0 * 101325;
26
27 ABS_TEST(_fp->h_from_p_T(p, T), 1.274762047677502967e+06, 1000 * REL_TOL_SAVED_VALUE);
28 DERIV_TEST(_fp->h_from_p_T, p, T, REL_TOL_DERIVATIVE);
29}
30
31TEST_F(PBSodiumFluidPropertiesTest, volumetricThermalExpansionCoefficient)
32{
33
34 const Real T = 1000.0;
35 const Real p = 2.0 * 101325;
36
37 ABS_TEST(_fp->beta_from_p_T(p, T), 0.000310107566652557, REL_TOL_SAVED_VALUE);
38}
39
40TEST_F(PBSodiumFluidPropertiesTest, isobaricSpecificHeat)
41{
42 const Real T = 1000.0;
43 const Real p = 2.0 * 101325;
44
45 REL_TEST(_fp->cp_from_p_T(p, T), 1263.22170053911, REL_TOL_SAVED_VALUE);
46 DERIV_TEST(_fp->cp_from_p_T, p, T, REL_TOL_DERIVATIVE);
47}
48
49TEST_F(PBSodiumFluidPropertiesTest, isochoricSpecificHeat)
50{
51 const Real T = 1000.0;
52 const Real p = 2.0 * 101325;
53
54 REL_TEST(_fp->cv_from_p_T(p, T), 1263.22170053911, REL_TOL_SAVED_VALUE);
55}
56
58{
59 {
60 const Real T = 1000.0;
61 const Real p = 2.0 * 101325;
62
63 REL_TEST(_fp->mu_from_p_T(p, T), 0.0001858273, REL_TOL_SAVED_VALUE);
64 }
65
66 {
67 const Real rho = 779.284;
68 const Real T = 1000.0;
69
70 REL_TEST(_fp->mu_from_rho_T(rho, T), 0.0001858273, REL_TOL_SAVED_VALUE);
71 }
72}
73
75{
76 const Real T = 1000.0;
77 const Real p = 2.0 * 101325;
78
79 REL_TEST(_fp->k_from_p_T(p, T), 58.3063, REL_TOL_SAVED_VALUE);
80}
81
83{
84 const Real h = 1.0E+6;
85 const Real p = 2.0 * 101325;
86
87 REL_TEST(_fp->T_from_p_h(p, h), 782.535216773276, REL_TOL_SAVED_VALUE);
88}
const Real p
const double rho
const double T
TEST_F(PBSodiumFluidPropertiesTest, density)