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