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::pyrolysisModelCollection
28 A centralized pyrolysis collection.
30 Container class for a set of pyrolysis with functions implemented
31 to loop over the functions for each type.
34 pyrolysisModelCollection.C
36 \*---------------------------------------------------------------------------*/
38 #ifndef pyrolysisModelCollection_H
39 #define pyrolysisModelCollection_H
41 #include "IOPtrList.H"
42 #include "pyrolysisModel.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 // Forward declaration of friend functions and operators
53 namespace regionModels
55 namespace pyrolysisModels
58 /*---------------------------------------------------------------------------*\
59 Class pyrolysisModelCollection Declaration
60 \*---------------------------------------------------------------------------*/
62 class pyrolysisModelCollection
64 public IOPtrList<pyrolysisModel>
68 //- Reference to the finite volume mesh this zone is part of
72 // Private Member Functions
74 //- Disallow default bitwise copy construct
75 pyrolysisModelCollection(const pyrolysisModelCollection&);
77 //- Disallow default bitwise assignment
78 void operator=(const pyrolysisModelCollection&);
86 //- Construct from mesh
87 pyrolysisModelCollection(const fvMesh&);
92 //- Pre-evolve regions
93 void preEvolveRegion();
95 //- Evolve the pyrolysis equation regions
101 //- Provide some feedback from pyrolysis regions
104 //- Return max diffusivity allowed in the solid
105 scalar maxDiff() const;
107 //- Mean diffusion number of the solid regions
108 scalar solidRegionDiffNo() const;
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 } // End namespace pyrolysisModels
116 } // End namespace regionModels
117 } // End namespace Foam
122 // ************************************************************************* //