relaxation.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::reactionRateFlameAreaModels::relaxation
26 
27 Description
28  Consumption rate per unit of flame area obtained from a relaxation equation
29 
30 SourceFiles
31  relaxation.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef relaxation_H
36 #define relaxation_H
37 
38 #include "reactionRateFlameArea.H"
39 #include "consumptionSpeed.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace reactionRateFlameAreaModels
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class relaxation Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 class relaxation
53 :
55 {
56  // Private Data
57 
58  //- Correlation
59  consumptionSpeed correlation_;
60 
61  //- Proportionality constant for time scale in the relaxation Eq.
62  scalar C_;
63 
64  //- Proportionality constant for sub-grid strain
65  scalar alpha_;
66 
67 
68  // Private Member Functions
69 
70  //- Disallow copy construct
71  relaxation(const relaxation&);
72 
73  //- Disallow default bitwise assignment
74  void operator=(const relaxation&);
75 
76 
77 public:
78 
79  //- Runtime type information
80  TypeName("relaxation");
81 
82 
83  // Constructors
84 
85  //- Construct from dictionary and psiReactionThermo
87  (
88  const word modelType,
89  const dictionary& dictCoeffs,
90  const fvMesh& mesh,
91  const combustionModel& combModel
92  );
93 
94 
95  // Destructor
96 
97  virtual ~relaxation();
98 
99 
100  // Member functions
101 
102  //- Correct omega
103  virtual void correct(const volScalarField& sigma);
104 
105 
106  // IO
107 
108  //- Update properties from given dictionary
109  virtual bool read(const dictionary& dictProperties);
110 };
111 
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 } // End reactionRateFlameAreaModels
116 } // End namespace Foam
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 #endif
121 
122 // ************************************************************************* //
Correlation function for laminar consumption speed obtained from flamelet solution at increasing stra...
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
virtual void correct(const volScalarField &sigma)
Correct omega.
Definition: relaxation.C:74
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
Abstract class for reaction rate per flame area unit.
Consumption rate per unit of flame area obtained from a relaxation equation.
Definition: relaxation.H:51
TypeName("relaxation")
Runtime type information.
virtual bool read(const dictionary &dictProperties)
Update properties from given dictionary.
Definition: relaxation.C:144
dynamicFvMesh & mesh
A class for handling words, derived from string.
Definition: word.H:59
Base class for combustion models.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Namespace for OpenFOAM.