BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / src / lagrangian / intermediate / submodels / ReactingMultiphase / SurfaceReactionModel / NoSurfaceReaction / NoSurfaceReaction.H
blobae577e705becb66993b8ad2ab2f5d2120fdc984f
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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/>.
24 Class
25     Foam::NoSurfaceReaction
27 Description
28     Dummy surface reaction model for 'none'
30 \*---------------------------------------------------------------------------*/
32 #ifndef NoSurfaceReaction_H
33 #define NoSurfaceReaction_H
35 #include "SurfaceReactionModel.H"
37 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 namespace Foam
41 /*---------------------------------------------------------------------------*\
42                      Class NoSurfaceReaction Declaration
43 \*---------------------------------------------------------------------------*/
45 template<class CloudType>
46 class NoSurfaceReaction
48     public SurfaceReactionModel<CloudType>
50 public:
52     //- Runtime type information
53     TypeName("none");
56     // Constructors
58         //- Construct from dictionary
59         NoSurfaceReaction(const dictionary& dict, CloudType& owner);
61         //- Construct copy
62         NoSurfaceReaction(const NoSurfaceReaction<CloudType>& srm);
64         //- Construct and return a clone
65         virtual autoPtr<SurfaceReactionModel<CloudType> > clone() const
66         {
67             return autoPtr<SurfaceReactionModel<CloudType> >
68             (
69                 new NoSurfaceReaction<CloudType>(*this)
70             );
71         }
74     //- Destructor
75     virtual ~NoSurfaceReaction();
78     // Member Functions
80         //- Flag to indicate whether model activates devolatisation model
81         virtual bool active() const;
83         //- Update surface reactions
84         virtual scalar calculate
85         (
86             const scalar dt,
87             const label cellI,
88             const scalar d,
89             const scalar T,
90             const scalar Tc,
91             const scalar pc,
92             const scalar rhoc,
93             const scalar mass,
94             const scalarField& YGas,
95             const scalarField& YLiquid,
96             const scalarField& YSolid,
97             const scalarField& YMixture,
98             const scalar N,
99             scalarField& dMassGas,
100             scalarField& dMassLiquid,
101             scalarField& dMassSolid,
102             scalarField& dMassSRCarrier
103         ) const;
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 } // End namespace Foam
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 #ifdef NoRepository
114 #   include "NoSurfaceReaction.C"
115 #endif
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 #endif
121 // ************************************************************************* //