rhoReactionThermo.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::rhoReactionThermo
29 
30 Group
31  grpRhoThermo
32 
33 Description
34  Foam::rhoReactionThermo
35 
36 SourceFiles
37  rhoReactionThermo.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef rhoReactionThermo_H
42 #define rhoReactionThermo_H
43 
44 #include "rhoThermo.H"
45 #include "basicSpecieMixture.H"
46 #include "autoPtr.H"
47 #include "runTimeSelectionTables.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class rhoReactionThermo Declaration
56 \*---------------------------------------------------------------------------*/
57 
59 :
60  public rhoThermo
61 {
62 
63 public:
64 
65  //- Runtime type information
66  TypeName("rhoReactionThermo");
67 
68 
69  //- Declare run-time constructor selection tables
71  (
72  autoPtr,
74  fvMesh,
75  (const fvMesh& mesh, const word& phaseName),
76  (mesh, phaseName)
77  );
78 
79 
80  //- Declare run-time constructor selection table for dictionary based
82  (
83  autoPtr,
85  fvMeshDictPhase,
86  (const fvMesh& mesh, const word& phaseName, const word& dictName),
87  (mesh, phaseName, dictName)
88  );
89 
90 
91  // Constructors
92 
93  //- Construct from mesh and phase name
95  (
96  const fvMesh&,
97  const word& phaseName
98  );
99 
100 
101  //- Construct from mesh,dictionary,phase name with a single temperature
103  (
104  const fvMesh&,
105  const word& phaseName,
106  const word& dictName
107  );
108 
109 
110  // Selectors
111 
112  //- Standard selection based on fvMesh
114  (
115  const fvMesh&,
116  const word& phaseName=word::null
117  );
118 
119 
120  //- Selector based on mesh, phase name and dictionary
122  (
123  const fvMesh&,
124  const word& phaseName,
125  const word& dictName
126  );
127 
128 
129  //- Destructor
130  virtual ~rhoReactionThermo();
131 
132 
133  // Member functions
134 
135  //- Return the composition of the multi-component mixture
136  virtual basicSpecieMixture& composition() = 0;
137 
138  //- Return the composition of the multi-component mixture
139  virtual const basicSpecieMixture& composition() const = 0;
140 };
141 
142 
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 
145 } // End namespace Foam
146 
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 
149 #endif
150 
151 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
Foam::rhoReactionThermo::composition
virtual basicSpecieMixture & composition()=0
Return the composition of the multi-component mixture.
Foam::rhoReactionThermo::TypeName
TypeName("rhoReactionThermo")
Runtime type information.
Foam::basicSpecieMixture
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
Definition: basicSpecieMixture.H:54
Foam::rhoReactionThermo
Foam::rhoReactionThermo.
Definition: rhoReactionThermo.H:57
rhoThermo.H
Foam::rhoThermo
Basic thermodynamic properties based on density.
Definition: rhoThermo.H:55
Foam::rhoReactionThermo::rhoReactionThermo
rhoReactionThermo(const fvMesh &, const word &phaseName)
Construct from mesh and phase name.
Definition: rhoReactionThermo.C:44
Foam::dictionary::dictName
word dictName() const
The local dictionary name (final part of scoped name)
Definition: dictionary.H:458
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:84
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::rhoReactionThermo::~rhoReactionThermo
virtual ~rhoReactionThermo()
Destructor.
Definition: rhoReactionThermo.C:88
Foam::word::null
static const word null
An empty word.
Definition: word.H:77
Foam::rhoReactionThermo::declareRunTimeSelectionTable
declareRunTimeSelectionTable(autoPtr, rhoReactionThermo, fvMesh,(const fvMesh &mesh, const word &phaseName),(mesh, phaseName))
Declare run-time constructor selection tables.
Foam::rhoReactionThermo::New
static autoPtr< rhoReactionThermo > New(const fvMesh &, const word &phaseName=word::null)
Standard selection based on fvMesh.
Definition: rhoReactionThermo.C:67
basicSpecieMixture.H
autoPtr.H