1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
25 Foam::NoSurfaceReaction
28 Dummy surface reaction model for 'none'
30 \*---------------------------------------------------------------------------*/
32 #ifndef NoSurfaceReaction_H
33 #define NoSurfaceReaction_H
35 #include "SurfaceReactionModel.H"
37 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 /*---------------------------------------------------------------------------*\
42 Class NoSurfaceReaction Declaration
43 \*---------------------------------------------------------------------------*/
45 template<class CloudType>
46 class NoSurfaceReaction
48 public SurfaceReactionModel<CloudType>
52 //- Runtime type information
58 //- Construct from dictionary
59 NoSurfaceReaction(const dictionary& dict, CloudType& owner);
62 NoSurfaceReaction(const NoSurfaceReaction<CloudType>& srm);
64 //- Construct and return a clone
65 virtual autoPtr<SurfaceReactionModel<CloudType> > clone() const
67 return autoPtr<SurfaceReactionModel<CloudType> >
69 new NoSurfaceReaction<CloudType>(*this)
75 virtual ~NoSurfaceReaction();
80 //- Flag to indicate whether model activates devolatisation model
81 virtual bool active() const;
83 //- Update surface reactions
84 virtual scalar calculate
94 const scalarField& YGas,
95 const scalarField& YLiquid,
96 const scalarField& YSolid,
97 const scalarField& YMixture,
99 scalarField& dMassGas,
100 scalarField& dMassLiquid,
101 scalarField& dMassSolid,
102 scalarField& dMassSRCarrier
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 } // End namespace Foam
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 # include "NoSurfaceReaction.C"
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 // ************************************************************************* //