https://mooseframework.inl.gov
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 }
29 
30 TEST_F(PBSodiumFluidPropertiesTest, volumetricThermalExpansionCoefficient)
31 {
32 
33  const Real T = 1000.0;
34  const Real p = 2.0 * 101325;
35 
36  ABS_TEST(_fp->beta_from_p_T(p, T), 0.000310107566652557, REL_TOL_SAVED_VALUE);
37 }
38 
39 TEST_F(PBSodiumFluidPropertiesTest, isobaricSpecificHeat)
40 {
41  const Real T = 1000.0;
42  const Real p = 2.0 * 101325;
43 
44  REL_TEST(_fp->cp_from_p_T(p, T), 1263.22170053911, REL_TOL_SAVED_VALUE);
45  DERIV_TEST(_fp->cp_from_p_T, p, T, REL_TOL_DERIVATIVE);
46 }
47 
48 TEST_F(PBSodiumFluidPropertiesTest, isochoricSpecificHeat)
49 {
50  const Real T = 1000.0;
51  const Real p = 2.0 * 101325;
52 
53  REL_TEST(_fp->cv_from_p_T(p, T), 1263.22170053911, REL_TOL_SAVED_VALUE);
54 }
55 
57 {
58  {
59  const Real T = 1000.0;
60  const Real p = 2.0 * 101325;
61 
62  REL_TEST(_fp->mu_from_p_T(p, T), 0.0001858273, REL_TOL_SAVED_VALUE);
63  }
64 
65  {
66  const Real rho = 779.284;
67  const Real T = 1000.0;
68 
69  REL_TEST(_fp->mu_from_rho_T(rho, T), 0.0001858273, REL_TOL_SAVED_VALUE);
70  }
71 }
72 
73 TEST_F(PBSodiumFluidPropertiesTest, thermalConductivity)
74 {
75  const Real T = 1000.0;
76  const Real p = 2.0 * 101325;
77 
78  REL_TEST(_fp->k_from_p_T(p, T), 58.3063, REL_TOL_SAVED_VALUE);
79 }
80 
82 {
83  const Real h = 1.0E+6;
84  const Real p = 2.0 * 101325;
85 
86  REL_TEST(_fp->T_from_p_h(p, h), 782.535216773276, REL_TOL_SAVED_VALUE);
87 }
static const std::string density
Definition: NS.h:33
static const std::string temperature
Definition: NS.h:59
TEST_F(PBSodiumFluidPropertiesTest, density)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real