solidReactionThermo.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-2015 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::solidReactionThermo
26 
27 Description
28  Foam::solidReactionThermo
29 
30 SourceFiles
31  solidReactionThermo.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef solidReactionThermo_H
36 #define solidReactionThermo_H
37 
38 #include "basicSpecieMixture.H"
39 #include "solidThermo.H"
40 #include "autoPtr.H"
41 #include "runTimeSelectionTables.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class solidReactionThermo Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 
54 :
55  public solidThermo
56 {
57 
58 public:
59 
60  //- Runtime type information
61  TypeName("solidReactionThermo");
62 
63 
64  //- Declare run-time constructor selection tables
66  (
67  autoPtr,
69  fvMesh,
70  (const fvMesh& mesh, const word& phaseName),
71  (mesh, phaseName)
72  );
73 
74  // Declare run-time constructor selection tables
76  (
77  autoPtr,
79  dictionary,
80  (const fvMesh& mesh, const dictionary& dict, const word& phaseName),
81  (mesh, dict, phaseName)
82  );
83 
84  // Constructors
85 
86  //- Construct from mesh and phase name
88  (
89  const fvMesh&,
90  const word& phaseName
91  );
92 
93  //- Construct from mesh, dictionary and phase name
95  (
96  const fvMesh&,
97  const dictionary&,
98  const word& phaseName
99  );
100 
101 
102  // Selectors
103 
104  //- Standard selection based on fvMesh
106  (
107  const fvMesh&,
108  const word& phaseName=word::null
109  );
110 
111  //- Standard selection based on fvMesh amd dictionary
113  (
114  const fvMesh&,
115  const dictionary&,
116  const word& phaseName=word::null
117  );
118 
119 
120  //- Destructor
121  virtual ~solidReactionThermo();
122 
123 
124  // Member functions
125 
126  //- Return the composition of the multi-component mixture
127  virtual basicSpecieMixture& composition() = 0;
128 
129  //- Return the composition of the multi-component mixture
130  virtual const basicSpecieMixture& composition() const = 0;
131 
132 };
133 
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 } // End namespace Foam
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 #endif
142 
143 // ************************************************************************* //
dictionary dict
TypeName("solidReactionThermo")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
Foam::solidReactionThermo.
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
virtual basicSpecieMixture & composition()=0
Return the composition of the multi-component mixture.
virtual ~solidReactionThermo()
Destructor.
declareRunTimeSelectionTable(autoPtr, solidReactionThermo, fvMesh,(const fvMesh &mesh, const word &phaseName),(mesh, phaseName))
Declare run-time constructor selection tables.
dynamicFvMesh & mesh
A class for handling words, derived from string.
Definition: word.H:59
static const word null
An empty word.
Definition: word.H:77
Fundamental solid thermodynamic properties.
Definition: solidThermo.H:54
static autoPtr< solidReactionThermo > New(const fvMesh &, const word &phaseName=word::null)
Standard selection based on fvMesh.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:53
Macros to ease declaration of run-time selection tables.
solidReactionThermo(const fvMesh &, const word &phaseName)
Construct from mesh and phase name.
Namespace for OpenFOAM.