|
|
|
SCOPELaminarFlameSpeed.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::laminarFlameSpeedModels::SCOPE 00027 00028 Description 00029 Laminar flame speed obtained from the SCOPE correlation. 00030 00031 Seven parameters are specified in terms of polynomial functions of 00032 stoichiometry. Two polynomials are fitted, covering different parts of the 00033 flammable range. If the mixture is outside the fitted range, linear 00034 interpolation is used between the extreme of the polynomio and the upper or 00035 lower flammable limit with the Markstein number constant. 00036 00037 Variations of pressure and temperature from the reference values are taken 00038 into account through \f$ pexp \f$ and \f$ texp \f$ 00039 00040 The laminar burning velocity fitting polynomial is: 00041 00042 \f$ Su = a_{0}(1+a_{1}x+K+..a_{i}x^{i}..+a_{6}x^{6}) (p/p_{ref})^{pexp} 00043 (T/T_{ref})^{texp} \f$ 00044 00045 where: 00046 00047 \f$ a_{i} \f$ are the polinomial coefficients. 00048 00049 \f$ pexp \f$ and \f$ texp \f$ are the pressure and temperature factors 00050 respectively. 00051 00052 \f$ x \f$ is the equivalence ratio. 00053 00054 \f$ T_{ref} \f$ and \f$ p_{ref} \f$ are the temperature and pressure 00055 references for the laminar burning velocity. 00056 00057 00058 SourceFiles 00059 SCOPELaminarFlameSpeed.C 00060 00061 \*---------------------------------------------------------------------------*/ 00062 00063 #ifndef SCOPE_H 00064 #define SCOPE_H 00065 00066 #include "laminarFlameSpeed.H" 00067 00068 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00069 00070 namespace Foam 00071 { 00072 namespace laminarFlameSpeedModels 00073 { 00074 00075 /*---------------------------------------------------------------------------*\ 00076 Class SCOPE Declaration 00077 \*---------------------------------------------------------------------------*/ 00078 00079 class SCOPE 00080 : 00081 public laminarFlameSpeed 00082 { 00083 // Private Data 00084 00085 class polynomial 00086 : 00087 public FixedList<scalar, 7> 00088 { 00089 public: 00090 00091 //- Lower limit 00092 scalar ll; 00093 00094 //- Upper polynomial limit 00095 scalar ul; 00096 00097 //- Value at lower limit 00098 scalar llv; 00099 00100 //- Value at upper limit 00101 scalar ulv; 00102 00103 //- Changeover point from lower to upper polynomial 00104 scalar lu; 00105 00106 //- Construct from dictionary 00107 polynomial(const dictionary& polyDict); 00108 }; 00109 00110 00111 dictionary coeffsDict_; 00112 00113 //- Lower flamability limit 00114 scalar LFL_; 00115 00116 //- Upper flamability limit 00117 scalar UFL_; 00118 00119 //- Lower Su polynomial 00120 polynomial SuPolyL_; 00121 00122 //- Upper Su polynomial 00123 polynomial SuPolyU_; 00124 00125 //- Temperature correction exponent 00126 scalar Texp_; 00127 00128 //- Pressure correction exponent 00129 scalar pexp_; 00130 00131 //- Lower Ma polynomial 00132 polynomial MaPolyL_; 00133 00134 //- Upper Ma polynomial 00135 polynomial MaPolyU_; 00136 00137 00138 // Private member functions 00139 00140 //- Polynomial evaluated from the given equivalence ratio 00141 // and polynomial coefficients 00142 static inline scalar polyPhi(scalar phi, const polynomial& a); 00143 00144 //- Laminar flame speed evaluated from the given equivalence ratio 00145 // at the reference temperature and pressure 00146 inline scalar SuRef(scalar phi) const; 00147 00148 //- Markstein evaluated from the given equivalence ratio 00149 inline scalar Ma(scalar phi) const; 00150 00151 //- Laminar flame speed evaluated from the given equivalence ratio 00152 // corrected for temperature and pressure dependence 00153 inline scalar Su0pTphi(scalar p, scalar Tu, scalar phi) const; 00154 00155 //- Laminar flame speed evaluated from the given uniform 00156 // equivalence ratio corrected for temperature and pressure dependence 00157 tmp<volScalarField> Su0pTphi 00158 ( 00159 const volScalarField& p, 00160 const volScalarField& Tu, 00161 scalar phi 00162 ) const; 00163 00164 //- Laminar flame speed evaluated from the given equivalence ratio 00165 // distribution corrected for temperature and pressure dependence 00166 tmp<volScalarField> Su0pTphi 00167 ( 00168 const volScalarField& p, 00169 const volScalarField& Tu, 00170 const volScalarField& phi 00171 ) const; 00172 00173 //- Return the Markstein number 00174 // evaluated from the given equivalence ratio 00175 tmp<volScalarField> Ma(const volScalarField& phi) const; 00176 00177 //- Construct as copy (not implemented) 00178 SCOPE(const SCOPE&); 00179 00180 void operator=(const SCOPE&); 00181 00182 00183 public: 00184 00185 //- Runtime type information 00186 TypeName("SCOPE"); 00187 00188 // Constructors 00189 00190 //- Construct from dictionary and hhuCombustionThermo 00191 SCOPE 00192 ( 00193 const dictionary&, 00194 const hhuCombustionThermo& 00195 ); 00196 00197 00198 // Destructor 00199 ~SCOPE(); 00200 00201 00202 // Member functions 00203 00204 //- Return the Markstein number 00205 tmp<volScalarField> Ma() const; 00206 00207 //- Return the laminar flame speed [m/s] 00208 tmp<volScalarField> operator()() const; 00209 }; 00210 00211 00212 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00213 00214 } // End laminarFlameSpeedModels 00215 } // End namespace Foam 00216 00217 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00218 00219 #endif 00220 00221 // ************************************************************************* // |