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 | Copyright (C) 2011-2016 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 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace combustionModels
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class singleStepCombustion Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 template<class CombThermoType, class ThermoType>
53 :
54  public CombThermoType
55 {
56  // Private Member Functions
57 
58  //- Disallow copy construct
60 
61  //- Disallow default bitwise assignment
62  void operator=(const singleStepCombustion&);
63 
64 
65 protected:
66 
67  // Protected data
68 
69  //- Pointer to singleStepReactingMixture mixture
71 
72  //- Fuel consumption rate
74 
75  //- Semi-implicit (true) or explicit (false) treatment
76  bool semiImplicit_;
77 
78 
79 public:
80 
81  // Constructors
82 
83  //- Construct from components
85  (
86  const word& modelType,
87  const fvMesh& mesh,
88  const word& phaseName
89  );
90 
91 
92  //- Destructor
93  virtual ~singleStepCombustion();
94 
95 
96  // Member Functions
97 
98  // Evolution
99 
100  //- Fuel consumption rate matrix
101  virtual tmp<fvScalarMatrix> R(volScalarField& Y) const;
102 
103  //- Heat release rate calculated from fuel consumption rate matrix
104  virtual tmp<volScalarField> dQ() const;
105 
106  //- Sensible enthalpy source term
107  virtual tmp<volScalarField> Sh() const;
108 
109 
110  // IO
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 // ************************************************************************* //
virtual tmp< volScalarField > dQ() const
Heat release rate calculated from fuel consumption rate matrix.
virtual tmp< volScalarField > Sh() const
Sensible enthalpy source term.
volScalarField wFuel_
Fuel consumption rate.
Single step reacting mixture.
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
dynamicFvMesh & mesh
bool semiImplicit_
Semi-implicit (true) or explicit (false) treatment.
A class for handling words, derived from string.
Definition: word.H:59
singleStepReactingMixture< ThermoType > * singleMixturePtr_
Pointer to singleStepReactingMixture mixture.
virtual bool read()
Update properties from given dictionary.
PtrList< volScalarField > & Y
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Base class for combustion models using singleStepReactingMixture.
A class for managing temporary objects.
Definition: PtrList.H:54
Namespace for OpenFOAM.