1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30 The injectormodel is used to set initial droplet size and the
33 \*---------------------------------------------------------------------------*/
35 #ifndef injectorModel_H
36 #define injectorModel_H
41 #include "IOdictionary.H"
42 #include "volFieldsFwd.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 /*---------------------------------------------------------------------------*\
52 Class injectorModel Declaration
53 \*---------------------------------------------------------------------------*/
62 const dictionary& dict_;
65 const PtrList<injector>& injectors_;
70 //-Runtime type information
71 TypeName("injectorModel");
73 // Declare runtime constructor selection table
75 declareRunTimeSelectionTable
81 const dictionary& dict,
90 //- Construct from components
93 const dictionary& dict,
100 virtual ~injectorModel();
105 static autoPtr<injectorModel> New
107 const dictionary& dict,
114 //- Return the initial droplet diameter
115 virtual scalar d0(const label injector, const scalar time) const = 0;
117 //- Return the spray angle of the injector
118 virtual vector direction
120 const label injector,
126 virtual scalar velocity
132 virtual scalar averageVelocity
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 } // End namespace Foam
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 // ************************************************************************* //