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/>.
34 \*---------------------------------------------------------------------------*/
39 #include "objectRegistry.H"
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 // ************************************************************************* //