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-2021 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_->Hs(p, T);
112 }
113 
114 
115 template<class ThermophysicalProperties>
116 inline Foam::scalar
118 {
119  return propertiesPtr_->Hf();
120 }
121 
122 
123 template<class ThermophysicalProperties>
124 inline Foam::scalar
126 (
127  scalar p,
128  scalar T
129 ) const
130 {
131  return propertiesPtr_->Ha(p, T);
132 }
133 
134 
135 template<class ThermophysicalProperties>
136 inline Foam::scalar
138 (
139  scalar p,
140  scalar T
141 ) const
142 {
143  return propertiesPtr_->Cp(p, T) - CpMCv(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_->Es(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_->Ea(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_->S(p, T);
180 }
181 
182 
183 template<class ThermophysicalProperties>
184 inline Foam::scalar
186 (
187  scalar p,
188  scalar T
189 ) const
190 {
191  return propertiesPtr_->mu(p, T);
192 }
193 
194 
195 template<class ThermophysicalProperties>
196 inline Foam::scalar
198 (
199  scalar p,
200  scalar T
201 ) const
202 {
203  return propertiesPtr_->kappa(p, T);
204 }
205 
206 
207 // ************************************************************************* //
scalar Es(const scalar p, const scalar T) const
Sensible internal energy [J/kg].
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 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 Ea(const scalar p, const scalar T) const
Absolute internal energy [J/kg].
scalar psi(scalar p, scalar T) const
Liquid compressibility [s^2/m^2].
scalar Hf() const
Enthalpy of formation [J/kg].
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 Cv(const scalar p, const scalar T) const
Heat capacity at constant volume [J/kg/K].
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].