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::transport 00026 00027 Description 00028 Simple transport 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 transport.C 00035 00036 \*---------------------------------------------------------------------------*/ 00037 00038 #ifndef transport_H 00039 #define transport_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 transport Declaration 00054 \*---------------------------------------------------------------------------*/ 00055 00056 class transport 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 transport(const transport&); 00072 00073 //- Disallow default bitwise assignment 00074 void operator=(const transport&); 00075 00076 00077 public: 00078 00079 //- Runtime type information 00080 TypeName("transport"); 00081 00082 00083 // Constructors 00084 00085 //- Construct from components 00086 transport 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 ~transport(); 00101 00102 00103 // Member Functions 00104 00105 //- Return the flame diffusivity 00106 virtual tmp<volScalarField> Db() const; 00107 00108 //- Add Xi to the multivariateSurfaceInterpolationScheme table 00109 virtual void addXi 00110 ( 00111 multivariateSurfaceInterpolationScheme<scalar>::fieldTable& fields 00112 ) 00113 { 00114 fields.add(Xi_); 00115 } 00116 00117 //- Correct the flame-wrinking Xi 00118 virtual void correct() 00119 { 00120 notImplemented("transport::correct()"); 00121 } 00122 00123 //- Correct the flame-wrinking Xi using the given convection scheme 00124 virtual void correct(const fv::convectionScheme<scalar>& mvConvection); 00125 00126 //- Update properties from given dictionary 00127 virtual bool read(const dictionary& XiProperties); 00128 }; 00129 00130 00131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00132 00133 } // End namespace XiModels 00134 } // End namespace Foam 00135 00136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00137 00138 #endif 00139 00140 // ************************ vim: set sw=4 sts=4 et: ************************ //