OpenFOAM logo
Open Source CFD Toolkit

laminarFlameSpeed.H

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