basicXiSubG.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-2013 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::XiGModels::basicSubGrid
28
29Description
30
31 Basic sub-grid obstacle flame-wrinkling generation rate coefficient model.
32 Details supplied by J Puttock 2/7/06.
33
34 \f$ G_{sub} \f$ denotes the generation coefficient and it is given by
35
36 \f[
37 G_{sub} = k_{1} /frac{\vert \dwea{\vec{U}} \vert}{L_{obs}}
38 \frac{/Xi_{{sub}_{eq}}-1}{/Xi_{sub}}
39 \f]
40
41 and the removal:
42
43 \f[
44 - k_{1} /frac{\vert \dwea{\vec{U}} \vert}{L_{sub}}
45 \frac{\Xi_{sub}-1}{\Xi_{sub}}
46 \f]
47
48 Finally, \f$ G_{sub} \f$ is added to generation rate \f$ G_{in} \f$
49 due to the turbulence.
50
51SourceFiles
52 basicSubGrid.C
53
54\*---------------------------------------------------------------------------*/
55
56#ifndef basicSubGrid_H
57#define basicSubGrid_H
58
59#include "XiGModel.H"
60
61// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
62
63namespace Foam
65namespace XiGModels
66{
67
68/*---------------------------------------------------------------------------*\
69 Class basicSubGrid Declaration
70\*---------------------------------------------------------------------------*/
72class basicSubGrid
73:
74 public XiGModel
75{
76 // Private data
77
78 //- Sub-grid generation rate coefficient
79 scalar k1;
80
81 //- Xi generation rate model due to turbulence
82 autoPtr<XiGModel> XiGModel_;
83
84
85 // Private Member Functions
86
87 //- No copy construct
88 basicSubGrid(const basicSubGrid&) = delete;
89
90 //- No copy assignment
91 void operator=(const basicSubGrid&) = delete;
92
93
94public:
95
96 //- Runtime type information
97 TypeName("basicSubGridG");
98
99
100 // Constructors
101
102 //- Construct from components
104 (
105 const dictionary& XiGProperties,
107 const compressible::RASModel& turbulence,
108 const volScalarField& Su
109 );
110
111
112 //- Destructor
113 virtual ~basicSubGrid();
114
115
116 // Member Functions
117
118 //- Return the flame-wrinkling generation rate
119 virtual tmp<volScalarField> G() const;
120
121 //- Return the flame diffusivity
122 virtual tmp<volScalarField> Db() const;
123
124 //- Update properties from given dictionary
125 virtual bool read(const dictionary& XiGProperties);
126};
127
128
129// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130
131} // End namespace XiGModels
132} // End namespace Foam
133
134// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135
136#endif
137
138// ************************************************************************* //
Base-class for all Xi generation models used by the b-Xi combustion model. See Technical Report SH/RE...
Definition: XiGModel.H:57
Basic sub-grid obstacle flame-wrinkling generation rate coefficient model. Details supplied by J Putt...
Definition: basicXiSubG.H:74
virtual bool read(const dictionary &XiGProperties)
Update properties from given dictionary.
virtual tmp< volScalarField > G() const
Return the flame-wrinkling generation rate.
virtual tmp< volScalarField > Db() const
Return the flame diffusivity.
basicSubGrid(const dictionary &XiGProperties, const psiuReactionThermo &thermo, const compressible::RASModel &turbulence, const volScalarField &Su)
Construct from components.
TypeName("basicSubGridG")
Runtime type information.
virtual ~basicSubGrid()
Destructor.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Foam::psiuReactionThermo.
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
zeroField Su
Definition: alphaSuSp.H:1
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73