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