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

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