1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd.
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 /*---------------------------------------------------------------------------*\
48 Class basicReactingParcel Declaration
49 \*---------------------------------------------------------------------------*/
51 class basicReactingParcel
53 public ReactingParcel<basicReactingParcel>
58 //- Run-time type information
59 TypeName("basicReactingParcel");
63 //- Construct from components
66 ReactingCloud<basicReactingParcel>& owner,
68 const vector& position,
72 const scalar nParticle0,
73 const scalarField& YGas0,
74 const scalarField& YLiquid0,
75 const scalarField& YSolid0,
76 const scalarField& YMixture0,
77 const constantProperties& constProps
80 //- Construct from Istream
83 const Cloud<basicReactingParcel>& c,
85 bool readFields = true
88 //- Construct and return a clone
89 autoPtr<basicReactingParcel> clone() const
91 return autoPtr<basicReactingParcel>
92 (new basicReactingParcel(*this));
98 virtual ~basicReactingParcel();
103 inline bool contiguous<basicReactingParcel>()
105 return false; // Now have scalar lists/fields (mass fractions)
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 } // End namespace Foam
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 // ************************************************************************* //