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 -------------------------------------------------------------------------------
10 License
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 
25 Class
26  Foam::combustionModels::eddyDissipationModelBase
27 
28 Description
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 
35 SourceFiles
36  eddyDissipationModelBase.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef eddyDissipationModelBase_H
41 #define eddyDissipationModelBase_H
42 
43 #include "singleStepCombustion.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace combustionModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class eddyDissipationModelBase Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 template<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 
76 public:
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
91  virtual ~eddyDissipationModelBase();
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
103  virtual tmp<volScalarField> timeScale() = 0;
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
128 # include "eddyDissipationModelBase.C"
129 #endif
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
Foam::combustionModels::eddyDissipationModelBase::correct
void correct()
Correct combustion rate.
Definition: eddyDissipationModelBase.C:83
Foam::combustionModels::eddyDissipationModelBase
Standard Eddy Dissipation Model based on the assumption that the reaction rates are controlled by the...
Definition: eddyDissipationModelBase.H:57
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
eddyDissipationModelBase.C
Foam::combustionModels::eddyDissipationModelBase::~eddyDissipationModelBase
virtual ~eddyDissipationModelBase()
Destructor.
Definition: eddyDissipationModelBase.C:62
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
singleStepCombustion.H
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Foam::combustionModels::singleStepCombustion
Base class for combustion models using singleStepReactingMixture.
Definition: singleStepCombustion.H:58
Foam::combustionModels::eddyDissipationModelBase::read
virtual bool read()
Update properties.
Definition: eddyDissipationModelBase.C:118
Foam::combustionModels::eddyDissipationModelBase::rtTurb
tmp< volScalarField > rtTurb() const
Return the reciprocal of the turbulent mixing time scale.
Definition: eddyDissipationModelBase.C:70
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::combustionModels::eddyDissipationModelBase::CEDC
scalar CEDC() const
Return the CEDC coefficient.
Definition: eddyDissipationModelBase.H:106
Foam::combustionModels::eddyDissipationModelBase::timeScale
virtual tmp< volScalarField > timeScale()=0
Calculate time scale.
turb
compressible::turbulenceModel & turb
Definition: setRegionFluidFields.H:10
Foam::compressibleTurbulenceModel
Abstract base class for turbulence models (RAS, LES and laminar).
Definition: compressibleTurbulenceModel.H:54