nC3H8O.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011-2017 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::nC3H8O
28
29Description
30 propanol
31
32SourceFiles
33 nC3H8O.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef nC3H8O_H
38#define nC3H8O_H
39
40#include "liquidProperties.H"
41#include "NSRDSfunc0.H"
42#include "NSRDSfunc1.H"
43#include "NSRDSfunc2.H"
44#include "NSRDSfunc3.H"
45#include "NSRDSfunc4.H"
46#include "NSRDSfunc5.H"
47#include "NSRDSfunc6.H"
48#include "NSRDSfunc7.H"
49#include "NSRDSfunc14.H"
50
51// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52
53namespace Foam
54{
55
56/*---------------------------------------------------------------------------*\
57 Class nC3H8O Declaration
58\*---------------------------------------------------------------------------*/
60class nC3H8O
61:
62 public liquidProperties
63{
64 // Private data
65
66 NSRDSfunc5 rho_;
67 NSRDSfunc1 pv_;
68 NSRDSfunc6 hl_;
69 NSRDSfunc0 Cp_;
70 NSRDSfunc0 h_;
71 NSRDSfunc7 Cpg_;
72 NSRDSfunc4 B_;
73 NSRDSfunc1 mu_;
74 NSRDSfunc2 mug_;
75 NSRDSfunc0 kappa_;
76 NSRDSfunc2 kappag_;
77 NSRDSfunc0 sigma_;
78 NSRDSfunc1 D_;
79
80public:
82 friend class liquidProperties;
83
84 //- Runtime type information
85 TypeName("nC3H8O");
86
87
88 // Constructors
89
90 //- Construct null
91 nC3H8O();
92
93 //- Construct from components
94 nC3H8O
95 (
96 const liquidProperties& l,
97 const NSRDSfunc5& density,
98 const NSRDSfunc1& vapourPressure,
99 const NSRDSfunc6& heatOfVapourisation,
100 const NSRDSfunc0& heatCapacity,
101 const NSRDSfunc0& enthalpy,
102 const NSRDSfunc7& idealGasHeatCapacity,
103 const NSRDSfunc4& secondVirialCoeff,
104 const NSRDSfunc1& dynamicViscosity,
105 const NSRDSfunc2& vapourDynamicViscosity,
106 const NSRDSfunc0& thermalConductivity,
107 const NSRDSfunc2& vapourThermalConductivity,
108 const NSRDSfunc0& surfaceTension,
109 const NSRDSfunc1& vapourDiffussivity
110 );
111
112 //- Construct from dictionary
113 nC3H8O(const dictionary& dict);
114
115 //- Construct and return clone
116 virtual autoPtr<liquidProperties> clone() const
117 {
119 }
120
121
122 // Member Functions
123
124 //- Liquid density [kg/m^3]
125 inline scalar rho(scalar p, scalar T) const;
126
127 //- Vapour pressure [Pa]
128 inline scalar pv(scalar p, scalar T) const;
129
130 //- Heat of vapourisation [J/kg]
131 inline scalar hl(scalar p, scalar T) const;
132
133 //- Liquid heat capacity [J/(kg K)]
134 inline scalar Cp(scalar p, scalar T) const;
135
136 //- Liquid Enthalpy [J/(kg)]
137 inline scalar h(scalar p, scalar T) const;
138
139 //- Ideal gas heat capacity [J/(kg K)]
140 inline scalar Cpg(scalar p, scalar T) const;
141
142 //- Second Virial Coefficient [m^3/kg]
143 inline scalar B(scalar p, scalar T) const;
144
145 //- Liquid viscosity [Pa s]
146 inline scalar mu(scalar p, scalar T) const;
147
148 //- Vapour viscosity [Pa s]
149 inline scalar mug(scalar p, scalar T) const;
150
151 //- Liquid thermal conductivity [W/(m K)]
152 inline scalar kappa(scalar p, scalar T) const;
153
154 //- Vapour thermal conductivity [W/(m K)]
155 inline scalar kappag(scalar p, scalar T) const;
156
157 //- Surface tension [N/m]
158 inline scalar sigma(scalar p, scalar T) const;
159
160 //- Vapour diffusivity [m2/s]
161 inline scalar D(scalar p, scalar T) const;
162
163 //- Vapour diffusivity [m2/s] with specified binary pair
164 // Note: behaves the same as D(p, T)
165 inline scalar D(scalar p, scalar T, scalar Wb) const;
166
167
168 // I-O
169
170 //- Write the function coefficients
171 void writeData(Ostream& os) const;
172
173 //- Ostream Operator
174 friend Ostream& operator<<(Ostream& os, const nC3H8O& l);
175};
176
177
178Ostream& operator<<(Ostream& os, const nC3H8O& l);
179
180
181// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
182
183} // End namespace Foam
184
185// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
186
187#include "nC3H8OI.H"
188
189// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
190
191#endif
192
193// ************************************************************************* //
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
NSRDS function number 100.
Definition: NSRDSfunc0.H:72
NSRDS function number 101.
Definition: NSRDSfunc1.H:72
NSRDS function number 102.
Definition: NSRDSfunc2.H:72
NSRDS function number 104.
Definition: NSRDSfunc4.H:72
NSRDS function number 105.
Definition: NSRDSfunc5.H:72
NSRDS function number 106.
Definition: NSRDSfunc6.H:72
NSRDS-AICHE function number 107.
Definition: NSRDSfunc7.H:72
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
The thermophysical properties of a liquid.
propanol
Definition: nC3H8O.H:62
nC3H8O()
Construct null.
Definition: nC3H8O.C:42
scalar Cpg(scalar p, scalar T) const
Ideal gas heat capacity [J/(kg K)].
Definition: nC3H8OI.H:58
void writeData(Ostream &os) const
Write the function coefficients.
Definition: nC3H8O.C:142
virtual autoPtr< liquidProperties > clone() const
Construct and return clone.
Definition: nC3H8O.H:115
scalar kappa(scalar p, scalar T) const
Liquid thermal conductivity [W/(m K)].
Definition: nC3H8OI.H:82
TypeName("nC3H8O")
Runtime type information.
friend Ostream & operator<<(Ostream &os, const nC3H8O &l)
Ostream Operator.
scalar mug(scalar p, scalar T) const
Vapour viscosity [Pa s].
Definition: nC3H8OI.H:76
scalar pv(scalar p, scalar T) const
Vapour pressure [Pa].
Definition: nC3H8OI.H:34
scalar hl(scalar p, scalar T) const
Heat of vapourisation [J/kg].
Definition: nC3H8OI.H:40
scalar kappag(scalar p, scalar T) const
Vapour thermal conductivity [W/(m K)].
Definition: nC3H8OI.H:88
volScalarField & p
const volScalarField & T
const volScalarField & mu
const volScalarField & Cp
Definition: EEqn.H:7
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Definition: boundaryPatch.C:83
dictionary dict
volScalarField & h
const dimensionedScalar & D
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73