FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

basicXiSubG.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::XiGModel::basicSubGrid
00026 
00027 
00028 Description
00029 
00030     Basic sub-grid obstacle flame-wrinking generation rate coefficient model.
00031     Details supplied by J Puttock 2/7/06.
00032 
00033     \f$ G_{sub} \f$ denotes the generation coefficient and it is given by
00034 
00035     \f[
00036         G_{sub} = k_{1} /frac{\vert \dwea{\vec{U}} \vert}{L_{obs}}
00037                  \frac{/Xi_{{sub}_{eq}}-1}{/Xi_{sub}}
00038     \f]
00039 
00040     and the removal:
00041 
00042     \f[ - k_{1} /frac{\vert \dwea{\vec{U}} \vert}{L_{sub}}
00043     \frac{\Xi_{sub}-1}{\Xi_{sub}} \f]
00044 
00045     Finally, \f$ G_{sub} \f$ is added to generation rate \f$ G_{in} \f$
00046     due to the turbulence.
00047 
00048 
00049 SourceFiles
00050     basicSubGrid.C
00051 
00052 \*---------------------------------------------------------------------------*/
00053 
00054 #ifndef basicSubGrid_H
00055 #define basicSubGrid_H
00056 
00057 #include "../../../XiModels/XiGModels/XiGModel/XiGModel.H"
00058 
00059 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00060 
00061 namespace Foam
00062 {
00063 namespace XiGModels
00064 {
00065 
00066 /*---------------------------------------------------------------------------*\
00067                           Class basicSubGrid Declaration
00068 \*---------------------------------------------------------------------------*/
00069 
00070 class basicSubGrid
00071 :
00072     public XiGModel
00073 {
00074     // Private data
00075 
00076         //- Sub-grid generation rate coefficient
00077         scalar k1;
00078 
00079         //- Xi generation rate model due to turbulence
00080         autoPtr<XiGModel> XiGModel_;
00081 
00082 
00083     // Private Member Functions
00084 
00085         //- Disallow copy construct
00086         basicSubGrid(const basicSubGrid&);
00087 
00088         //- Disallow default bitwise assignment
00089         void operator=(const basicSubGrid&);
00090 
00091 
00092 public:
00093 
00094     //- Runtime type information
00095     TypeName("basicSubGridG");
00096 
00097 
00098     // Constructors
00099 
00100         //- Construct from components
00101         basicSubGrid
00102         (
00103             const dictionary& XiGProperties,
00104             const hhuCombustionThermo& thermo,
00105             const compressible::RASModel& turbulence,
00106             const volScalarField& Su
00107         );
00108 
00109 
00110     // Destructor
00111 
00112         virtual ~basicSubGrid();
00113 
00114 
00115     // Member Functions
00116 
00117         //- Return the flame-wrinking generation rate
00118         virtual tmp<volScalarField> G() const;
00119 
00120         //- Return the flame diffusivity
00121         virtual tmp<volScalarField> Db() const;
00122 
00123         //- Update properties from given dictionary
00124         virtual bool read(const dictionary& XiGProperties);
00125 };
00126 
00127 
00128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00129 
00130 } // End namespace XiGModels
00131 } // End namespace Foam
00132 
00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00134 
00135 #endif
00136 
00137 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines