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

XiModel.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::XiModel
00027 
00028 Description
00029     Base-class for all Xi models used by the b-Xi combustion model.
00030     See Technical Report SH/RE/01R for details on the PDR modelling.
00031 
00032     Xi is given through an algebraic expression (\link algebraic.H \endlink),
00033     by solving a transport equation (\link transport.H \endlink) or a
00034     fixed value (\link fixed.H \endlink).
00035 
00036     See report TR/HGW/10 for details on the Weller two equations model.
00037 
00038     In the algebraic and transport methods \f$\Xi_{eq}\f$ is calculated in
00039     similar way. In the algebraic approach, \f$\Xi_{eq}\f$ is the value used in
00040     the \f$ b \f$ transport equation.
00041 
00042     \f$\Xi_{eq}\f$ is calculated as follows:
00043 
00044     \f$\Xi_{eq} = 1 + (1 + 2\Xi_{coeff}(0.5 - \dwea{b}))(\Xi^* - 1)\f$
00045 
00046     where:
00047 
00048         \f$ \dwea{b} \f$ is the regress variable.
00049 
00050         \f$ \Xi_{coeff} \f$ is a model constant.
00051 
00052         \f$ \Xi^* \f$ is the total equilibrium wrinkling combining the effects
00053         of the flame inestability and turbulence interaction and is given by
00054 
00055         \f[
00056             \Xi^* = \frac {R}{R - G_\eta - G_{in}}
00057         \f]
00058 
00059     where:
00060 
00061         \f$ G_\eta \f$ is the generation rate of wrinkling due to turbulence
00062         interaction.
00063 
00064         \f$ G_{in} = \kappa \rho_{u}/\rho_{b} \f$ is the generation
00065          rate due to the flame inestability.
00066 
00067     By adding the removal rates of the two effects:
00068 
00069         \f[
00070             R = G_\eta \frac{\Xi_{\eta_{eq}}}{\Xi_{\eta_{eq}} - 1}
00071               + G_{in} \frac{\Xi_{{in}_{eq}}}{\Xi_{{in}_{eq}} - 1}
00072         \f]
00073 
00074     where:
00075 
00076         \f$ R \f$ is the total removal.
00077 
00078         \f$ G_\eta \f$ is a model constant.
00079 
00080         \f$ \Xi_{\eta_{eq}} \f$ is the flame wrinkling due to turbulence.
00081 
00082         \f$ \Xi_{{in}_{eq}} \f$ is the equilibrium level of the flame wrinkling
00083         generated by inestability. It is a constant (default 2.5).
00084 
00085 
00086 SourceFiles
00087     XiModel.C
00088 
00089 \*---------------------------------------------------------------------------*/
00090 
00091 #ifndef XiModel_H
00092 #define XiModel_H
00093 
00094 #include "IOdictionary.H"
00095 #include "hhuCombustionThermo.H"
00096 #include "RASModel.H"
00097 #include "multivariateSurfaceInterpolationScheme.H"
00098 #include "runTimeSelectionTables.H"
00099 
00100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00101 
00102 namespace Foam
00103 {
00104 
00105 /*---------------------------------------------------------------------------*\
00106                           Class XiModel Declaration
00107 \*---------------------------------------------------------------------------*/
00108 
00109 class XiModel
00110 {
00111 
00112 protected:
00113 
00114     // Protected data
00115 
00116         dictionary XiModelCoeffs_;
00117 
00118         const hhuCombustionThermo& thermo_;
00119         const compressible::RASModel& turbulence_;
00120         const volScalarField& Su_;
00121         const volScalarField& rho_;
00122         const volScalarField& b_;
00123         const surfaceScalarField& phi_;
00124 
00125         //- Flame wrinking field
00126         volScalarField Xi_;
00127 
00128 
00129 private:
00130 
00131     // Private Member Functions
00132 
00133         //- Disallow copy construct
00134         XiModel(const XiModel&);
00135 
00136         //- Disallow default bitwise assignment
00137         void operator=(const XiModel&);
00138 
00139 
00140 public:
00141 
00142     //- Runtime type information
00143     TypeName("XiModel");
00144 
00145 
00146     // Declare run-time constructor selection table
00147 
00148         declareRunTimeSelectionTable
00149         (
00150             autoPtr,
00151             XiModel,
00152             dictionary,
00153             (
00154                 const dictionary& XiProperties,
00155                 const hhuCombustionThermo& thermo,
00156                 const compressible::RASModel& turbulence,
00157                 const volScalarField& Su,
00158                 const volScalarField& rho,
00159                 const volScalarField& b,
00160                 const surfaceScalarField& phi
00161             ),
00162             (
00163                 XiProperties,
00164                 thermo,
00165                 turbulence,
00166                 Su,
00167                 rho,
00168                 b,
00169                 phi
00170             )
00171         );
00172 
00173 
00174     // Selectors
00175 
00176         //- Return a reference to the selected Xi model
00177         static autoPtr<XiModel> New
00178         (
00179             const dictionary& XiProperties,
00180             const hhuCombustionThermo& thermo,
00181             const compressible::RASModel& turbulence,
00182             const volScalarField& Su,
00183             const volScalarField& rho,
00184             const volScalarField& b,
00185             const surfaceScalarField& phi
00186         );
00187 
00188 
00189     // Constructors
00190 
00191         //- Construct from components
00192         XiModel
00193         (
00194             const dictionary& XiProperties,
00195             const hhuCombustionThermo& thermo,
00196             const compressible::RASModel& turbulence,
00197             const volScalarField& Su,
00198             const volScalarField& rho,
00199             const volScalarField& b,
00200             const surfaceScalarField& phi
00201         );
00202 
00203 
00204     // Destructor
00205 
00206         virtual ~XiModel();
00207 
00208 
00209     // Member Functions
00210 
00211         //- Return the flame-wrinking Xi
00212         virtual const volScalarField& Xi() const
00213         {
00214             return Xi_;
00215         }
00216 
00217         //- Return the flame diffusivity
00218         virtual tmp<volScalarField> Db() const
00219         {
00220             return turbulence_.muEff();
00221         }
00222 
00223         //- Add Xi to the multivariateSurfaceInterpolationScheme table
00224         //  if required
00225         virtual void addXi
00226         (
00227             multivariateSurfaceInterpolationScheme<scalar>::fieldTable&
00228         )
00229         {}
00230 
00231         //- Correct the flame-wrinking Xi
00232         virtual void correct() = 0;
00233 
00234         //- Correct the flame-wrinking Xi using the given convection scheme
00235         virtual void correct(const fv::convectionScheme<scalar>&)
00236         {
00237             correct();
00238         }
00239 
00240         //- Update properties from given dictionary
00241         virtual bool read(const dictionary& XiProperties) = 0;
00242 };
00243 
00244 
00245 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00246 
00247 } // End namespace Foam
00248 
00249 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00250 
00251 #endif
00252 
00253 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd