initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / applications / solvers / combustion / PDRFoam / XiModels / XiEqModels / instabilityXiEq / instabilityXiEq.H
blobddc38bef303e9ddd04a8c19468b058c20ce074c4
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
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 the
13     Free Software Foundation; either version 2 of the License, or (at your
14     option) any later version.
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.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM; if not, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 Class
26     Foam::XiEqModels::instability
28 Description
29     This is the equilibrium level of the flame wrinkling generated by
30     instability. It is a constant (default 2.5). It is used in
31     @link XiModel.H @endlink.
33 SourceFiles
34     instability.C
36 \*---------------------------------------------------------------------------*/
38 #ifndef instability_H
39 #define instability_H
41 #include "XiEqModel.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace Foam
47 namespace XiEqModels
50 /*---------------------------------------------------------------------------*\
51                           Class instability Declaration
52 \*---------------------------------------------------------------------------*/
54 class instability
56     public XiEqModel
58     // Private data
60         //- Equilibrium Xi due to instability only
61         scalar XiEqIn;
63         //- Equilibrium Xi model due to all other effects
64         autoPtr<XiEqModel> XiEqModel_;
67     // Private Member Functions
69         //- Disallow copy construct
70         instability(const instability&);
72         //- Disallow default bitwise assignment
73         void operator=(const instability&);
76 public:
78     //- Runtime type information
79     TypeName("instability");
82     // Constructors
84         //- Construct from components
85         instability
86         (
87             const dictionary& XiEqProperties,
88             const hhuCombustionThermo& thermo,
89             const compressible::RASModel& turbulence,
90             const volScalarField& Su
91         );
94     // Destructor
96         virtual ~instability();
99     // Member Functions
101         //- Return the flame-wrinking XiEq
102         virtual tmp<volScalarField> XiEq() const;
104         //- Update properties from given dictionary
105         virtual bool read(const dictionary& XiEqProperties);
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 } // End namespace XiEqModels
112 } // End namespace Foam
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 #endif
118 // ************************************************************************* //