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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::solidReactionThermo
29
30Description
31 Foam::solidReactionThermo
32
33SourceFiles
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"
45
46// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47
48namespace Foam
49{
50
51/*---------------------------------------------------------------------------*\
52 Class solidReactionThermo Declaration
53\*---------------------------------------------------------------------------*/
54
57:
58 public solidThermo
59{
60
61public:
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,
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// ************************************************************************* //
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
Foam::solidReactionThermo.
declareRunTimeSelectionTable(autoPtr, solidReactionThermo, dictionary,(const fvMesh &mesh, const dictionary &dict, const word &phaseName),(mesh, dict, phaseName))
declareRunTimeSelectionTable(autoPtr, solidReactionThermo, fvMesh,(const fvMesh &mesh, const word &phaseName),(mesh, phaseName))
Declare run-time constructor selection tables.
static autoPtr< solidReactionThermo > New(const fvMesh &, const word &phaseName=word::null)
Standard selection based on fvMesh.
virtual ~solidReactionThermo()
Destructor.
virtual basicSpecieMixture & composition()=0
Return the composition of the multi-component mixture.
virtual const basicSpecieMixture & composition() const =0
Return the composition of the multi-component mixture.
TypeName("solidReactionThermo")
Runtime type information.
Fundamental solid thermodynamic properties.
Definition: solidThermo.H:55
A class for handling words, derived from Foam::string.
Definition: word.H:68
dynamicFvMesh & mesh
Namespace for OpenFOAM.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73