1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::ConstantRateDevolatilisation
29 Constant rate devolatisation model
30 - need to set vapourisation temperature to 600 K
32 \*---------------------------------------------------------------------------*/
34 #ifndef ConstantRateDevolatilisation_H
35 #define ConstantRateDevolatilisation_H
37 #include "DevolatilisationModel.H"
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 /*---------------------------------------------------------------------------*\
44 Class ConstantRateDevolatilisation Declaration
45 \*---------------------------------------------------------------------------*/
47 template<class CloudType>
48 class ConstantRateDevolatilisation
50 public DevolatilisationModel<CloudType>
56 //- Rate constant (suggested default = 12) [1/s]
59 //- Volatile residual coefficient (0-1)
60 // When the fraction of volatiles are depleted below this
61 // threshold, combustion can occur
62 const scalar volatileResidualCoeff_;
67 //- Runtime type information
68 TypeName("ConstantRateDevolatilisation");
73 //- Construct from dictionary
74 ConstantRateDevolatilisation
76 const dictionary& dict,
82 virtual ~ConstantRateDevolatilisation();
87 //- Flag to indicate whether model activates devolatilisation model
88 virtual bool active() const;
91 virtual scalar calculate
97 const scalar YVolatile0,
98 const scalar YVolatile,
104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 } // End namespace Foam
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 # include "ConstantRateDevolatilisation.C"
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 // ************************************************************************* //