|
|
|
CoalParcel.HGo 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) 2008-2009 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 the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 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, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 CoalParcel 00027 00028 Description 00029 00030 00031 SourceFiles 00032 CoalParcel.C 00033 CoalParcelIO.C 00034 00035 \*---------------------------------------------------------------------------*/ 00036 00037 #ifndef CoalParcel_H 00038 #define CoalParcel_H 00039 00040 #include "ReactingMultiphaseParcel.H" 00041 00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00043 00044 namespace Foam 00045 { 00046 00047 // Forward declaration of classes 00048 template<class ThermoType> 00049 class CoalParcel; 00050 00051 /*---------------------------------------------------------------------------*\ 00052 Class CoalParcel Declaration 00053 \*---------------------------------------------------------------------------*/ 00054 00055 template<class ThermoType> 00056 class CoalParcel 00057 : 00058 public ReactingMultiphaseParcel<CoalParcel<ThermoType> > 00059 { 00060 public: 00061 00062 //- The type of thermodynamics this parcel was instantiated for 00063 typedef ThermoType thermoType; 00064 00065 // Run-time type information 00066 TypeName("CoalParcel"); 00067 00068 // Constructors 00069 00070 //- Construct from owner, position, and cloud owner 00071 // Other properties initialised as null 00072 CoalParcel 00073 ( 00074 ReactingMultiphaseCloud<CoalParcel>& owner, 00075 const vector& position, 00076 const label cellI 00077 ); 00078 00079 //- Construct from components 00080 CoalParcel 00081 ( 00082 ReactingMultiphaseCloud<CoalParcel>& owner, 00083 const vector& position, 00084 const label cellI, 00085 const label typeId, 00086 const scalar nParticle0, 00087 const scalar d0, 00088 const vector& U0, 00089 const scalarField& YMixture0, 00090 const scalarField& YGas0, 00091 const scalarField& YLiquid0, 00092 const scalarField& YSolid0, 00093 const typename 00094 ReactingMultiphaseParcel<CoalParcel>:: 00095 constantProperties& constProps 00096 ); 00097 00098 //- Construct from Istream 00099 CoalParcel 00100 ( 00101 const Cloud<CoalParcel>& c, 00102 Istream& is, 00103 bool readFields = true 00104 ); 00105 00106 //- Construct and return a clone 00107 autoPtr<CoalParcel> clone() const 00108 { 00109 return autoPtr<CoalParcel>(new CoalParcel(*this)); 00110 } 00111 00112 00113 //- Destructor 00114 virtual ~CoalParcel(); 00115 }; 00116 00117 00118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00119 00120 } // End namespace Foam 00121 00122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00123 00124 #ifdef NoRepository 00125 #include "CoalParcel.C" 00126 #endif 00127 00128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00129 00130 #endif 00131 00132 // ************************************************************************* // |