rhoCombustionModel.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::rhoCombustionModel
26 
27 Description
28  Combustion models for rho-based thermodynamics
29 
30 SourceFiles
31  rhoCombustionModelI.H
32  rhoCombustionModel.C
33  rhoCombustionModelNew.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef rhoCombustionModel_H
38 #define rhoCombustionModel_H
39 
40 #include "combustionModel.H"
41 #include "autoPtr.H"
42 #include "runTimeSelectionTables.H"
43 #include "rhoReactionThermo.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace combustionModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  class rhoCombustionModel Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 :
58  public combustionModel
59 {
60 
61  // Private Member Functions
62 
63  //- Construct as copy (not implemented)
65 
66  //- Disallow default bitwise assignment
67  void operator=(const rhoCombustionModel&);
68 
69 
70 public:
71 
73 
74 
75  //- Runtime type information
76  TypeName("rhoCombustionModel");
77 
78 
79  //- Declare run-time constructor selection tables
81  (
82  autoPtr,
84  dictionary,
85  (
86  const word& modelType,
87  const fvMesh& mesh,
88  const word& combustionProperties,
89  const word& phaseName
90  ),
91  (modelType, mesh, combustionProperties, phaseName)
92  );
93 
94 
95  // Constructors
96 
97 
98  //- Construct from components
100  (
101  const word& modelType,
102  const fvMesh& mesh,
103  const word& combustionProperties,
104  const word& phaseName
105  );
106 
107 
108 
109  //- Selector
111  (
112  const fvMesh& mesh,
113  const word& combustionProperties=combustionPropertiesName,
114  const word& phaseName=word::null
115  );
116 
117 
118  //- Destructor
119  virtual ~rhoCombustionModel();
120 
121 
122  // Member Functions
123 
124  // Access functions
125 
126  //- Access combustion dict
127  inline const dictionary& coeff() const;
128 
129 
130  //- Return access to the thermo package
131  virtual rhoReactionThermo& thermo() = 0;
132 
133  //- Return const access to the thermo package
134  virtual const rhoReactionThermo& thermo() const = 0;
135 
136 
137  // IO
138 
139  //- Update properties from given dictionary
140  virtual bool read();
141 };
142 
143 
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 
146 } // End namespace combustionModels
147 } // End namespace Foam
148 
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150 
151 #endif
152 
153 // ************************************************************************* //
virtual bool read()
Update properties from given dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
const fvMesh & mesh() const
Return const access to the mesh database.
declareRunTimeSelectionTable(autoPtr, rhoCombustionModel, dictionary,(const word &modelType, const fvMesh &mesh, const word &combustionProperties, const word &phaseName),(modelType, mesh, combustionProperties, phaseName))
Declare run-time constructor selection tables.
A class for handling words, derived from string.
Definition: word.H:59
Foam::rhoReactionThermo.
static const word null
An empty word.
Definition: word.H:77
virtual rhoReactionThermo & thermo()=0
Return access to the thermo package.
TypeName("rhoCombustionModel")
Runtime type information.
const dictionary & coeff() const
Access combustion dict.
Base class for combustion models.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
static autoPtr< rhoCombustionModel > New(const fvMesh &mesh, const word &combustionProperties=combustionPropertiesName, const word &phaseName=word::null)
Selector.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
Macros to ease declaration of run-time selection tables.
Namespace for OpenFOAM.
static const word combustionPropertiesName
Default combustionProperties dictionary name.