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