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 
27 
28 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
29 
30 template<class ThermophysicalProperties>
31 inline const Foam::word&
33 {
34  return name_;
35 }
36 
37 
38 template<class ThermophysicalProperties>
39 inline const ThermophysicalProperties&
41 properties() const
42 {
43  return propertiesPtr_();
44 }
45 
46 template<class ThermophysicalProperties>
47 inline Foam::scalar
49 {
50  return propertiesPtr_->W();
51 }
52 
53 
54 template<class ThermophysicalProperties>
55 inline Foam::scalar
57 (
58  const scalar T
59 ) const
60 {
61  return propertiesPtr_->limit(T);
62 }
63 
64 
65 template<class ThermophysicalProperties>
66 inline Foam::scalar
68 (
69  scalar p,
70  scalar T
71 ) const
72 {
73  return propertiesPtr_->rho(p, T);
74 }
75 
76 
77 template<class ThermophysicalProperties>
78 inline Foam::scalar
80 (
81  scalar p,
82  scalar T
83 ) const
84 {
85  return propertiesPtr_->psi(p, T);
86 }
87 
88 
89 template<class ThermophysicalProperties>
90 inline Foam::scalar
92 (
93  scalar p,
94  scalar T
95 ) const
96 {
97  return propertiesPtr_->CpMCv(p, T);
98 }
99 
100 
101 template<class ThermophysicalProperties>
102 inline Foam::scalar
104 (
105  scalar p,
106  scalar T
107 ) const
108 {
109  return propertiesPtr_->Cp(p, T);
110 }
111 
112 
113 template<class ThermophysicalProperties>
114 inline Foam::scalar
116 (
117  scalar p,
118  scalar T
119 ) const
120 {
121  return propertiesPtr_->Hs(p, T);
122 }
123 
124 
125 template<class ThermophysicalProperties>
126 inline Foam::scalar
128 {
129  return propertiesPtr_->Hf();
130 }
131 
132 
133 template<class ThermophysicalProperties>
134 inline Foam::scalar
136 (
137  scalar p,
138  scalar T
139 ) const
140 {
141  return propertiesPtr_->Ha(p, T);
142 }
143 
144 
145 template<class ThermophysicalProperties>
146 inline Foam::scalar
148 (
149  scalar p,
150  scalar T
151 ) const
152 {
153  return propertiesPtr_->Cp(p, T) - CpMCv(p, T);
154 }
155 
156 
157 template<class ThermophysicalProperties>
158 inline Foam::scalar
160 (
161  scalar p,
162  scalar T
163 ) const
164 {
165  return propertiesPtr_->Es(p, T);
166 }
167 
168 
169 template<class ThermophysicalProperties>
170 inline Foam::scalar
172 (
173  scalar p,
174  scalar T
175 ) const
176 {
177  return propertiesPtr_->Ea(p, T);
178 }
179 
180 
181 template<class ThermophysicalProperties>
182 inline Foam::scalar
184 (
185  scalar p,
186  scalar T
187 ) const
188 {
189  return propertiesPtr_->S(p, T);
190 }
191 
192 
193 template<class ThermophysicalProperties>
194 inline Foam::scalar
196 (
197  scalar p,
198  scalar T
199 ) const
200 {
201  return propertiesPtr_->mu(p, T);
202 }
203 
204 
205 template<class ThermophysicalProperties>
206 inline Foam::scalar
208 (
209  scalar p,
210  scalar T
211 ) const
212 {
213  return propertiesPtr_->kappa(p, T);
214 }
215 
216 
217 // ************************************************************************* //
scalar Hf() const
Enthalpy of formation [J/kg].
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 psi(scalar p, scalar T) const
Liquid compressibility [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].
const ThermophysicalProperties & properties() const
Return the physical properties model.
scalar W() const
Molecular weight [kg/kmol].
scalar Es(const scalar p, const scalar T) const
Sensible internal energy [J/kg].
const word & name() const
Return the specie name.
scalar Ea(const scalar p, const scalar T) const
Absolute internal energy [J/kg].
A class for handling words, derived from string.
Definition: word.H:62
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
volScalarField & p