All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
iC3H8O.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) 2011-2019 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 Class
25  Foam::iC3H8O
26 
27 Description
28  iso-propanol
29 
30 SourceFiles
31  iC3H8O.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef iC3H8O_H
36 #define iC3H8O_H
37 
38 #include "liquidProperties.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class iC3H8O Declaration
56 \*---------------------------------------------------------------------------*/
57 
58 class iC3H8O
59 :
60  public liquidProperties
61 {
62  // Private Data
63 
77 
78 public:
79 
80  friend class liquidProperties;
81 
82  //- Runtime type information
83  TypeName("iC3H8O");
84 
85 
86  // Constructors
87 
88  //- Construct null
89  iC3H8O();
90 
91  //- Construct from components
92  iC3H8O
93  (
94  const liquidProperties& l,
95  const thermophysicalFunctions::NSRDS5& density,
96  const thermophysicalFunctions::NSRDS1& vapourPressure,
97  const thermophysicalFunctions::NSRDS6& heatOfVapourisation,
98  const thermophysicalFunctions::NSRDS0& heatCapacity,
99  const thermophysicalFunctions::NSRDS0& enthalpy,
100  const thermophysicalFunctions::NSRDS7& idealGasHeatCapacity,
101  const thermophysicalFunctions::NSRDS4& secondVirialCoeff,
102  const thermophysicalFunctions::NSRDS1& dynamicViscosity,
103  const thermophysicalFunctions::NSRDS2& vapourDynamicViscosity,
104  const thermophysicalFunctions::NSRDS0& thermalConductivity,
105  const thermophysicalFunctions::NSRDS2& vapourThermalConductivity,
106  const thermophysicalFunctions::NSRDS0& surfaceTension,
107  const thermophysicalFunctions::NSRDS1& vapourDiffusivity
108  );
109 
110  //- Construct from dictionary
111  iC3H8O(const dictionary& dict);
112 
113  //- Construct and return clone
114  virtual autoPtr<liquidProperties> clone() const
115  {
116  return autoPtr<liquidProperties>(new iC3H8O(*this));
117  }
118 
119 
120  // Member Functions
121 
122  //- Liquid density [kg/m^3]
123  inline scalar rho(scalar p, scalar T) const;
124 
125  //- Vapour pressure [Pa]
126  inline scalar pv(scalar p, scalar T) const;
127 
128  //- Heat of vapourisation [J/kg]
129  inline scalar hl(scalar p, scalar T) const;
130 
131  //- Liquid heat capacity [J/kg/K]
132  inline scalar Cp(scalar p, scalar T) const;
133 
134  //- Liquid enthalpy [J/kg]
135  inline scalar h(scalar p, scalar T) const;
136 
137  //- Ideal gas heat capacity [J/kg/K]
138  inline scalar Cpg(scalar p, scalar T) const;
139 
140  //- Second Virial Coefficient [m^3/kg]
141  inline scalar B(scalar p, scalar T) const;
142 
143  //- Liquid viscosity [Pa s]
144  inline scalar mu(scalar p, scalar T) const;
145 
146  //- Vapour viscosity [Pa s]
147  inline scalar mug(scalar p, scalar T) const;
148 
149  //- Liquid thermal conductivity [W/m/K]
150  inline scalar kappa(scalar p, scalar T) const;
151 
152  //- Vapour thermal conductivity [W/m/K]
153  inline scalar kappag(scalar p, scalar T) const;
154 
155  //- Surface tension [N/m]
156  inline scalar sigma(scalar p, scalar T) const;
157 
158  //- Vapour diffusivity [m^2/s]
159  inline scalar D(scalar p, scalar T) const;
160 
161  //- Vapour diffusivity [m^2/s] with specified binary pair
162  // Note: behaves the same as D(p, T)
163  inline scalar D(scalar p, scalar T, scalar Wb) const;
164 
165 
166  // I-O
167 
168  //- Write the function coefficients
169  void write(Ostream& os) const;
170 };
171 
172 
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 
175 } // End namespace Foam
176 
177 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178 
179 #include "iC3H8OI.H"
180 
181 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
182 
183 #endif
184 
185 // ************************************************************************* //
scalar Cp(scalar p, scalar T) const
Liquid heat capacity [J/kg/K].
Definition: iC3H8OI.H:44
scalar h(scalar p, scalar T) const
Liquid enthalpy [J/kg].
Definition: iC3H8OI.H:50
scalar sigma(scalar p, scalar T) const
Surface tension [N/m].
Definition: iC3H8OI.H:92
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
iso-propanol
Definition: iC3H8O.H:57
scalar D(scalar p, scalar T) const
Vapour diffusivity [m^2/s].
Definition: iC3H8OI.H:98
void write(Ostream &os) const
Write the function coefficients.
Definition: iC3H8O.C:140
scalar B(scalar p, scalar T) const
Second Virial Coefficient [m^3/kg].
Definition: iC3H8OI.H:62
scalar hl(scalar p, scalar T) const
Heat of vapourisation [J/kg].
Definition: iC3H8OI.H:38
virtual autoPtr< liquidProperties > clone() const
Construct and return clone.
Definition: iC3H8O.H:113
scalar mu(scalar p, scalar T) const
Liquid viscosity [Pa s].
Definition: iC3H8OI.H:68
iC3H8O()
Construct null.
Definition: iC3H8O.C:40
scalar pv(scalar p, scalar T) const
Vapour pressure [Pa].
Definition: iC3H8OI.H:32
The thermophysical properties of a liquid.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:54
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar mug(scalar p, scalar T) const
Vapour viscosity [Pa s].
Definition: iC3H8OI.H:74
scalar kappa(scalar p, scalar T) const
Liquid thermal conductivity [W/m/K].
Definition: iC3H8OI.H:80
scalar rho(scalar p, scalar T) const
Liquid density [kg/m^3].
Definition: iC3H8OI.H:26
TypeName("iC3H8O")
Runtime type information.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
scalar kappag(scalar p, scalar T) const
Vapour thermal conductivity [W/m/K].
Definition: iC3H8OI.H:86
volScalarField & p
scalar Cpg(scalar p, scalar T) const
Ideal gas heat capacity [J/kg/K].
Definition: iC3H8OI.H:56
Namespace for OpenFOAM.