singleStepCombustion.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-2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::combustionModels::singleStepCombustion
28 
29 Group
30  grpCombustionModels
31 
32 Description
33  Base class for combustion models using singleStepReactingMixture.
34 
35 SourceFiles
36  singleStepCombustion.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef singleStepCombustion_H
41 #define singleStepCombustion_H
42 
44 #include "ThermoCombustion.H"
45 #include "fvScalarMatrix.H"
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 namespace combustionModels
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class singleStepCombustion Declaration
56 \*---------------------------------------------------------------------------*/
57 
58 template<class ReactionThermo, class ThermoType>
60 :
61  public ThermoCombustion<ReactionThermo>
62 {
63  // Private Member Functions
64 
65  //- No copy construct
67 
68  //- No copy assignment
69  void operator=(const singleStepCombustion&) = delete;
70 
71 
72 protected:
73 
74  // Protected data
75 
76  //- Pointer to singleStepReactingMixture mixture
78 
79  //- Fuel consumption rate
81 
82  //- Semi-implicit (true) or explicit (false) treatment
84 
85 
86 public:
87 
88  // Constructors
89 
90  //- Construct from components
92  (
93  const word& modelType,
94  ReactionThermo& thermo,
96  const word& combustionProperties
97  );
98 
99 
100  //- Destructor
101  virtual ~singleStepCombustion();
102 
103 
104  // Member Functions
105 
106  //- Fuel consumption rate matrix
107  virtual tmp<fvScalarMatrix> R(volScalarField& Y) const;
108 
109  //- Heat release rate [kg/m/s3]
110  virtual tmp<volScalarField> Qdot() const;
111 
112  //- Update properties from given dictionary
113  virtual bool read();
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace combustionModels
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #ifdef NoRepository
125  #include "singleStepCombustion.C"
126 #endif
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 #endif
131 
132 // ************************************************************************* //
volScalarField wFuel_
Fuel consumption rate.
Single step reacting mixture.
compressible::turbulenceModel & turb
bool semiImplicit_
Semi-implicit (true) or explicit (false) treatment.
A class for handling words, derived from Foam::string.
Definition: word.H:63
singleStepReactingMixture< ThermoType > * singleMixturePtr_
Pointer to singleStepReactingMixture mixture.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Abstract base class for turbulence models (RAS, LES and laminar).
Thermo model wrapper for combustion models.
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s3].
virtual bool read()
Update properties from given dictionary.
A scalar instance of fvMatrix.
PtrList< volScalarField > & Y
Base class for combustion models using singleStepReactingMixture.
A class for managing temporary objects.
Definition: HashPtrTable.H:50
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Namespace for OpenFOAM.