FreeFOAM The Cross-Platform CFD Toolkit
pressureSwirlInjector.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
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.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::pressureSwirlInjector
26 
27 Description
28  Randomly distribute the parcels between the inner and outer cone angle.
29 
30  Set inner angle to zero for solid cone.
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef pressureSwirlInjector_H
35 #define pressureSwirlInjector_H
36 
38 #include <OpenFOAM/scalarList.H>
39 
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 /*---------------------------------------------------------------------------*\
46  Class pressureSwirlInjector Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 :
51  public injectorModel
52 {
53 
54 private:
55 
56  // Private data
57 
58  dictionary pressureSwirlInjectorDict_;
59 
60  scalarList coneAngle_;
61  scalarList coneInterval_;
62  scalarList maxKv_;
63 
64  // The initial spray angle for the parcels
65  mutable scalar angle_;
66 
67  // The initial velocity for the parcels
68  mutable scalar u_;
69 
70  // private member functions
71 
72  scalar kv
73  (
74  const label inj,
75  const scalar massFlow,
76  const scalar dPressure
77  ) const;
78 
79  scalar deltaPressureInj(const scalar time, const label inj) const;
80  scalar averagePressure(const label inj) const;
81 
82 public:
83 
84  //- Runtime type information
85  TypeName("pressureSwirlInjector");
86 
87 
88  // Constructors
89 
90  //- Construct from components
92  (
93  const dictionary& dict,
94  spray& sm
95  );
96 
97 
98  // Destructor
99 
101 
102 
103  // Member Functions
104 
105  //- Return the injected droplet diameter
106  scalar d0(const label injector, const scalar time) const;
107 
108  //- Return the spray angle of the injector
110  (
111  const label injector,
112  const label hole,
113  const scalar time,
114  const scalar d
115  ) const;
116 
117  scalar velocity
118  (
119  const label i,
120  const scalar time
121  ) const;
122 
123  scalar averageVelocity
124  (
125  const label i
126  ) const;
127 
128 
129 };
130 
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 } // End namespace Foam
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 #endif
139 
140 // ************************ vim: set sw=4 sts=4 et: ************************ //