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

SingleKineticRateDevolatilisation.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::SingleKineticRateDevolatilisation
00026 
00027 Description
00028     Single kinetic rate devolatisation model
00029 
00030 \*---------------------------------------------------------------------------*/
00031 
00032 #ifndef SingleKineticRateDevolatilisation_H
00033 #define SingleKineticRateDevolatilisation_H
00034 
00035 #include <lagrangianIntermediate/DevolatilisationModel.H>
00036 
00037 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00038 
00039 namespace Foam
00040 {
00041 /*---------------------------------------------------------------------------*\
00042               Class SingleKineticRateDevolatilisation Declaration
00043 \*---------------------------------------------------------------------------*/
00044 
00045 template<class CloudType>
00046 class SingleKineticRateDevolatilisation
00047 :
00048     public DevolatilisationModel<CloudType>
00049 {
00050     // Private data
00051 
00052         // Model constants
00053 
00054             //- Activation energy
00055             const scalar A1_;
00056 
00057             //- Pre-exoponential factor
00058             const scalar E_;
00059 
00060             //- Volatile residual coefficient (0-1)
00061             //  When the fraction of volatiles are depleted below this
00062             //  threshold, combustion can occur
00063             const scalar volatileResidualCoeff_;
00064 
00065 
00066 public:
00067 
00068     //- Runtime type information
00069     TypeName("SingleKineticRateDevolatilisation");
00070 
00071 
00072     // Constructors
00073 
00074         //- Construct from dictionary
00075         SingleKineticRateDevolatilisation
00076         (
00077             const dictionary& dict,
00078             CloudType& owner
00079         );
00080 
00081 
00082     //- Destructor
00083     virtual ~SingleKineticRateDevolatilisation();
00084 
00085 
00086     // Member Functions
00087 
00088         //- Flag to indicate whether model activates devolatilisation model
00089         virtual bool active() const;
00090 
00091         //- Update model
00092         virtual scalar calculate
00093         (
00094             const scalar dt,
00095             const scalar mass0,
00096             const scalar mass,
00097             const scalar T,
00098             const scalar YVolatile0,
00099             const scalar YVolatile,
00100             bool& canCombust
00101         ) const;
00102 };
00103 
00104 
00105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00106 
00107 } // End namespace Foam
00108 
00109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00110 
00111 #ifdef NoRepository
00112 #   include <lagrangianIntermediate/SingleKineticRateDevolatilisation.C>
00113 #endif
00114 
00115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00116 
00117 #endif
00118 
00119 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines