FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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-2010 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
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your 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, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::BasicReactingMultiphaseParcel
00026 
00027 Description
00028 
00029 
00030 SourceFiles
00031     BasicReactingMultiphaseParcel.C
00032     BasicReactingMultiphaseParcelIO.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef BasicReactingMultiphaseParcel_H
00037 #define BasicReactingMultiphaseParcel_H
00038 
00039 #include <lagrangianIntermediate/ReactingMultiphaseParcel.H>
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 
00044 namespace Foam
00045 {
00046 
00047 // Forward declaration of classes
00048 template<class ThermoType>
00049 class BasicReactingMultiphaseParcel;
00050 
00051 /*---------------------------------------------------------------------------*\
00052                Class BasicReactingMultiphaseParcel Declaration
00053 \*---------------------------------------------------------------------------*/
00054 
00055 template<class ThermoType>
00056 class BasicReactingMultiphaseParcel
00057 :
00058     public ReactingMultiphaseParcel<BasicReactingMultiphaseParcel<ThermoType> >
00059 {
00060 
00061 public:
00062 
00063     //- The type of thermodynamics this parcel was instantiated for
00064     typedef ThermoType thermoType;
00065 
00066     //- Run-time type information
00067     TypeName("BasicReactingMultiphaseParcel");
00068 
00069     // Constructors
00070 
00071         //- Construct from owner, position, and cloud owner
00072         //  Other properties initialised as null
00073         BasicReactingMultiphaseParcel
00074         (
00075              ReactingMultiphaseCloud<BasicReactingMultiphaseParcel>& owner,
00076              const vector& position,
00077              const label cellI
00078         );
00079 
00080         //- Construct from components
00081         BasicReactingMultiphaseParcel
00082         (
00083              ReactingMultiphaseCloud<BasicReactingMultiphaseParcel>& owner,
00084              const vector& position,
00085              const label cellI,
00086              const label typeId,
00087              const scalar nParticle0,
00088              const scalar d0,
00089              const vector& U0,
00090              const scalarField& YGas0,
00091              const scalarField& YLiquid0,
00092              const scalarField& YSolid0,
00093              const scalarField& Y0,
00094              const typename
00095                 ReactingMultiphaseParcel<BasicReactingMultiphaseParcel>::
00096                 constantProperties& constProps
00097         );
00098 
00099         //- Construct from Istream
00100         BasicReactingMultiphaseParcel
00101         (
00102             const Cloud<BasicReactingMultiphaseParcel>& c,
00103             Istream& is,
00104             bool readFields = true
00105         );
00106 
00107         //- Construct as a copy
00108         BasicReactingMultiphaseParcel(const BasicReactingMultiphaseParcel& p);
00109 
00110         //- Construct and return a clone
00111         autoPtr<BasicReactingMultiphaseParcel> clone() const
00112         {
00113             return
00114                 autoPtr<BasicReactingMultiphaseParcel>
00115                 (
00116                     new BasicReactingMultiphaseParcel(*this)
00117                 );
00118         }
00119 
00120 
00121     //- Destructor
00122     virtual ~BasicReactingMultiphaseParcel();
00123 };
00124 
00125 
00126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00127 
00128 } // End namespace Foam
00129 
00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00131 
00132 #ifdef NoRepository
00133     #include "BasicReactingMultiphaseParcel.C"
00134 #endif
00135 
00136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00137 
00138 #endif
00139 
00140 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines