initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / applications / solvers / combustion / PDRFoam / PDRModels / XiGModels / basicXiSubG / basicXiSubG.H
blob01a6d7cb11c98f6936bc446f2f2001da676a5595
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2008 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     basicSubGrid
28 Description
29     Basic sub-grid obstacle flame-wrinking generation rate coefficient model.
30     Details supplied by J Puttock 2/7/06.
32 SourceFiles
33     basicSubGrid.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef basicSubGrid_H
38 #define basicSubGrid_H
40 #include "XiGModel.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
46 namespace XiGModels
49 /*---------------------------------------------------------------------------*\
50                           Class basicSubGrid Declaration
51 \*---------------------------------------------------------------------------*/
53 class basicSubGrid
55     public XiGModel
57     // Private data
59         //- Sub-grid generation rate coefficient
60         scalar k1;
62         //- Xi generation rate model due to turbulence
63         autoPtr<XiGModel> XiGModel_;
66     // Private Member Functions
68         //- Disallow copy construct
69         basicSubGrid(const basicSubGrid&);
71         //- Disallow default bitwise assignment
72         void operator=(const basicSubGrid&);
75 public:
77     //- Runtime type information
78     TypeName("basicSubGridG");
81     // Constructors
83         //- Construct from components
84         basicSubGrid
85         (
86             const dictionary& XiGProperties,
87             const hhuCombustionThermo& thermo,
88             const compressible::RASModel& turbulence,
89             const volScalarField& Su
90         );
93     // Destructor
95         virtual ~basicSubGrid();
98     // Member Functions
100         //- Return the flame-wrinking generation rate
101         virtual tmp<volScalarField> G() const;
103         //- Return the flame diffusivity
104         virtual tmp<volScalarField> Db() const;
106         //- Update properties from given dictionary
107         virtual bool read(const dictionary& XiGProperties);
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace XiGModels
114 } // End namespace Foam
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 #endif
120 // ************************************************************************* //