initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / lagrangian / dieselSpray / spraySubModels / injectorModel / constant / constInjector.H
blob81e645d92452c242a77cb8f115f40230140335ec
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     Foam::constInjector
28 Description
29     Injector model with
30     specified Constant values for the droplet diameter and spray cone angle
32 \*---------------------------------------------------------------------------*/
34 #ifndef constInjector_H
35 #define constInjector_H
37 #include "injectorModel.H"
38 #include "scalarList.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 namespace Foam
44 /*---------------------------------------------------------------------------*\
45                            Class constInjector Declaration
46 \*---------------------------------------------------------------------------*/
48 class constInjector
50     public injectorModel
53 private:
55     // Private data
57         dictionary specDict_;
59         scalarList dropletNozzleDiameterRatio_;
60         scalarList sprayAngle_;
62 public:
64     //- Runtime type information
65         TypeName("constInjector");
68     // Constructors
70         //- Construct from components
71         constInjector
72         (
73             const dictionary& dict,
74             spray& sm
75         );
78     // Destructor
80         ~constInjector();
83     // Member Functions
85         //- Return the injected droplet diameter
86         scalar d0(const label injector, const scalar time) const;
88         //- Return the spray angle of the injector
89         vector direction
90         (
91             const label injector, 
92             const label hole,
93             const scalar time,
94             const scalar d
95         ) const;
97         scalar velocity
98         (
99             const label i,
100             const scalar time
101         ) const;
102         
103         scalar averageVelocity
104         (
105             const label i
106         ) const;
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace Foam
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 #endif
119 // ************************************************************************* //