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

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