|
|
|
basicXiSubG.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::basicSubGrid 00027 00028 00029 Description 00030 00031 Basic sub-grid obstacle flame-wrinking generation rate coefficient model. 00032 Details supplied by J Puttock 2/7/06. 00033 00034 \f$ G_{sub} \f$ denotes the generation coefficient and it is given by 00035 00036 \f[ 00037 G_{sub} = k_{1} /frac{\vert \dwea{\vec{U}} \vert}{L_{obs}} 00038 \frac{/Xi_{{sub}_{eq}}-1}{/Xi_{sub}} 00039 \f] 00040 00041 and the removal: 00042 00043 \f[ - k_{1} /frac{\vert \dwea{\vec{U}} \vert}{L_{sub}} 00044 \frac{\Xi_{sub}-1}{\Xi_{sub}} \f] 00045 00046 Finally, \f$ G_{sub} \f$ is added to generation rate \f$ G_{in} \f$ 00047 due to the turbulence. 00048 00049 00050 SourceFiles 00051 basicSubGrid.C 00052 00053 \*---------------------------------------------------------------------------*/ 00054 00055 #ifndef basicSubGrid_H 00056 #define basicSubGrid_H 00057 00058 #include "XiGModel.H" 00059 00060 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00061 00062 namespace Foam 00063 { 00064 namespace XiGModels 00065 { 00066 00067 /*---------------------------------------------------------------------------*\ 00068 Class basicSubGrid Declaration 00069 \*---------------------------------------------------------------------------*/ 00070 00071 class basicSubGrid 00072 : 00073 public XiGModel 00074 { 00075 // Private data 00076 00077 //- Sub-grid generation rate coefficient 00078 scalar k1; 00079 00080 //- Xi generation rate model due to turbulence 00081 autoPtr<XiGModel> XiGModel_; 00082 00083 00084 // Private Member Functions 00085 00086 //- Disallow copy construct 00087 basicSubGrid(const basicSubGrid&); 00088 00089 //- Disallow default bitwise assignment 00090 void operator=(const basicSubGrid&); 00091 00092 00093 public: 00094 00095 //- Runtime type information 00096 TypeName("basicSubGridG"); 00097 00098 00099 // Constructors 00100 00101 //- Construct from components 00102 basicSubGrid 00103 ( 00104 const dictionary& XiGProperties, 00105 const hhuCombustionThermo& thermo, 00106 const compressible::RASModel& turbulence, 00107 const volScalarField& Su 00108 ); 00109 00110 00111 // Destructor 00112 00113 virtual ~basicSubGrid(); 00114 00115 00116 // Member Functions 00117 00118 //- Return the flame-wrinking generation rate 00119 virtual tmp<volScalarField> G() const; 00120 00121 //- Return the flame diffusivity 00122 virtual tmp<volScalarField> Db() const; 00123 00124 //- Update properties from given dictionary 00125 virtual bool read(const dictionary& XiGProperties); 00126 }; 00127 00128 00129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00130 00131 } // End namespace XiGModels 00132 } // End namespace Foam 00133 00134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00135 00136 #endif 00137 00138 // ************************************************************************* // |