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

XiEqModel.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::XiEqModel
00027 
00028 Description
00029     Base-class for all XiEq models used by the b-XiEq combustion model.
00030     The available models are :
00031                                 \link basicXiSubXiEq.H \endlink
00032                                 \link Gulder.H \endlink
00033                                 \link instabilityXiEq.H \endlink
00034                                 \link SCOPEBlendXiEq.H \endlink
00035                                 \link SCOPEXiEq.H \endlink
00036 
00037 SourceFiles
00038     XiEqModel.C
00039 
00040 \*---------------------------------------------------------------------------*/
00041 
00042 #ifndef XiEqModel_H
00043 #define XiEqModel_H
00044 
00045 #include "IOdictionary.H"
00046 #include "hhuCombustionThermo.H"
00047 #include "RASModel.H"
00048 #include "runTimeSelectionTables.H"
00049 
00050 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00051 
00052 namespace Foam
00053 {
00054 
00055 /*---------------------------------------------------------------------------*\
00056                           Class XiEqModel Declaration
00057 \*---------------------------------------------------------------------------*/
00058 
00059 class XiEqModel
00060 {
00061 
00062 protected:
00063 
00064     // Protected data
00065 
00066         dictionary XiEqModelCoeffs_;
00067 
00068         const hhuCombustionThermo& thermo_;
00069         const compressible::RASModel& turbulence_;
00070         const volScalarField& Su_;
00071 
00072 
00073 private:
00074 
00075     // Private Member Functions
00076 
00077         //- Disallow copy construct
00078         XiEqModel(const XiEqModel&);
00079 
00080         //- Disallow default bitwise assignment
00081         void operator=(const XiEqModel&);
00082 
00083 
00084 public:
00085 
00086     //- Runtime type information
00087     TypeName("XiEqModel");
00088 
00089 
00090     // Declare run-time constructor selection table
00091 
00092         declareRunTimeSelectionTable
00093         (
00094             autoPtr,
00095             XiEqModel,
00096             dictionary,
00097             (
00098                 const dictionary& XiEqProperties,
00099                 const hhuCombustionThermo& thermo,
00100                 const compressible::RASModel& turbulence,
00101                 const volScalarField& Su
00102             ),
00103             (
00104                 XiEqProperties,
00105                 thermo,
00106                 turbulence,
00107                 Su
00108             )
00109         );
00110 
00111 
00112     // Selectors
00113 
00114         //- Return a reference to the selected XiEq model
00115         static autoPtr<XiEqModel> New
00116         (
00117             const dictionary& XiEqProperties,
00118             const hhuCombustionThermo& thermo,
00119             const compressible::RASModel& turbulence,
00120             const volScalarField& Su
00121         );
00122 
00123 
00124     // Constructors
00125 
00126         //- Construct from components
00127         XiEqModel
00128         (
00129             const dictionary& XiEqProperties,
00130             const hhuCombustionThermo& thermo,
00131             const compressible::RASModel& turbulence,
00132             const volScalarField& Su
00133         );
00134 
00135 
00136     // Destructor
00137 
00138         virtual ~XiEqModel();
00139 
00140 
00141     // Member Functions
00142 
00143         //- Return the flame-wrinking XiEq
00144         virtual tmp<volScalarField> XiEq() const
00145         {
00146             return turbulence_.muEff();
00147         }
00148 
00149         //- Update properties from given dictionary
00150         virtual bool read(const dictionary& XiEqProperties) = 0;
00151 };
00152 
00153 
00154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00155 
00156 } // End namespace Foam
00157 
00158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00159 
00160 #endif
00161 
00162 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd