eddyDissipationModelBase.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) 2016 OpenCFD Ltd
9-------------------------------------------------------------------------------
10License
11
12 OpenFOAM is free software: you can redistribute it and/or modify it
13 under the terms of the GNU General Public License as published by
14 the Free Software Foundation, either version 3 of the License, or
15 (at your option) any later version.
16
17 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
18 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
24
25Class
26 Foam::combustionModels::eddyDissipationModelBase
27
28Description
29 Standard Eddy Dissipation Model based on the assumption that the
30 reaction rates are controlled by the turbulece time length scale.
31 The chemical reaction rate is governed by the large-eddy mixing scale,
32 (ie k/epsilon). Combustion takes place whenever the turbulence is present.
33
34
35SourceFiles
36 eddyDissipationModelBase.C
37
38\*---------------------------------------------------------------------------*/
39
40#ifndef eddyDissipationModelBase_H
41#define eddyDissipationModelBase_H
42
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49namespace combustionModels
50{
51
52/*---------------------------------------------------------------------------*\
53 Class eddyDissipationModelBase Declaration
54\*---------------------------------------------------------------------------*/
55
56template<class ReactionThermo, class ThermoType>
58:
59 public singleStepCombustion<ReactionThermo, ThermoType>
60{
61 // Private data
62
63 //- EDM constant
64 scalar CEDC_;
65
66
67 // Private Member Functions
68
69 //- No copy construct
71
72 //- No copy assignment
73 void operator=(const eddyDissipationModelBase&) = delete;
74
75
76public:
77
78 // Constructors
79
80 //- Construct from components
82 (
83 const word& modelType,
84 ReactionThermo& thermo,
86 const word& combustionProperties
87 );
88
89
90 //- Destructor
92
93
94 // Member Functions
95
96 //- Return the reciprocal of the turbulent mixing time scale
98
99 //- Correct combustion rate
100 void correct();
101
102 //- Calculate time scale
104
105 //- Return the CEDC coefficient
106 scalar CEDC() const
107 {
108 return CEDC_;
109 }
110
111
112 // I-O
113
114 //- Update properties
115 virtual bool read();
116};
117
118
119// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120
121} // End namespace combustionModels
122} // End namespace Foam
123
124
125// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126
127#ifdef NoRepository
129#endif
130
131// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132
133#endif
134
135// ************************************************************************* //
compressible::turbulenceModel & turb
Standard Eddy Dissipation Model based on the assumption that the reaction rates are controlled by the...
tmp< volScalarField > rtTurb() const
Return the reciprocal of the turbulent mixing time scale.
virtual tmp< volScalarField > timeScale()=0
Calculate time scale.
scalar CEDC() const
Return the CEDC coefficient.
Base class for combustion models using singleStepReactingMixture.
Abstract base class for turbulence models (RAS, LES and laminar).
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
A class for managing temporary objects.
Definition: tmp.H:65
A class for handling words, derived from Foam::string.
Definition: word.H:68
Namespace for OpenFOAM.