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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2015 OpenFOAM Foundation
9  Copyright (C) 2017 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::solidReactionThermo
29 
30 Description
31  Foam::solidReactionThermo
32 
33 SourceFiles
34  solidReactionThermo.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef solidReactionThermo_H
39 #define solidReactionThermo_H
40 
41 #include "basicSpecieMixture.H"
42 #include "solidThermo.H"
43 #include "autoPtr.H"
44 #include "runTimeSelectionTables.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class solidReactionThermo Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 
57 :
58  public solidThermo
59 {
60 
61 public:
62 
63  //- Runtime type information
64  TypeName("solidReactionThermo");
65 
66 
67  //- Declare run-time constructor selection tables
69  (
70  autoPtr,
72  fvMesh,
73  (const fvMesh& mesh, const word& phaseName),
74  (mesh, phaseName)
75  );
76 
77  // Declare run-time constructor selection tables
79  (
80  autoPtr,
82  dictionary,
83  (const fvMesh& mesh, const dictionary& dict, const word& phaseName),
84  (mesh, dict, phaseName)
85  );
86 
87  // Constructors
88 
89  //- Construct from mesh and phase name
91  (
92  const fvMesh&,
93  const word& phaseName
94  );
95 
96  //- Construct from mesh, dictionary and phase name
98  (
99  const fvMesh&,
100  const dictionary&,
101  const word& phaseName
102  );
103 
104 
105  // Selectors
106 
107  //- Standard selection based on fvMesh
109  (
110  const fvMesh&,
111  const word& phaseName=word::null
112  );
113 
114  //- Standard selection based on fvMesh amd dictionary
116  (
117  const fvMesh&,
118  const dictionary&,
119  const word& phaseName=word::null
120  );
121 
122 
123  //- Destructor
124  virtual ~solidReactionThermo();
125 
126 
127  // Member functions
128 
129  //- Return the composition of the multi-component mixture
130  virtual basicSpecieMixture& composition() = 0;
131 
132  //- Return the composition of the multi-component mixture
133  virtual const basicSpecieMixture& composition() const = 0;
134 
135 };
136 
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 } // End namespace Foam
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 #endif
145 
146 // ************************************************************************* //
Foam::solidReactionThermo
Foam::solidReactionThermo.
Definition: solidReactionThermo.H:55
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::solidReactionThermo::solidReactionThermo
solidReactionThermo(const fvMesh &, const word &phaseName)
Construct from mesh and phase name.
Definition: solidReactionThermo.C:44
Foam::basicSpecieMixture
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
Definition: basicSpecieMixture.H:58
solidThermo.H
Foam::solidThermo
Fundamental solid thermodynamic properties.
Definition: solidThermo.H:52
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
runTimeSelectionTables.H
Macros to ease declaration of run-time selection tables.
Foam::solidReactionThermo::~solidReactionThermo
virtual ~solidReactionThermo()
Destructor.
Definition: solidReactionThermo.C:89
Foam::word::null
static const word null
An empty word.
Definition: word.H:80
Foam::solidReactionThermo::declareRunTimeSelectionTable
declareRunTimeSelectionTable(autoPtr, solidReactionThermo, fvMesh,(const fvMesh &mesh, const word &phaseName),(mesh, phaseName))
Declare run-time constructor selection tables.
Foam::solidReactionThermo::TypeName
TypeName("solidReactionThermo")
Runtime type information.
Foam::solidReactionThermo::New
static autoPtr< solidReactionThermo > New(const fvMesh &, const word &phaseName=word::null)
Standard selection based on fvMesh.
Definition: solidReactionThermo.C:67
Foam::solidReactionThermo::composition
virtual basicSpecieMixture & composition()=0
Return the composition of the multi-component mixture.
basicSpecieMixture.H
autoPtr.H