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

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