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
83  bool semiImplicit_;
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 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Foam::ThermoCombustion
Thermo model wrapper for combustion models.
Definition: ThermoCombustion.H:52
Foam::combustionModels::singleStepCombustion
Base class for combustion models using singleStepReactingMixture.
Definition: singleStepCombustion.H:58
ThermoCombustion.H
Foam::combustionModels::singleStepCombustion::Qdot
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s3].
Definition: singleStepCombustion.C:131
singleStepCombustion.C
fvScalarMatrix.H
A scalar instance of fvMatrix.
Foam::combustionModels::singleStepCombustion::wFuel_
volScalarField wFuel_
Fuel consumption rate.
Definition: singleStepCombustion.H:79
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Y
PtrList< volScalarField > & Y
Definition: createFieldRefs.H:7
singleStepReactingMixture.H
Foam::singleStepReactingMixture
Single step reacting mixture.
Definition: singleStepReactingMixture.H:55
Foam::combustionModels::singleStepCombustion::~singleStepCombustion
virtual ~singleStepCombustion()
Destructor.
Definition: singleStepCombustion.C:96
Foam::combustionModels::singleStepCombustion::read
virtual bool read()
Update properties from given dictionary.
Definition: singleStepCombustion.C:142
Foam::GeometricField< scalar, fvPatchField, volMesh >
turb
compressible::turbulenceModel & turb
Definition: setRegionFluidFields.H:10
Foam::combustionModels::singleStepCombustion::semiImplicit_
bool semiImplicit_
Semi-implicit (true) or explicit (false) treatment.
Definition: singleStepCombustion.H:82
Foam::compressibleTurbulenceModel
Abstract base class for turbulence models (RAS, LES and laminar).
Definition: compressibleTurbulenceModel.H:54
Foam::combustionModels::singleStepCombustion::singleMixturePtr_
singleStepReactingMixture< ThermoType > * singleMixturePtr_
Pointer to singleStepReactingMixture mixture.
Definition: singleStepCombustion.H:76
Foam::combustionModels::singleStepCombustion::R
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Definition: singleStepCombustion.C:104