1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::laminarFlameSpeedModels
29 Namespace for laminar flame speed models
33 Foam::laminarFlameSpeed
36 Abstract class for laminar flame speed
40 newLaminarFlameSpeed.C
42 \*---------------------------------------------------------------------------*/
44 #ifndef laminarFlameSpeed_H
45 #define laminarFlameSpeed_H
47 #include "hhuCombustionThermo.H"
49 #include "runTimeSelectionTables.H"
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56 /*---------------------------------------------------------------------------*\
57 Class laminarFlameSpeed Declaration
58 \*---------------------------------------------------------------------------*/
60 class laminarFlameSpeed
67 const hhuCombustionThermo& hhuCombustionThermo_;
72 //- Equivalence ratio of a homogeneous mixture
73 scalar equivalenceRatio_;
78 // Private member functions
80 //- Construct as copy (not implemented)
81 laminarFlameSpeed(const laminarFlameSpeed&);
82 void operator=(const laminarFlameSpeed&);
87 //- Runtime type information
88 TypeName("laminarFlameSpeed");
91 // Declare run-time constructor selection table
93 declareRunTimeSelectionTable
99 const dictionary& dict,
100 const hhuCombustionThermo& ct
108 //- Construct from dictionary and hhuCombustionThermo
112 const hhuCombustionThermo&
118 static autoPtr<laminarFlameSpeed> New
120 const hhuCombustionThermo&
126 virtual ~laminarFlameSpeed();
131 //- Return the laminar flame speed [m/s]
132 virtual tmp<volScalarField> operator()() const = 0;
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 } // End namespace Foam
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 // ************************************************************************* //