OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

BasicReactingMultiphaseParcel.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 2008-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     Foam::BasicReactingMultiphaseParcel
00027 
00028 Description
00029 
00030 
00031 SourceFiles
00032     BasicReactingMultiphaseParcel.C
00033     BasicReactingMultiphaseParcelIO.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef BasicReactingMultiphaseParcel_H
00038 #define BasicReactingMultiphaseParcel_H
00039 
00040 #include "ReactingMultiphaseParcel.H"
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 
00045 namespace Foam
00046 {
00047 
00048 // Forward declaration of classes
00049 template<class ThermoType>
00050 class BasicReactingMultiphaseParcel;
00051 
00052 /*---------------------------------------------------------------------------*\
00053                Class BasicReactingMultiphaseParcel Declaration
00054 \*---------------------------------------------------------------------------*/
00055 
00056 template<class ThermoType>
00057 class BasicReactingMultiphaseParcel
00058 :
00059     public ReactingMultiphaseParcel<BasicReactingMultiphaseParcel<ThermoType> >
00060 {
00061 
00062 public:
00063 
00064     //- The type of thermodynamics this parcel was instantiated for
00065     typedef ThermoType thermoType;
00066 
00067     //- Run-time type information
00068     TypeName("BasicReactingMultiphaseParcel");
00069 
00070     // Constructors
00071 
00072         //- Construct from owner, position, and cloud owner
00073         //  Other properties initialised as null
00074         BasicReactingMultiphaseParcel
00075         (
00076              ReactingMultiphaseCloud<BasicReactingMultiphaseParcel>& owner,
00077              const vector& position,
00078              const label cellI
00079         );
00080 
00081         //- Construct from components
00082         BasicReactingMultiphaseParcel
00083         (
00084              ReactingMultiphaseCloud<BasicReactingMultiphaseParcel>& owner,
00085              const vector& position,
00086              const label cellI,
00087              const label typeId,
00088              const scalar nParticle0,
00089              const scalar d0,
00090              const vector& U0,
00091              const scalarField& YGas0,
00092              const scalarField& YLiquid0,
00093              const scalarField& YSolid0,
00094              const scalarField& Y0,
00095              const typename
00096                 ReactingMultiphaseParcel<BasicReactingMultiphaseParcel>::
00097                 constantProperties& constProps
00098         );
00099 
00100         //- Construct from Istream
00101         BasicReactingMultiphaseParcel
00102         (
00103             const Cloud<BasicReactingMultiphaseParcel>& c,
00104             Istream& is,
00105             bool readFields = true
00106         );
00107 
00108         //- Construct as a copy
00109         BasicReactingMultiphaseParcel(const BasicReactingMultiphaseParcel& p);
00110 
00111         //- Construct and return a clone
00112         autoPtr<BasicReactingMultiphaseParcel> clone() const
00113         {
00114             return
00115                 autoPtr<BasicReactingMultiphaseParcel>
00116                 (
00117                     new BasicReactingMultiphaseParcel(*this)
00118                 );
00119         }
00120 
00121 
00122     //- Destructor
00123     virtual ~BasicReactingMultiphaseParcel();
00124 };
00125 
00126 
00127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00128 
00129 } // End namespace Foam
00130 
00131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00132 
00133 #ifdef NoRepository
00134     #include "BasicReactingMultiphaseParcel.C"
00135 #endif
00136 
00137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00138 
00139 #endif
00140 
00141 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd