1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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
26 Foam::definedPressureSwirlInjector
29 Pressure swirl injector model with user-defined
30 cone-angle/interval vs. time
32 \*---------------------------------------------------------------------------*/
34 #ifndef definedPressureSwirlInjector_H
35 #define definedPressureSwirlInjector_H
37 #include "injectorModel.H"
38 #include "scalarList.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class definedPressureSwirlInjector Declaration
48 \*---------------------------------------------------------------------------*/
50 class definedPressureSwirlInjector
59 typedef VectorSpace<Vector<scalar>, scalar, 2> pair;
61 dictionary definedPressureSwirlInjectorDict_;
63 List<pair> coneAngle_;
64 List<pair> coneInterval_;
68 // The initial spray angle for the parcels
69 mutable scalar angle_;
71 // The initial velocity for the parcels
74 // two perpendicular vectors, perpendicular to injection direction
78 // private member functions
83 const scalar massFlow,
84 const scalar dPressure,
88 scalar deltaPressureInj(const scalar time, const label inj) const;
89 scalar averagePressure(const label inj) const;
93 //- Runtime type information
94 TypeName("definedPressureSwirlInjector");
99 //- Construct from components
100 definedPressureSwirlInjector
102 const dictionary& dict,
109 ~definedPressureSwirlInjector();
114 //- Return the injected droplet diameter
115 scalar d0(const label injector, const scalar time) const;
117 //- Return the spray angle of the injector
120 const label injector,
131 scalar averageVelocity
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 } // End namespace Foam
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 // ************************************************************************* //