OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

basicXiSubXiEq.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-2009 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 the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     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, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     Foam::XiEqModels::basicSubGrid
00027 
00028 Description
00029     Basic sub-grid obstacle flame-wrinking enhancement factor model.
00030     Details supplied by J Puttock 2/7/06.
00031 
00032     <b> Sub-grid flame area generation </b>
00033 
00034     \f$ n = N - \hat{\dwea{\vec{U}}}.n_{s}.\hat{\dwea{\vec{U}}} \f$
00035     \f$ n_{r} = \sqrt{n} \f$
00036 
00037     where:
00038 
00039         \f$ \hat{\dwea{\vec{U}}} = \dwea{\vec{U}} / \vert \dwea{\vec{U}}
00040         \vert \f$
00041 
00042         \f$ b = \hat{\dwea{\vec{U}}}.B.\hat{\dwea{\vec{U}}} / n_{r} \f$
00043 
00044     where:
00045 
00046         \f$ B \f$ is the file "B".
00047 
00048         \f$ N \f$ is the file "N".
00049 
00050         \f$  n_{s} \f$ is the file "ns".
00051 
00052     The flame area enhancement factor \f$ \Xi_{sub} \f$ is expected to
00053     approach:
00054 
00055     \f[
00056         \Xi_{{sub}_{eq}} =
00057             1 + max(2.2 \sqrt{b}, min(0.34 \frac{\vert \dwea{\vec{U}}
00058             \vert}{{\vec{U}}^{'}}, 1.6)) \times min(\frac{n}{4}, 1)
00059     \f]
00060 
00061 
00062 SourceFiles
00063     basicSubGrid.C
00064 
00065 \*---------------------------------------------------------------------------*/
00066 
00067 #ifndef basicSubGrid_H
00068 #define basicSubGrid_H
00069 
00070 #include "XiEqModel.H"
00071 
00072 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00073 
00074 namespace Foam
00075 {
00076 namespace XiEqModels
00077 {
00078 
00079 /*---------------------------------------------------------------------------*\
00080                           Class basicSubGrid Declaration
00081 \*---------------------------------------------------------------------------*/
00082 
00083 class basicSubGrid
00084 :
00085     public XiEqModel
00086 {
00087     // Private data
00088 
00089         //- Count
00090         volScalarField N_;
00091 
00092         //- Sub-count
00093         volSymmTensorField ns_;
00094 
00095         //- tblock
00096         volSymmTensorField B_;
00097 
00098         //- Typical obstacle diameters per cell
00099         volScalarField Lobs_;
00100 
00101         //- Equilibrium Xi model due to turbulence
00102         autoPtr<XiEqModel> XiEqModel_;
00103 
00104 
00105     // Private Member Functions
00106 
00107         //- Disallow copy construct
00108         basicSubGrid(const basicSubGrid&);
00109 
00110         //- Disallow default bitwise assignment
00111         void operator=(const basicSubGrid&);
00112 
00113 
00114 public:
00115 
00116     //- Runtime type information
00117     TypeName("basicSubGrid");
00118 
00119 
00120     // Constructors
00121 
00122         //- Construct from components
00123         basicSubGrid
00124         (
00125             const dictionary& XiEqProperties,
00126             const hhuCombustionThermo& thermo,
00127             const compressible::RASModel& turbulence,
00128             const volScalarField& Su
00129         );
00130 
00131 
00132     // Destructor
00133 
00134         virtual ~basicSubGrid();
00135 
00136 
00137     // Member Functions
00138 
00139         //- Return the flame-wrinking XiEq
00140         virtual tmp<volScalarField> XiEq() const;
00141 
00142         //- Update properties from given dictionary
00143         virtual bool read(const dictionary& XiEqProperties);
00144 };
00145 
00146 
00147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00148 
00149 } // End namespace XiEqModels
00150 } // End namespace Foam
00151 
00152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00153 
00154 #endif
00155 
00156 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd