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
26 Foam::BasicReactingParcel
33 BasicReactingParcelIO.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef BasicReactingParcel_H
38 #define BasicReactingParcel_H
40 #include "ReactingParcel.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // Forward declaration of classes
48 template<class ThermoType>
49 class BasicReactingParcel;
51 /*---------------------------------------------------------------------------*\
52 Class BasicReactingParcel Declaration
53 \*---------------------------------------------------------------------------*/
55 template<class ThermoType>
56 class BasicReactingParcel
58 public ReactingParcel<BasicReactingParcel<ThermoType> >
63 //- The type of thermodynamics this parcel was instantiated for
64 typedef ThermoType thermoType;
66 //- Run-time type information
67 TypeName("BasicReactingParcel");
71 //- Construct from owner, position, and cloud owner
72 // Other properties initialised as null
75 ReactingCloud<BasicReactingParcel>& owner,
76 const vector& position,
80 //- Construct from components
83 ReactingCloud<BasicReactingParcel>& owner,
84 const vector& position,
87 const scalar nParticle0,
90 const scalarField& Y0,
91 const typename ReactingParcel<BasicReactingParcel>::
92 constantProperties& constProps
95 //- Construct from Istream
98 const Cloud<BasicReactingParcel>& c,
100 bool readFields = true
103 //- Construct as a copy
104 BasicReactingParcel(const BasicReactingParcel& p);
106 //- Construct and return a clone
107 autoPtr<BasicReactingParcel> clone() const
110 autoPtr<BasicReactingParcel>
112 new BasicReactingParcel(*this)
118 virtual ~BasicReactingParcel();
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 } // End namespace Foam
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 #include "BasicReactingParcel.C"
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 // ************************************************************************* //