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-2023 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 
47 template<class ThermophysicalProperties>
48 inline Foam::scalar
50 {
51  return propertiesPtr_->W();
52 }
53 
54 
55 template<class ThermophysicalProperties>
56 inline Foam::scalar
58 (
59  const scalar T
60 ) const
61 {
62  return propertiesPtr_->limit(T);
63 }
64 
65 
66 template<class ThermophysicalProperties>
67 inline Foam::scalar
69 (
70  scalar p,
71  scalar T
72 ) const
73 {
74  return propertiesPtr_->rho(p, T);
75 }
76 
77 
78 template<class ThermophysicalProperties>
79 inline Foam::scalar
81 (
82  scalar p,
83  scalar T
84 ) const
85 {
86  return propertiesPtr_->psi(p, T);
87 }
88 
89 
90 template<class ThermophysicalProperties>
91 inline Foam::scalar
93 (
94  scalar p,
95  scalar T
96 ) const
97 {
98  return propertiesPtr_->CpMCv(p, T);
99 }
100 
101 
102 template<class ThermophysicalProperties>
103 inline Foam::scalar
105 (
106  scalar p,
107  scalar T
108 ) const
109 {
110  return propertiesPtr_->Cp(p, T);
111 }
112 
113 
114 template<class ThermophysicalProperties>
115 inline Foam::scalar
117 (
118  scalar p,
119  scalar T
120 ) const
121 {
122  return propertiesPtr_->hs(p, T);
123 }
124 
125 
126 template<class ThermophysicalProperties>
127 inline Foam::scalar
129 {
130  return propertiesPtr_->hf();
131 }
132 
133 
134 template<class ThermophysicalProperties>
135 inline Foam::scalar
137 (
138  scalar p,
139  scalar T
140 ) const
141 {
142  return propertiesPtr_->ha(p, T);
143 }
144 
145 
146 template<class ThermophysicalProperties>
147 inline Foam::scalar
149 (
150  scalar p,
151  scalar T
152 ) const
153 {
154  return propertiesPtr_->Cp(p, T) - CpMCv(p, T);
155 }
156 
157 
158 template<class ThermophysicalProperties>
159 inline Foam::scalar
161 (
162  scalar p,
163  scalar T
164 ) const
165 {
166  return propertiesPtr_->es(p, T);
167 }
168 
169 
170 template<class ThermophysicalProperties>
171 inline Foam::scalar
173 (
174  scalar p,
175  scalar T
176 ) const
177 {
178  return propertiesPtr_->ea(p, T);
179 }
180 
181 
182 template<class ThermophysicalProperties>
183 inline Foam::scalar
185 (
186  scalar p,
187  scalar T
188 ) const
189 {
190  return propertiesPtr_->s(p, T);
191 }
192 
193 
194 template<class ThermophysicalProperties>
195 inline Foam::scalar
197 (
198  scalar p,
199  scalar T
200 ) const
201 {
202  return propertiesPtr_->kappa(p, T);
203 }
204 
205 
206 // ************************************************************************* //
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
scalar psi(scalar p, scalar T) const
Compressibility [s^2/m^2].
scalar s(const scalar p, const scalar T) const
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/kg/K].
scalar ea(const scalar p, const scalar T) const
Absolute internal energy [J/kg].
scalar rho(scalar p, scalar T) const
Density [kg/m^3].
scalar kappa(scalar p, scalar T) const
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 ha(const scalar p, const scalar T) const
Absolute enthalpy [J/kg].
const ThermophysicalProperties & properties() const
Return the physical properties model.
scalar hf() const
Enthalpy of formation [J/kg].
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 hs(const scalar p, const scalar T) const
Sensible enthalpy [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