1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
33 \*---------------------------------------------------------------------------*/
39 #include "NSRDSfunc0.H"
40 #include "NSRDSfunc1.H"
41 #include "NSRDSfunc2.H"
42 #include "NSRDSfunc3.H"
43 #include "NSRDSfunc4.H"
44 #include "NSRDSfunc5.H"
45 #include "NSRDSfunc6.H"
46 #include "NSRDSfunc7.H"
47 #include "NSRDSfunc14.H"
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 /*---------------------------------------------------------------------------*\
55 Class iC3H8O Declaration
56 \*---------------------------------------------------------------------------*/
80 //- Runtime type information
89 //- Constrcut from components
93 const NSRDSfunc5& density,
94 const NSRDSfunc1& vapourPressure,
95 const NSRDSfunc6& heatOfVapourisation,
96 const NSRDSfunc0& heatCapacity,
97 const NSRDSfunc0& enthalpy,
98 const NSRDSfunc7& idealGasHeatCapacity,
99 const NSRDSfunc4& secondVirialCoeff,
100 const NSRDSfunc1& dynamicViscosity,
101 const NSRDSfunc2& vapourDynamicViscosity,
102 const NSRDSfunc0& thermalConductivity,
103 const NSRDSfunc2& vapourThermalConductivity,
104 const NSRDSfunc0& surfaceTension,
105 const NSRDSfunc1& vapourDiffussivity
108 //- Construct from Istream
114 //- Liquid density [kg/m^3]
115 inline scalar rho(scalar p, scalar T) const;
117 //- Vapour pressure [Pa]
118 inline scalar pv(scalar p, scalar T) const;
120 //- Heat of vapourisation [J/kg]
121 inline scalar hl(scalar p, scalar T) const;
123 //- Liquid heat capacity [J/(kg K)]
124 inline scalar cp(scalar p, scalar T) const;
126 //- Liquid Enthalpy [J/(kg)]
127 inline scalar h(scalar p, scalar T) const;
129 //- Ideal gas heat capacity [J/(kg K)]
130 inline scalar cpg(scalar p, scalar T) const;
132 //- Second Virial Coefficient [m^3/kg]
133 inline scalar B(scalar p, scalar T) const;
135 //- Liquid viscosity [Pa s]
136 inline scalar mu(scalar p, scalar T) const;
138 //- Vapour viscosity [Pa s]
139 inline scalar mug(scalar p, scalar T) const;
141 //- Liquid thermal conductivity [W/(m K)]
142 inline scalar K(scalar p, scalar T) const;
144 //- Vapour thermal conductivity [W/(m K)]
145 inline scalar Kg(scalar p, scalar T) const;
147 //- Surface tension [N/m]
148 inline scalar sigma(scalar p, scalar T) const;
150 //- Vapour diffussivity [m2/s]
151 inline scalar D(scalar p, scalar T) const;
153 //- Vapour diffussivity [m2/s] with specified binary pair
154 // Note: behaves the same as D(p, T)
155 inline scalar D(scalar p, scalar T, scalar Wb) const;
160 //- Write the function coefficients
161 void writeData(Ostream& os) const
163 liquid::writeData(os); os << nl;
164 rho_.writeData(os); os << nl;
165 pv_.writeData(os); os << nl;
166 hl_.writeData(os); os << nl;
167 cp_.writeData(os); os << nl;
168 cpg_.writeData(os); os << nl;
169 B_.writeData(os); os << nl;
170 mu_.writeData(os); os << nl;
171 mug_.writeData(os); os << nl;
172 K_.writeData(os); os << nl;
173 Kg_.writeData(os); os << nl;
174 sigma_.writeData(os); os << nl;
175 D_.writeData(os); os << endl;
179 friend Ostream& operator<<(Ostream& os, const iC3H8O& l)
187 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
189 } // End namespace Foam
191 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
195 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
199 // ************************************************************************* //