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

ignition.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::ignition
00027 
00028 Description
00029     Foam::ignition
00030 
00031 SourceFiles
00032     ignition.C
00033     ignitionIO.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef ignition_H
00038 #define ignition_H
00039 
00040 #include "ignitionSite.H"
00041 #include "Switch.H"
00042 
00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00044 
00045 namespace Foam
00046 {
00047 
00048 class fvMesh;
00049 
00050 /*---------------------------------------------------------------------------*\
00051                            Class ignition Declaration
00052 \*---------------------------------------------------------------------------*/
00053 
00054 class ignition
00055 {
00056     // Private data
00057 
00058         const fvMesh& mesh_;
00059 
00060         Switch ignite_;
00061 
00062         PtrList<ignitionSite> ignSites_;
00063 
00064 
00065     // Private Member Functions
00066 
00067         //- Disallow default bitwise copy construct
00068         ignition(const ignition&);
00069 
00070         //- Disallow default bitwise assignment
00071         void operator=(const ignition&);
00072 
00073 
00074 public:
00075 
00076     // Constructors
00077 
00078         //- Construct from Istream and database
00079         ignition(const dictionary&, const Time&, const fvMesh&);
00080 
00081         //- Construct from Istream and engineTime
00082         ignition(const dictionary&, const engineTime&, const fvMesh&);
00083 
00084 
00085     // Member Functions
00086 
00087         //- Return the set of ignition sites
00088         const PtrList<ignitionSite>& sites()
00089         {
00090             return ignSites_;
00091         }
00092 
00093 
00094         // Check
00095 
00096             bool ignite() const
00097             {
00098                 return ignite_;
00099             }
00100 
00101             //- Are any of the ignition site currently igniting
00102             bool igniting() const;
00103 
00104             //- Has the mixture been ignited?
00105             bool ignited() const;
00106 };
00107 
00108 
00109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00110 
00111 } // End namespace Foam
00112 
00113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00114 
00115 #endif
00116 
00117 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd