zoneCombustion.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) 2016-2020 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::zoneCombustion
26 
27 Description
28  Zone-filtered combustion model.
29 
30  Enable the reactions within the specified list of cell-zones and set
31  to zero elsewhere.
32 
33 SourceFiles
34  zoneCombustion.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef zoneCombustion_H
39 #define zoneCombustion_H
40 
41 #include "combustionModel.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace combustionModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class zoneCombustion Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class zoneCombustion
55 :
56  public combustionModel
57 {
58  // Private Data
59 
60  //- The combustion model to be zone-filtered
61  autoPtr<combustionModel> combustionModelPtr_;
62 
63  //- List of zone names in which the reactions are active
64  wordList zoneNames_;
65 
66 
67  // Private Member Functions
68 
69  //- Filter the reaction-rate matrix on the cellZones
70  tmp<fvScalarMatrix> filter(const tmp<fvScalarMatrix>& tR) const;
71 
72  //- Filter the given field on the cellZones
73  tmp<volScalarField> filter(const tmp<volScalarField>& tS) const;
74 
75 
76 public:
77 
78  //- Runtime type information
79  TypeName("zoneCombustion");
80 
81 
82  // Constructors
83 
84  //- Construct from components
86  (
87  const word& modelType,
90  const word& combustionProperties
91  );
92 
93  //- Disallow default bitwise copy construction
95 
96 
97  //- Destructor
98  virtual ~zoneCombustion();
99 
100 
101  // Member Functions
102 
103  //- Correct combustion rate
104  virtual void correct();
105 
106  //- Fuel consumption rate matrix.
107  virtual tmp<fvScalarMatrix> R(volScalarField& Y) const;
108 
109  //- Heat release rate [kg/m/s^3]
110  virtual tmp<volScalarField> Qdot() const;
111 
112  //- Update properties from given dictionary
113  virtual bool read();
114 
115 
116  // Member Operators
117 
118  //- Disallow default bitwise assignment
119  void operator=(const zoneCombustion&) = delete;
120 };
121 
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 } // End namespace combustionModels
126 } // End namespace Foam
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 #endif
131 
132 // ************************************************************************* //
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
virtual bool read()
Update properties from given dictionary.
Base-class for multi-component fluid thermodynamic properties.
void operator=(const zoneCombustion &)=delete
Disallow default bitwise assignment.
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s^3].
A class for handling words, derived from string.
Definition: word.H:59
TypeName("zoneCombustion")
Runtime type information.
Zone-filtered combustion model.
Base class for combustion models.
PtrList< volScalarField > & Y
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
A class for managing temporary objects.
Definition: PtrList.H:53
zoneCombustion(const word &modelType, const fluidReactionThermo &thermo, const compressibleMomentumTransportModel &turb, const word &combustionProperties)
Construct from components.
virtual void correct()
Correct combustion rate.
Abstract base class for turbulence models (RAS, LES and laminar).
Namespace for OpenFOAM.
const fluidReactionThermo & thermo() const
Return const access to the thermo.