FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

infinitelyFastChemistry.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-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 Class
00025     Foam::combustionModels::infinitelyFastChemistry
00026 
00027 Description
00028     Simple infinitely fast chemistry combustion model based on the principle
00029     mixed is burnt. Additional parameter C is used to distribute the heat
00030     release rate.in time
00031 
00032 SourceFiles
00033     infinitelyFastChemistry.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef infinitelyFastChemistry_H
00038 #define infinitelyFastChemistry_H
00039 
00040 #include <finiteVolume/fvc.H>
00041 #include <combustionModels/combustionModel.H>
00042 
00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00044 
00045 namespace Foam
00046 {
00047 namespace combustionModels
00048 {
00049 
00050 /*---------------------------------------------------------------------------*\
00051                 Class infinitelyFastChemistry Declaration
00052 \*---------------------------------------------------------------------------*/
00053 
00054 class infinitelyFastChemistry
00055 :
00056     public combustionModel
00057 {
00058     // Private data
00059 
00060         //- Model constant
00061         scalar C_;
00062 
00063     // Private Member Functions
00064 
00065         //- Disallow copy construct
00066         infinitelyFastChemistry(const infinitelyFastChemistry&);
00067 
00068         //- Disallow default bitwise assignment
00069         void operator=(const infinitelyFastChemistry&);
00070 
00071 
00072 public:
00073 
00074     //- Runtime type information
00075     TypeName("infinitelyFastChemistry");
00076 
00077 
00078     // Constructors
00079 
00080         //- Construct from components
00081         infinitelyFastChemistry
00082         (
00083             const dictionary& combustionProperties,
00084             const hsCombustionThermo& thermo,
00085             const compressible::turbulenceModel& turbulence,
00086             const surfaceScalarField& phi,
00087             const volScalarField& rho
00088         );
00089 
00090 
00091     // Destructor
00092 
00093         virtual ~infinitelyFastChemistry();
00094 
00095 
00096     // Member Functions
00097 
00098         //- Update properties from given dictionary
00099         virtual bool read(const dictionary& combustionProperties);
00100 
00101         //- Correct combustion rate
00102         virtual void correct();
00103 
00104         //- Return normalised consumption rate of (fu - fres)
00105         virtual tmp<volScalarField> wFuelNorm() const;
00106 };
00107 
00108 
00109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00110 
00111 } // End namespace combustionModels
00112 } // End namespace Foam
00113 
00114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00115 
00116 #endif
00117 
00118 // ************************************************************************* //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines