initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / src / lagrangian / dieselSpray / spraySubModels / injectorModel / pressureSwirl / pressureSwirlInjector.H
blobd57312871377c9bc0aa57dcc0a60c2034185a1a4
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2008 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::pressureSwirlInjector
28 Description
29     Randomly distribute the parcels between the inner and outer cone angle.
31     Set inner angle to zero for solid cone.
33 \*---------------------------------------------------------------------------*/
35 #ifndef pressureSwirlInjector_H
36 #define pressureSwirlInjector_H
38 #include "injectorModel.H"
39 #include "scalarList.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
46 /*---------------------------------------------------------------------------*\
47                            Class pressureSwirlInjector Declaration
48 \*---------------------------------------------------------------------------*/
50 class pressureSwirlInjector
52     public injectorModel
55 private:
57     // Private data
59         dictionary pressureSwirlInjectorDict_;
61         scalarList coneAngle_;
62         scalarList coneInterval_;
63         scalarList maxKv_;
64         
65     // The initial spray angle for the parcels    
66         mutable scalar angle_;
67         
68     // The initial velocity for the parcels           
69         mutable scalar u_;
71     // two perpendicular vectors, perpendicular to injection direction
72         List<vector> tan1_;
73         List<vector> tan2_;
75     // private member functions
76         
77         scalar kv
78         (
79             const label inj, 
80             const scalar massFlow,
81             const scalar dPressure
82         ) const;
83         
84         scalar deltaPressureInj(const scalar time, const label inj) const;
85         scalar averagePressure(const label inj) const;
87 public:
89     //- Runtime type information
90         TypeName("pressureSwirlInjector");
93     // Constructors
95         //- Construct from components
96         pressureSwirlInjector
97         (
98             const dictionary& dict,
99             spray& sm
100         );
103     // Destructor
105         ~pressureSwirlInjector();
108     // Member Functions
110         //- Return the injected droplet diameter
111         scalar d0(const label injector, const scalar time) const;
113         //- Return the spray angle of the injector
114         vector direction
115         (
116             const label injector, 
117             const scalar time,
118             const scalar d
119         ) const;
120     
121         scalar velocity
122         (
123             const label i,
124             const scalar time
125         ) const;
126         
127         scalar averageVelocity
128         (
129             const label i
130         ) const;
131         
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 } // End namespace Foam
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 #endif
144 // ************************************************************************* //