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-2015 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 // ************************************************************************* //
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::combustionModels::singleStepCombustion
Base class for combustion models using singleStepReactingMixture.
Definition: singleStepCombustion.H:51
Foam::combustionModels::singleStepCombustion::Sh
virtual tmp< volScalarField > Sh() const
Sensible enthalpy source term.
Definition: singleStepCombustion.C:129
singleStepCombustion.C
Foam::combustionModels::singleStepCombustion::wFuel_
volScalarField wFuel_
Fuel consumption rate.
Definition: singleStepCombustion.H:72
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::combustionModels::singleStepCombustion::dQ
virtual tmp< volScalarField > dQ() const
Heat release rate calculated from fuel consumption rate matrix.
Definition: singleStepCombustion.C:141
Foam::combustionModels::singleStepCombustion::operator=
void operator=(const singleStepCombustion &)
Disallow default bitwise assignment.
singleStepReactingMixture.H
Foam::singleStepReactingMixture
Single step reacting mixture.
Definition: singleStepReactingMixture.H:50
Foam::combustionModels::singleStepCombustion::~singleStepCombustion
virtual ~singleStepCombustion()
Destructor.
Definition: singleStepCombustion.C:92
Foam::combustionModels::singleStepCombustion::singleStepCombustion
singleStepCombustion(const singleStepCombustion &)
Disallow copy construct.
Foam::combustionModels::singleStepCombustion::read
virtual bool read()
Update properties from given dictionary.
Definition: singleStepCombustion.C:172
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
Foam::combustionModels::singleStepCombustion::semiImplicit_
bool semiImplicit_
Semi-implicit (true) or explicit (false) treatment.
Definition: singleStepCombustion.H:75
Y
PtrList< volScalarField > & Y
Definition: createFields.H:36
Foam::combustionModels::singleStepCombustion::singleMixturePtr_
singleStepReactingMixture< ThermoType > * singleMixturePtr_
Pointer to singleStepReactingMixture mixture.
Definition: singleStepCombustion.H:69
Foam::combustionModels::singleStepCombustion::R
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Definition: singleStepCombustion.C:100