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-2018 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  // Private Member Functions
58 
59  //- Disallow copy construct
61 
62  //- Disallow default bitwise assignment
63  void operator=(const singleStepCombustion&);
64 
65 
66 protected:
67 
68  // Protected data
69 
70  //- Pointer to singleStepReactingMixture mixture
72 
73  //- Fuel consumption rate
75 
76  //- Semi-implicit (true) or explicit (false) treatment
77  bool semiImplicit_;
78 
79 
80 public:
81 
82  // Constructors
83 
84  //- Construct from components
86  (
87  const word& modelType,
88  ReactionThermo& thermo,
89  const compressibleTurbulenceModel& turb,
90  const word& combustionProperties
91  );
92 
93 
94  //- Destructor
95  virtual ~singleStepCombustion();
96 
97 
98  // Member Functions
99 
100  //- Fuel consumption rate matrix
101  virtual tmp<fvScalarMatrix> R(volScalarField& Y) const;
102 
103  //- Heat release rate [kg/m/s3]
104  virtual tmp<volScalarField> Qdot() const;
105 
106  //- Update properties from given dictionary
107  virtual bool read();
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.
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/s3].
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.