|
|
|
laminarFlameSpeed.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 Namespace 00026 Foam::laminarFlameSpeedModels 00027 00028 Description 00029 Namespace for laminar flame speed models 00030 00031 00032 Class 00033 Foam::laminarFlameSpeed 00034 00035 Description 00036 Abstract class for laminar flame speed 00037 00038 SourceFiles 00039 laminarFlameSpeed.C 00040 newLaminarFlameSpeed.C 00041 00042 \*---------------------------------------------------------------------------*/ 00043 00044 #ifndef laminarFlameSpeed_H 00045 #define laminarFlameSpeed_H 00046 00047 #include "hhuCombustionThermo.H" 00048 #include "autoPtr.H" 00049 #include "runTimeSelectionTables.H" 00050 00051 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00052 00053 namespace Foam 00054 { 00055 00056 /*---------------------------------------------------------------------------*\ 00057 Class laminarFlameSpeed Declaration 00058 \*---------------------------------------------------------------------------*/ 00059 00060 class laminarFlameSpeed 00061 { 00062 00063 protected: 00064 00065 // Protected data 00066 00067 const hhuCombustionThermo& hhuCombustionThermo_; 00068 00069 //- Fuel 00070 word fuel_; 00071 00072 //- Equivalence ratio of a homogeneous mixture 00073 scalar equivalenceRatio_; 00074 00075 00076 private: 00077 00078 // Private member functions 00079 00080 //- Construct as copy (not implemented) 00081 laminarFlameSpeed(const laminarFlameSpeed&); 00082 void operator=(const laminarFlameSpeed&); 00083 00084 00085 public: 00086 00087 //- Runtime type information 00088 TypeName("laminarFlameSpeed"); 00089 00090 00091 // Declare run-time constructor selection table 00092 00093 declareRunTimeSelectionTable 00094 ( 00095 autoPtr, 00096 laminarFlameSpeed, 00097 dictionary, 00098 ( 00099 const dictionary& dict, 00100 const hhuCombustionThermo& ct 00101 ), 00102 (dict, ct) 00103 ); 00104 00105 00106 // Constructors 00107 00108 //- Construct from dictionary and hhuCombustionThermo 00109 laminarFlameSpeed 00110 ( 00111 const dictionary&, 00112 const hhuCombustionThermo& 00113 ); 00114 00115 00116 // Selector 00117 00118 static autoPtr<laminarFlameSpeed> New 00119 ( 00120 const hhuCombustionThermo& 00121 ); 00122 00123 00124 // Destructor 00125 00126 virtual ~laminarFlameSpeed(); 00127 00128 00129 // Member functions 00130 00131 //- Return the laminar flame speed [m/s] 00132 virtual tmp<volScalarField> operator()() const = 0; 00133 }; 00134 00135 00136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00137 00138 } // End namespace Foam 00139 00140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00141 00142 #endif 00143 00144 // ************************************************************************* // |