https://mooseframework.inl.gov
Loading...
Searching...
No Matches
subchannel
unit
src
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
10
#include "
SinglePhaseFluidPropertiesTestUtils.h
"
11
#include "
PBSodiumFluidPropertiesTest.h
"
12
13
TEST_F
(
PBSodiumFluidPropertiesTest
, density)
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
22
TEST_F
(
PBSodiumFluidPropertiesTest
, specificEnthalpy)
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
31
TEST_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
40
TEST_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
49
TEST_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
57
TEST_F
(
PBSodiumFluidPropertiesTest
, viscosity)
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
74
TEST_F
(
PBSodiumFluidPropertiesTest
, thermalConductivity)
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
82
TEST_F
(
PBSodiumFluidPropertiesTest
, temperature)
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
}
p
const Real p
Definition
GasLiquidMassTransferTest.C:18
rho
const double rho
Definition
GasLiquidMassTransferTest.C:27
T
const double T
Definition
GasLiquidMassTransferTest.C:19
TEST_F
TEST_F(PBSodiumFluidPropertiesTest, density)
Definition
PBSodiumFluidPropertiesTest.C:13
PBSodiumFluidPropertiesTest.h
SinglePhaseFluidPropertiesTestUtils.h
PBSodiumFluidPropertiesTest
Definition
PBSodiumFluidPropertiesTest.h:16
Generated on Fri Sep 11 2026 20:37:04 for https://mooseframework.inl.gov by
1.9.8