1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
35 \*---------------------------------------------------------------------------*/
40 #include "ReactingMultiphaseParcel.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // Forward declaration of classes
48 template<class ThermoType>
51 /*---------------------------------------------------------------------------*\
52 Class CoalParcel Declaration
53 \*---------------------------------------------------------------------------*/
55 template<class ThermoType>
58 public ReactingMultiphaseParcel<CoalParcel<ThermoType> >
62 //- The type of thermodynamics this parcel was instantiated for
63 typedef ThermoType thermoType;
65 // Run-time type information
66 TypeName("CoalParcel");
70 //- Construct from owner, position, and cloud owner
71 // Other properties initialised as null
74 ReactingMultiphaseCloud<CoalParcel>& owner,
75 const vector& position,
79 //- Construct from components
82 ReactingMultiphaseCloud<CoalParcel>& owner,
83 const vector& position,
86 const scalar nParticle0,
89 const scalarField& YMixture0,
90 const scalarField& YGas0,
91 const scalarField& YLiquid0,
92 const scalarField& YSolid0,
94 ReactingMultiphaseParcel<CoalParcel>::
95 constantProperties& constProps
98 //- Construct from Istream
101 const Cloud<CoalParcel>& c,
103 bool readFields = true
106 //- Construct and return a clone
107 autoPtr<CoalParcel> clone() const
109 return autoPtr<CoalParcel>(new CoalParcel(*this));
114 virtual ~CoalParcel();
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 } // End namespace Foam
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 #include "CoalParcel.C"
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 // ************************************************************************* //