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

collisionModel.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::collisionModel
00027 
00028 Description
00029     Base case for selecting a collision model
00030 
00031 \*---------------------------------------------------------------------------*/
00032 
00033 #ifndef collisionModel_H
00034 #define collisionModel_H
00035 
00036 #include "IOdictionary.H"
00037 #include "spray.H"
00038 #include "Random.H"
00039 #include "Switch.H"
00040 #include "autoPtr.H"
00041 #include "runTimeSelectionTables.H"
00042 
00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00044 
00045 namespace Foam
00046 {
00047 
00048 /*---------------------------------------------------------------------------*\
00049                            Class collisionModel Declaration
00050 \*---------------------------------------------------------------------------*/
00051 
00052 class collisionModel
00053 {
00054 
00055 protected:
00056 
00057     // Protected data
00058         const dictionary& dict_;
00059         spray& spray_;
00060         Random& rndGen_;
00061 
00062         //dictionary coeffsDict_;
00063 
00064 
00065 public:
00066 
00067     //- Runtime type information
00068     TypeName("collisionModel");
00069 
00070     // Declare runtime constructor selection table
00071 
00072         declareRunTimeSelectionTable
00073         (
00074             autoPtr,
00075             collisionModel,
00076             dictionary,
00077             (
00078                 const dictionary& dict,
00079                 spray& sm,
00080                 Random& rndGen
00081             ),
00082             (dict, sm, rndGen)
00083         );
00084 
00085 
00086     // Constructors
00087 
00088         //- Construct from components
00089         collisionModel
00090         (
00091             const dictionary& dict,
00092             spray& sm,
00093             Random& rndGen
00094         );
00095 
00096 
00097     // Destructor
00098 
00099         virtual ~collisionModel();
00100 
00101 
00102     // Selector
00103 
00104         static autoPtr<collisionModel> New
00105         (
00106             const dictionary& dict,
00107             spray& sm,
00108             Random& rndGen
00109         );
00110 
00111 
00112     // Member Functions
00113 
00114         virtual void collideParcels(const scalar dt) const = 0;
00115 };
00116 
00117 
00118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00119 
00120 } // End namespace Foam
00121 
00122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00123 
00124 #endif
00125 
00126 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd