All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
singleStepCombustion.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2019 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::combustionModels::singleStepCombustion
26 
27 Description
28  Base class for combustion models using singleStepReactingMixture.
29 
30 SourceFiles
31  singleStepCombustion.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef singleStepCombustion_H
36 #define singleStepCombustion_H
37 
39 #include "ThermoCombustion.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace combustionModels
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class singleStepCombustion Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 template<class ReactionThermo, class ThermoType>
54 :
55  public ThermoCombustion<ReactionThermo>
56 {
57 protected:
58 
59  // Protected data
60 
61  //- Pointer to singleStepReactingMixture mixture
63 
64  //- Fuel consumption rate
66 
67  //- Semi-implicit (true) or explicit (false) treatment
68  bool semiImplicit_;
69 
70 
71 public:
72 
73  // Constructors
74 
75  //- Construct from components
77  (
78  const word& modelType,
79  ReactionThermo& thermo,
80  const compressibleTurbulenceModel& turb,
81  const word& combustionProperties
82  );
83 
84  //- Disallow default bitwise copy construction
86 
87 
88  //- Destructor
89  virtual ~singleStepCombustion();
90 
91 
92  // Member Functions
93 
94  //- Fuel consumption rate matrix
95  virtual tmp<fvScalarMatrix> R(volScalarField& Y) const;
96 
97  //- Heat release rate [kg/m/s^3]
98  virtual tmp<volScalarField> Qdot() const;
99 
100  //- Update properties from given dictionary
101  virtual bool read();
102 
103 
104  // Member Operators
105 
106  //- Disallow default bitwise assignment
107  void operator=(const singleStepCombustion&) = delete;
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace combustionModels
114 } // End namespace Foam
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #ifdef NoRepository
119  #include "singleStepCombustion.C"
120 #endif
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
volScalarField wFuel_
Fuel consumption rate.
Single step reacting mixture.
singleStepCombustion(const word &modelType, ReactionThermo &thermo, const compressibleTurbulenceModel &turb, const word &combustionProperties)
Construct from components.
bool semiImplicit_
Semi-implicit (true) or explicit (false) treatment.
A class for handling words, derived from string.
Definition: word.H:59
virtual ReactionThermo & thermo()
Return access to the thermo package.
singleStepReactingMixture< ThermoType > * singleMixturePtr_
Pointer to singleStepReactingMixture mixture.
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/s^3].
void operator=(const singleStepCombustion &)=delete
Disallow default bitwise assignment.
virtual bool read()
Update properties from given dictionary.
PtrList< volScalarField > & Y
Base class for combustion models using singleStepReactingMixture.
A class for managing temporary objects.
Definition: PtrList.H:53
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Namespace for OpenFOAM.