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& combustionProperties,
89  const word& phaseName
90  );
91 
92 
93  //- Destructor
94  virtual ~singleStepCombustion();
95 
96 
97  // Member Functions
98 
99  //- Fuel consumption rate matrix
100  virtual tmp<fvScalarMatrix> R(volScalarField& Y) const;
101 
102  //- Heat release rate [kg/m/s3]
103  virtual tmp<volScalarField> Qdot() const;
104 
105  //- Update properties from given dictionary
106  virtual bool read();
107 };
108 
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 } // End namespace combustionModels
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #ifdef NoRepository
118  #include "singleStepCombustion.C"
119 #endif
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #endif
124 
125 // ************************************************************************* //
volScalarField wFuel_
Fuel consumption rate.
Single step reacting mixture.
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 tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s3].
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:53
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Namespace for OpenFOAM.