FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

C2H6.C

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 \*---------------------------------------------------------------------------*/
00025 
00026 #include "C2H6.H"
00027 #include <OpenFOAM/addToRunTimeSelectionTable.H>
00028 
00029 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00030 
00031 namespace Foam
00032 {
00033     defineTypeNameAndDebug(C2H6, 0);
00034     addToRunTimeSelectionTable(liquid, C2H6,);
00035     addToRunTimeSelectionTable(liquid, C2H6, Istream);
00036 }
00037 
00038 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00039 
00040 Foam::C2H6::C2H6()
00041 :
00042     liquid
00043     (
00044         30.070,
00045         305.32,
00046         4.872e+6,
00047         0.14550,
00048         0.279,
00049         90.35,
00050         1.13,
00051         184.55,
00052         0.0,
00053         0.0995,
00054         1.24e+4
00055     ),
00056     rho_(57.499854, 0.27937, 305.32, 0.29187),
00057     pv_(51.857, -2598.7, -5.1283, 1.4913e-05, 2.0),
00058     hl_(305.32, 701396.740937812, 0.60646, -0.55492, 0.32799, 0.0),
00059     cp_
00060     (
00061         305.32,
00062         8.02554965861611,
00063         2983.63817758563,
00064         167.548325566287,
00065        -343.93389207094
00066     ),
00067     h_(0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
00068     cpg_(1341.07083471899, 4463.58496840705, 1655.5, 2435.08480212837, 752.87),
00069     B_
00070     (
00071         0.00269205187894912,
00072        -2.05221150648487,
00073        -47721.9820419022,
00074         2.24808779514466e+15,
00075        -3.23910874625873e+17
00076     ),
00077     mu_(-3.4134, 197.05, -1.2193, -9.2023e-26, 10.0),
00078     mug_(2.5906e-07, 0.67988, 98.902, 0.0),
00079     K_(0.35758, -0.0011458, 6.1866e-07, 0.0, 0.0, 0.0),
00080     Kg_(7.3869e-05, 1.1689, 500.73, 0.0),
00081     sigma_(305.32, 0.048643, 1.1981, 0.0, 0.0, 0.0),
00082     D_(147.18, 20.1, 30.070, 28) // note: Same as nHeptane
00083 {}
00084 
00085 
00086 Foam::C2H6::C2H6
00087 (
00088     const liquid& l,
00089     const NSRDSfunc5& density,
00090     const NSRDSfunc1& vapourPressure,
00091     const NSRDSfunc6& heatOfVapourisation,
00092     const NSRDSfunc14& heatCapacity,
00093     const NSRDSfunc0& enthalpy,
00094     const NSRDSfunc7& idealGasHeatCapacity,
00095     const NSRDSfunc4& secondVirialCoeff,
00096     const NSRDSfunc1& dynamicViscosity,
00097     const NSRDSfunc2& vapourDynamicViscosity,
00098     const NSRDSfunc0& thermalConductivity,
00099     const NSRDSfunc2& vapourThermalConductivity,
00100     const NSRDSfunc6& surfaceTension,
00101     const APIdiffCoefFunc& vapourDiffussivity
00102 )
00103 :
00104     liquid(l),
00105     rho_(density),
00106     pv_(vapourPressure),
00107     hl_(heatOfVapourisation),
00108     cp_(heatCapacity),
00109     h_(enthalpy),
00110     cpg_(idealGasHeatCapacity),
00111     B_(secondVirialCoeff),
00112     mu_(dynamicViscosity),
00113     mug_(vapourDynamicViscosity),
00114     K_(thermalConductivity),
00115     Kg_(vapourThermalConductivity),
00116     sigma_(surfaceTension),
00117     D_(vapourDiffussivity)
00118 {}
00119 
00120 
00121 Foam::C2H6::C2H6(Istream& is)
00122 :
00123     liquid(is),
00124     rho_(is),
00125     pv_(is),
00126     hl_(is),
00127     cp_(is),
00128     h_(is),
00129     cpg_(is),
00130     B_(is),
00131     mu_(is),
00132     mug_(is),
00133     K_(is),
00134     Kg_(is),
00135     sigma_(is),
00136     D_(is)
00137 {}
00138 
00139 
00140 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines