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::BasicReactingMultiphaseParcel
32 BasicReactingMultiphaseParcel.C
33 BasicReactingMultiphaseParcelIO.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef BasicReactingMultiphaseParcel_H
38 #define BasicReactingMultiphaseParcel_H
40 #include "ReactingMultiphaseParcel.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 // Forward declaration of classes
49 template<class ThermoType>
50 class BasicReactingMultiphaseParcel;
52 /*---------------------------------------------------------------------------*\
53 Class BasicReactingMultiphaseParcel Declaration
54 \*---------------------------------------------------------------------------*/
56 template<class ThermoType>
57 class BasicReactingMultiphaseParcel
59 public ReactingMultiphaseParcel<BasicReactingMultiphaseParcel<ThermoType> >
64 //- The type of thermodynamics this parcel was instantiated for
65 typedef ThermoType thermoType;
67 //- Run-time type information
68 TypeName("BasicReactingMultiphaseParcel");
72 //- Construct from owner, position, and cloud owner
73 // Other properties initialised as null
74 BasicReactingMultiphaseParcel
76 ReactingMultiphaseCloud<BasicReactingMultiphaseParcel>& owner,
77 const vector& position,
81 //- Construct from components
82 BasicReactingMultiphaseParcel
84 ReactingMultiphaseCloud<BasicReactingMultiphaseParcel>& owner,
85 const vector& position,
88 const scalar nParticle0,
91 const scalarField& YGas0,
92 const scalarField& YLiquid0,
93 const scalarField& YSolid0,
94 const scalarField& Y0,
96 ReactingMultiphaseParcel<BasicReactingMultiphaseParcel>::
97 constantProperties& constProps
100 //- Construct from Istream
101 BasicReactingMultiphaseParcel
103 const Cloud<BasicReactingMultiphaseParcel>& c,
105 bool readFields = true
108 //- Construct as a copy
109 BasicReactingMultiphaseParcel(const BasicReactingMultiphaseParcel& p);
111 //- Construct and return a clone
112 autoPtr<BasicReactingMultiphaseParcel> clone() const
115 autoPtr<BasicReactingMultiphaseParcel>
117 new BasicReactingMultiphaseParcel(*this)
123 virtual ~BasicReactingMultiphaseParcel();
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 } // End namespace Foam
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 #include "BasicReactingMultiphaseParcel.C"
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 // ************************************************************************* //