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