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::XiModels::algebraic 00026 00027 Description 00028 Simple algebraic model for Xi based on Gulders correlation 00029 with a linear correction function to give a plausible profile for Xi. 00030 See report TR/HGW/10 for details on the Weller two equations model. 00031 See \link XiModel.H \endlink for more details on flame wrinkling modelling. 00032 00033 SourceFiles 00034 algebraic.C 00035 00036 \*---------------------------------------------------------------------------*/ 00037 00038 #ifndef algebraic_H 00039 #define algebraic_H 00040 00041 #include "../XiModel/XiModel.H" 00042 #include "../XiEqModels/XiEqModel/XiEqModel.H" 00043 #include "../XiGModels/XiGModel/XiGModel.H" 00044 00045 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00046 00047 namespace Foam 00048 { 00049 namespace XiModels 00050 { 00051 00052 /*---------------------------------------------------------------------------*\ 00053 Class algebraic Declaration 00054 \*---------------------------------------------------------------------------*/ 00055 00056 class algebraic 00057 : 00058 public XiModel 00059 { 00060 // Private data 00061 00062 scalar XiShapeCoef; 00063 00064 autoPtr<XiEqModel> XiEqModel_; 00065 autoPtr<XiGModel> XiGModel_; 00066 00067 00068 // Private Member Functions 00069 00070 //- Disallow copy construct 00071 algebraic(const algebraic&); 00072 00073 //- Disallow default bitwise assignment 00074 void operator=(const algebraic&); 00075 00076 00077 public: 00078 00079 //- Runtime type information 00080 TypeName("algebraic"); 00081 00082 00083 // Constructors 00084 00085 //- Construct from components 00086 algebraic 00087 ( 00088 const dictionary& XiProperties, 00089 const hhuCombustionThermo& thermo, 00090 const compressible::RASModel& turbulence, 00091 const volScalarField& Su, 00092 const volScalarField& rho, 00093 const volScalarField& b, 00094 const surfaceScalarField& phi 00095 ); 00096 00097 00098 // Destructor 00099 00100 virtual ~algebraic(); 00101 00102 00103 // Member Functions 00104 00105 //- Return the flame diffusivity 00106 virtual tmp<volScalarField> Db() const; 00107 00108 //- Correct the flame-wrinking Xi 00109 virtual void correct(); 00110 00111 //- Update properties from given dictionary 00112 virtual bool read(const dictionary& XiProperties); 00113 }; 00114 00115 00116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00117 00118 } // End namespace XiModels 00119 } // End namespace Foam 00120 00121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00122 00123 #endif 00124 00125 // ************************ vim: set sw=4 sts=4 et: ************************ //