1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
25 Foam::pressureSwirlInjector
28 Randomly distribute the parcels between the inner and outer cone angle.
30 Set inner angle to zero for solid cone.
32 \*---------------------------------------------------------------------------*/
34 #ifndef pressureSwirlInjector_H
35 #define pressureSwirlInjector_H
37 #include "injectorModel.H"
38 #include "scalarList.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class pressureSwirlInjector Declaration
47 \*---------------------------------------------------------------------------*/
49 class pressureSwirlInjector
58 dictionary pressureSwirlInjectorDict_;
60 scalarList coneAngle_;
61 scalarList coneInterval_;
64 //- Initial spray angle for the parcels
65 mutable scalar angle_;
67 //- Initial velocity for the parcels
71 // Private Member Functions
76 const scalar massFlow,
77 const scalar dPressure
80 scalar deltaPressureInj(const scalar time, const label inj) const;
81 scalar averagePressure(const label inj) const;
86 //- Runtime type information
87 TypeName("pressureSwirlInjector");
92 //- Construct from components
93 pressureSwirlInjector(const dictionary& dict, spray& sm);
97 virtual ~pressureSwirlInjector();
102 //- Return the injected droplet diameter
103 scalar d0(const label injector, const scalar time) const;
105 //- Return the spray angle of the injector
108 const label injector,
114 scalar velocity(const label i, const scalar time) const;
116 scalar averageVelocity(const label i) const;
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 } // End namespace Foam
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 // ************************************************************************* //