IDEA.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-2026 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::IDEA
26 
27 Description
28  The IDEA fuel is constructed by adding 30% alphaMethylNaphthalene
29  with 70% n-decane.
30 
31  The new properties have been calculated by adding the values in these
32  proportions and making a least square fit, using the same NSRDS-eq.
33  so that Y = 0.3*Y_naphthalene + 0.7*Y_decane
34 
35  The valid Temperature range for n-decane is normally 243.51 - 617.70 K
36  and for the naphthalene it is 242.67 - 772.04 K
37  The least square fit was done in the interval 244 - 617 K
38 
39  The critical temperature was taken to be 618.074 K, since this
40  is the 'c'-value in the rho-equation, which corresponds to Tcrit,
41  This value was then used in the fit for the NSRDS6-eq, which uses Tcrit.
42  (important for the latent heat and surface tension)
43 
44  The molecular weights are 142.20 and 142.285 and for the IDEA fuel
45  it is thus 142.26 ( approximately 0.3*142.2 + 0.7*142.285 )
46 
47  Critical pressure was set to the lowest one (n-Decane)
48 
49  Critical volume... also the lowest one (naphthalene) 0.523 m^3/kmol
50 
51  Second Virial Coefficient is n-Decane
52 
53 SourceFiles
54  IDEA.C
55 
56 \*---------------------------------------------------------------------------*/
57 
58 #ifndef IDEA_H
59 #define IDEA_H
60 
61 #include "liquidProperties.H"
62 #include "NSRDS0.H"
63 #include "NSRDS1.H"
64 #include "NSRDS2.H"
65 #include "NSRDS3.H"
66 #include "NSRDS4.H"
67 #include "NSRDS5.H"
68 #include "NSRDS6.H"
69 #include "NSRDS7.H"
71 
72 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
73 
74 namespace Foam
75 {
76 
77 /*---------------------------------------------------------------------------*\
78  Class IDEA Declaration
79 \*---------------------------------------------------------------------------*/
80 
81 class IDEA
82 :
83  public liquidProperties
84 {
85  // Private Data
86 
87  Function1s::NSRDS5 rho_;
92  Function1s::NSRDS7 Cpg_;
95  Function1s::NSRDS2 mug_;
96  Function1s::NSRDS0 kappa_;
97  Function1s::NSRDS2 kappag_;
98  Function1s::NSRDS6 sigma_;
100 
101  //- Liquid heat of formation [J/kg]
102  scalar hf_;
103 
104 
105 public:
106 
107  friend class liquidProperties;
108 
109  //- Runtime type information
110  TypeName("IDEA");
111 
112 
113  // Constructors
114 
115  //- Construct null
116  IDEA();
117 
118  // Construct from components
119  IDEA
120  (
121  const liquidProperties& l,
123  const Function1s::NSRDS1& vapourPressure,
124  const Function1s::NSRDS6& heatOfVapourisation,
125  const Function1s::NSRDS0& heatCapacity,
126  const Function1s::NSRDS0& enthalpy,
127  const Function1s::NSRDS7& idealGasHeatCapacity,
128  const Function1s::NSRDS4& secondVirialCoeff,
130  const Function1s::NSRDS2& vapourDynamicViscosity,
132  const Function1s::NSRDS2& vapourThermalConductivity,
133  const Function1s::NSRDS6& surfaceTension,
134  const Function2s::APIdiffusionCoefficient& vapourDiffusivity
135  );
136 
137  //- Construct from dictionary
138  IDEA(const dictionary& dict);
139 
140  //- Construct and return clone
141  virtual autoPtr<liquidProperties> clone() const
142  {
143  return autoPtr<liquidProperties>(new IDEA(*this));
144  }
145 
146 
147  // Member Functions
148 
149  //- Liquid density [kg/m^3]
150  inline scalar rho(scalar p, scalar T) const;
151 
152  //- Volumetric coefficient of thermal expansion [1/T]
153  inline scalar alphav(scalar p, scalar T) const;
154 
155  //- Vapour pressure [Pa]
156  inline scalar pv(scalar p, scalar T) const;
157 
158  //- Heat of vapourisation [J/kg]
159  inline scalar hl(scalar p, scalar T) const;
160 
161  //- Liquid heat capacity [J/kg/K]
162  inline scalar Cp(scalar p, scalar T) const;
163 
164  //- Liquid sensible enthalpy [J/kg]
165  inline scalar hs(scalar p, scalar T) const;
166 
167  //- Liquid heat of formation [J/kg]
168  inline scalar hf() const;
169 
170  //- Liquid absolute enthalpy [J/kg]
171  inline scalar ha(scalar p, scalar T) const;
172 
173  //- Ideal gas heat capacity [J/kg/K]
174  inline scalar Cpg(scalar p, scalar T) const;
175 
176  //- Second Virial Coefficient [m^3/kg]
177  inline scalar B(scalar p, scalar T) const;
178 
179  //- Liquid viscosity [Pa s]
180  inline scalar mu(scalar p, scalar T) const;
181 
182  //- Vapour viscosity [Pa s]
183  inline scalar mug(scalar p, scalar T) const;
184 
185  //- Liquid thermal conductivity [W/m/K]
186  inline scalar kappa(scalar p, scalar T) const;
187 
188  //- Vapour thermal conductivity [W/m/K]
189  inline scalar kappag(scalar p, scalar T) const;
190 
191  //- Surface tension [N/m]
192  inline scalar sigma(scalar p, scalar T) const;
193 
194  //- Vapour diffusivity [m^2/s]
195  inline scalar D(scalar p, scalar T) const;
196 
197  //- Vapour diffusivity [m^2/s] with specified binary pair
198  inline scalar D(scalar p, scalar T, scalar Wb) const;
199 
200 
201  // I-O
202 
203  //- Write the function coefficients
204  void write(Ostream& os) const;
205 };
206 
207 
208 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
209 
210 } // End namespace Foam
211 
212 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
213 
214 #include "IDEAI.H"
215 
216 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
217 
218 #endif
219 
220 // ************************************************************************* //
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
The IDEA fuel is constructed by adding 30% alphaMethylNaphthalene with 70% n-decane.
Definition: IDEA.H:83
scalar B(scalar p, scalar T) const
Second Virial Coefficient [m^3/kg].
Definition: IDEAI.H:80
scalar alphav(scalar p, scalar T) const
Volumetric coefficient of thermal expansion [1/T].
Definition: IDEAI.H:32
scalar D(scalar p, scalar T) const
Vapour diffusivity [m^2/s].
Definition: IDEAI.H:116
scalar mu(scalar p, scalar T) const
Liquid viscosity [Pa s].
Definition: IDEAI.H:86
scalar Cpg(scalar p, scalar T) const
Ideal gas heat capacity [J/kg/K].
Definition: IDEAI.H:74
IDEA()
Construct null.
Definition: IDEA.C:43
void write(Ostream &os) const
Write the function coefficients.
Definition: IDEA.C:172
scalar rho(scalar p, scalar T) const
Liquid density [kg/m^3].
Definition: IDEAI.H:26
scalar sigma(scalar p, scalar T) const
Surface tension [N/m].
Definition: IDEAI.H:110
scalar kappa(scalar p, scalar T) const
Liquid thermal conductivity [W/m/K].
Definition: IDEAI.H:98
TypeName("IDEA")
Runtime type information.
scalar Cp(scalar p, scalar T) const
Liquid heat capacity [J/kg/K].
Definition: IDEAI.H:50
scalar hf() const
Liquid heat of formation [J/kg].
Definition: IDEAI.H:62
scalar hs(scalar p, scalar T) const
Liquid sensible enthalpy [J/kg].
Definition: IDEAI.H:56
scalar mug(scalar p, scalar T) const
Vapour viscosity [Pa s].
Definition: IDEAI.H:92
scalar pv(scalar p, scalar T) const
Vapour pressure [Pa].
Definition: IDEAI.H:38
scalar ha(scalar p, scalar T) const
Liquid absolute enthalpy [J/kg].
Definition: IDEAI.H:68
scalar hl(scalar p, scalar T) const
Heat of vapourisation [J/kg].
Definition: IDEAI.H:44
scalar kappag(scalar p, scalar T) const
Vapour thermal conductivity [W/m/K].
Definition: IDEAI.H:104
virtual autoPtr< liquidProperties > clone() const
Construct and return clone.
Definition: IDEA.H:140
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
The thermophysical properties of a liquid.
const dimensionSet density
const dimensionSet thermalConductivity
const dimensionSet dynamicViscosity
Namespace for OpenFOAM.
void T(GeometricField< Type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type, GeoMesh, PrimitiveField2 > &gf1)
dictionary dict
volScalarField & p