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