Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::combustionModels::singleStepCombustion
28
29Group
30 grpCombustionModels
31
32Description
33 Base class for combustion models using singleStepReactingMixture.
34
35SourceFiles
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
49namespace Foam
50{
51namespace combustionModels
52{
53
54/*---------------------------------------------------------------------------*\
55 Class singleStepCombustion Declaration
56\*---------------------------------------------------------------------------*/
57
58template<class ReactionThermo, class ThermoType>
59class singleStepCombustion
60:
61 public ThermoCombustion<ReactionThermo>
62{
63 // Private Member Functions
64
65 //- No copy construct
66 singleStepCombustion(const singleStepCombustion&) = delete;
67
68 //- No copy assignment
69 void operator=(const singleStepCombustion&) = delete;
70
71
72protected:
73
74 // Protected data
75
76 //- Pointer to singleStepReactingMixture mixture
79 //- Fuel consumption rate
81
82 //- Semi-implicit (true) or explicit (false) treatment
84
85
86public:
87
88 // Constructors
89
90 //- Construct from components
91 singleStepCombustion
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// ************************************************************************* //
#define R(A, B, C, D, E, F, K, M)
compressible::turbulenceModel & turb
virtual ReactionThermo & thermo()
Return access to the thermo package.
singleStepReactingMixture< ThermoType > * singleMixturePtr_
Pointer to singleStepReactingMixture mixture.
volScalarField wFuel_
Fuel consumption rate.
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s3].
bool semiImplicit_
Semi-implicit (true) or explicit (false) treatment.
virtual bool read()
Update properties from given dictionary.
Abstract base class for turbulence models (RAS, LES and laminar).
A class for managing temporary objects.
Definition tmp.H:75
A class for handling words, derived from Foam::string.
Definition word.H:66
PtrList< volScalarField > & Y
A scalar instance of fvMatrix.
Namespace for OpenFOAM.
GeometricField< scalar, fvPatchField, volMesh > volScalarField