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

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