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

injectorModel.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::injectorModel
00026 
00027 
00028 Description
00029     The injectormodel is used to set initial droplet size and the
00030     velocity direction 
00031 
00032 \*---------------------------------------------------------------------------*/
00033 
00034 #ifndef injectorModel_H
00035 #define injectorModel_H
00036 
00037 #include <liquids/liquid.H>
00038 #include <dieselSpray/injector.H>
00039 #include <OpenFOAM/PtrList.H>
00040 #include <OpenFOAM/IOdictionary.H>
00041 #include <finiteVolume/volFieldsFwd.H>
00042 #include <OpenFOAM/autoPtr.H>
00043 #include <dieselSpray/spray.H>
00044 
00045 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00046 
00047 namespace Foam
00048 {
00049 
00050 /*---------------------------------------------------------------------------*\
00051                            Class injectorModel Declaration
00052 \*---------------------------------------------------------------------------*/
00053 
00054 class injectorModel
00055 {
00056 
00057 protected:
00058 
00059     // Protected data
00060 
00061         const dictionary& dict_;
00062         spray& sm_;
00063 
00064         const PtrList<injector>& injectors_;    
00065         Random& rndGen_;
00066 
00067 public:
00068 
00069     //-Runtime type information
00070         TypeName("injectorModel");
00071 
00072     // Declare runtime constructor selection table
00073 
00074         declareRunTimeSelectionTable
00075         (
00076             autoPtr,
00077             injectorModel,
00078             dictionary,
00079             (
00080                 const dictionary& dict,
00081                 spray& sm
00082             ),
00083             (dict, sm)
00084         );
00085 
00086 
00087     // Constructors
00088 
00089         //- Construct from components
00090         injectorModel
00091         (
00092             const dictionary& dict,
00093             spray& sm
00094         );
00095 
00096 
00097     // Destructor
00098 
00099         virtual ~injectorModel();
00100 
00101 
00102     // Selector
00103 
00104         static autoPtr<injectorModel> New
00105         (
00106             const dictionary& dict,
00107             spray& sm
00108         );
00109 
00110 
00111     // Member Functions
00112 
00113         //- Return the initial droplet diameter
00114         virtual scalar d0(const label injector, const scalar time) const = 0;
00115 
00116         //- Return the spray angle of the injector
00117         virtual vector direction
00118         (
00119             const label injector, 
00120             const label hole,
00121             const scalar time,
00122             const scalar d
00123         ) const = 0;
00124 
00125         virtual scalar velocity
00126         (
00127             const label i,
00128             const scalar time
00129         ) const = 0;
00130         
00131         virtual scalar averageVelocity
00132         (
00133             const label i
00134         ) const = 0;
00135 };
00136 
00137 
00138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00139 
00140 } // End namespace Foam
00141 
00142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00143 
00144 #endif
00145 
00146 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines