OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

algebraic.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-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::algebraic
00027 
00028 Description
00029     Simple algebraic 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     algebraic.C
00036 
00037 \*---------------------------------------------------------------------------*/
00038 
00039 #ifndef algebraic_H
00040 #define algebraic_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 algebraic Declaration
00055 \*---------------------------------------------------------------------------*/
00056 
00057 class algebraic
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         algebraic(const algebraic&);
00073 
00074         //- Disallow default bitwise assignment
00075         void operator=(const algebraic&);
00076 
00077 
00078 public:
00079 
00080     //- Runtime type information
00081     TypeName("algebraic");
00082 
00083 
00084     // Constructors
00085 
00086         //- Construct from components
00087         algebraic
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 ~algebraic();
00102 
00103 
00104     // Member Functions
00105 
00106         //- Return the flame diffusivity
00107         virtual tmp<volScalarField> Db() const;
00108 
00109         //- Correct the flame-wrinking Xi
00110         virtual void correct();
00111 
00112         //- Update properties from given dictionary
00113         virtual bool read(const dictionary& XiProperties);
00114 };
00115 
00116 
00117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00118 
00119 } // End namespace XiModels
00120 } // End namespace Foam
00121 
00122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00123 
00124 #endif
00125 
00126 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd