thermophysicalPropertiesSelectorI.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2017-2018 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
27 
28 template<class ThermophysicalProperties>
29 inline const ThermophysicalProperties&
31 ::properties() const
32 {
33  return propertiesPtr_();
34 }
35 
36 template<class ThermophysicalProperties>
37 inline Foam::scalar
39 {
40  return propertiesPtr_->W();
41 }
42 
43 
44 template<class ThermophysicalProperties>
45 inline Foam::scalar
47 (
48  const scalar T
49 ) const
50 {
51  return propertiesPtr_->limit(T);
52 }
53 
54 
55 template<class ThermophysicalProperties>
56 inline Foam::scalar
58 (
59  scalar p,
60  scalar T
61 ) const
62 {
63  return propertiesPtr_->rho(p, T);
64 }
65 
66 
67 template<class ThermophysicalProperties>
68 inline Foam::scalar
70 (
71  scalar p,
72  scalar T
73 ) const
74 {
75  return propertiesPtr_->psi(p, T);
76 }
77 
78 
79 template<class ThermophysicalProperties>
80 inline Foam::scalar
82 (
83  scalar p,
84  scalar T
85 ) const
86 {
87  return propertiesPtr_->CpMCv(p, T);
88 }
89 
90 
91 template<class ThermophysicalProperties>
92 inline Foam::scalar
94 (
95  scalar p,
96  scalar T
97 ) const
98 {
99  return propertiesPtr_->Cp(p, T);
100 }
101 
102 
103 template<class ThermophysicalProperties>
104 inline Foam::scalar
106 (
107  scalar p,
108  scalar T
109 ) const
110 {
111  return propertiesPtr_->Ha(p, T);
112 }
113 
114 
115 template<class ThermophysicalProperties>
116 inline Foam::scalar
118 (
119  scalar p,
120  scalar T
121 ) const
122 {
123  return propertiesPtr_->Hs(p, T);
124 }
125 
126 
127 template<class ThermophysicalProperties>
128 inline Foam::scalar
130 {
131  return propertiesPtr_->Hc();
132 }
133 
134 
135 template<class ThermophysicalProperties>
136 inline Foam::scalar
138 (
139  scalar p,
140  scalar T
141 ) const
142 {
143  return propertiesPtr_->S(p, T);
144 }
145 
146 
147 template<class ThermophysicalProperties>
148 inline Foam::scalar
150 (
151  scalar p,
152  scalar T
153 ) const
154 {
155  return propertiesPtr_->mu(p, T);
156 }
157 
158 
159 template<class ThermophysicalProperties>
160 inline Foam::scalar
162 (
163  scalar p,
164  scalar T
165 ) const
166 {
167  return propertiesPtr_->kappa(p, T);
168 }
169 
170 
171 template<class ThermophysicalProperties>
172 inline Foam::scalar
174 (
175  scalar p,
176  scalar T
177 ) const
178 {
179  return propertiesPtr_->alphah(p, T);
180 }
181 
182 
183 // ************************************************************************* //
scalar kappa(scalar p, scalar T) const
Liquid thermal conductivity [W/(m K)].
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kg K)].
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar alphah(const scalar p, const scalar T) const
Liquid thermal diffusivity of enthalpy [kg/ms].
scalar rho(scalar p, scalar T) const
Liquid density [kg/m^3].
scalar W() const
Molecular weight [kg/kmol].
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
scalar S(const scalar p, const scalar T) const
scalar psi(scalar p, scalar T) const
Liquid compressibility rho/p [s^2/m^2].
const ThermophysicalProperties & properties() const
Return reference to the selected physical properties class.
scalar mu(scalar p, scalar T) const
Liquid viscosity [Pa s].
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
scalar Hc() const
Chemical enthalpy [J/kg].