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