Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
10License
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
30template<class ThermophysicalProperties>
31inline const ThermophysicalProperties&
33::properties() const
35 return *propertiesPtr_;
36}
37
38
39template<class ThermophysicalProperties>
40inline Foam::scalar
43 return propertiesPtr_->W();
44}
45
46
47template<class ThermophysicalProperties>
48inline Foam::scalar
50(
51 const scalar T
52) const
54 return propertiesPtr_->limit(T);
55}
56
57
58template<class ThermophysicalProperties>
59inline Foam::scalar
61(
62 scalar p,
63 scalar T
64) const
66 return propertiesPtr_->rho(p, T);
67}
68
69
70template<class ThermophysicalProperties>
71inline Foam::scalar
73(
74 scalar p,
75 scalar T
76) const
78 return propertiesPtr_->psi(p, T);
79}
80
81
82template<class ThermophysicalProperties>
83inline Foam::scalar
85(
86 scalar p,
87 scalar T
88) const
90 return propertiesPtr_->CpMCv(p, T);
91}
92
93
94template<class ThermophysicalProperties>
95inline Foam::scalar
97(
98 scalar p,
99 scalar T
100) const
102 return propertiesPtr_->Cp(p, T);
103}
104
105
106template<class ThermophysicalProperties>
107inline Foam::scalar
109(
110 scalar p,
111 scalar T
112) const
114 return propertiesPtr_->Ha(p, T);
115}
116
117
118template<class ThermophysicalProperties>
119inline Foam::scalar
121(
122 scalar p,
123 scalar T
124) const
126 return propertiesPtr_->Hs(p, T);
127}
128
129
130template<class ThermophysicalProperties>
131inline Foam::scalar
134 return propertiesPtr_->Hc();
135}
136
137
138template<class ThermophysicalProperties>
139inline Foam::scalar
141(
142 scalar p,
143 scalar T
144) const
146 return propertiesPtr_->Cp(p, T) - CpMCv(p, T);
147}
148
149
150template<class ThermophysicalProperties>
151inline Foam::scalar
153(
154 scalar p,
155 scalar T
156) const
158 return propertiesPtr_->Hs(p, T) - p/propertiesPtr_->rho(p, T);
159}
160
161
162template<class ThermophysicalProperties>
163inline Foam::scalar
165(
166 scalar p,
167 scalar T
168) const
170 return propertiesPtr_->Ha(p, T) - p/propertiesPtr_->rho(p, T);
171}
172
173
174template<class ThermophysicalProperties>
175inline Foam::scalar
177(
178 scalar p,
179 scalar T
180) const
182 return propertiesPtr_->S(p, T);
183}
184
185
186template<class ThermophysicalProperties>
187inline Foam::scalar
189(
190 scalar p,
191 scalar T
192) const
194 return propertiesPtr_->mu(p, T);
195}
196
197
198template<class ThermophysicalProperties>
199inline Foam::scalar
201(
202 scalar p,
203 scalar T
204) const
206 return propertiesPtr_->kappa(p, T);
207}
208
209
210template<class ThermophysicalProperties>
211inline Foam::scalar
213(
214 scalar p,
215 scalar T
216) const
217{
218 return propertiesPtr_->alphah(p, T);
219}
220
221
222// ************************************************************************* //
Wrapper class providing run-time selection of thermophysicalProperties for the templated thermodynami...
scalar limit(const scalar T) const
Limit temperature to be within the range.
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
scalar psi(scalar p, scalar T) const
Liquid compressibility rho/p [s^2/m^2].
scalar mu(scalar p, scalar T) const
Liquid viscosity [Pa s].
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kg K)].
scalar rho(scalar p, scalar T) const
Liquid density [kg/m^3].
scalar S(const scalar p, const scalar T) const
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
scalar kappa(scalar p, scalar T) const
Liquid thermal conductivity [W/(m K)].
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar Cv(const scalar p, const scalar T) const
Heat capacity at constant volume [J/(kg K)].
scalar alphah(const scalar p, const scalar T) const
Liquid thermal diffusivity of enthalpy [kg/ms].
scalar W() const
Molecular weight [kg/kmol].
scalar Es(const scalar p, const scalar T) const
Sensible internal energy [J/kg].
scalar Ea(const scalar p, const scalar T) const
Absolute internal energy [J/kg].
volScalarField & p
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)