FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

pressureSwirlInjector.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::pressureSwirlInjector
00026 
00027 Description
00028     Randomly distribute the parcels between the inner and outer cone angle.
00029 
00030     Set inner angle to zero for solid cone.
00031 
00032 \*---------------------------------------------------------------------------*/
00033 
00034 #ifndef pressureSwirlInjector_H
00035 #define pressureSwirlInjector_H
00036 
00037 #include <dieselSpray/injectorModel.H>
00038 #include <OpenFOAM/scalarList.H>
00039 
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 /*---------------------------------------------------------------------------*\
00046                            Class pressureSwirlInjector Declaration
00047 \*---------------------------------------------------------------------------*/
00048 
00049 class pressureSwirlInjector
00050 :
00051     public injectorModel
00052 {
00053 
00054 private:
00055 
00056     // Private data
00057 
00058         dictionary pressureSwirlInjectorDict_;
00059 
00060         scalarList coneAngle_;
00061         scalarList coneInterval_;
00062         scalarList maxKv_;
00063         
00064     // The initial spray angle for the parcels    
00065         mutable scalar angle_;
00066         
00067     // The initial velocity for the parcels           
00068         mutable scalar u_;
00069 
00070     // private member functions
00071         
00072         scalar kv
00073         (
00074             const label inj, 
00075             const scalar massFlow,
00076             const scalar dPressure
00077         ) const;
00078         
00079         scalar deltaPressureInj(const scalar time, const label inj) const;
00080         scalar averagePressure(const label inj) const;
00081 
00082 public:
00083 
00084     //- Runtime type information
00085         TypeName("pressureSwirlInjector");
00086 
00087 
00088     // Constructors
00089 
00090         //- Construct from components
00091         pressureSwirlInjector
00092         (
00093             const dictionary& dict,
00094             spray& sm
00095         );
00096 
00097 
00098     // Destructor
00099 
00100         ~pressureSwirlInjector();
00101 
00102 
00103     // Member Functions
00104 
00105         //- Return the injected droplet diameter
00106         scalar d0(const label injector, const scalar time) const;
00107 
00108         //- Return the spray angle of the injector
00109         vector direction
00110         (
00111             const label injector,
00112             const label hole, 
00113             const scalar time,
00114             const scalar d
00115         ) const;
00116     
00117         scalar velocity
00118         (
00119             const label i,
00120             const scalar time
00121         ) const;
00122         
00123         scalar averageVelocity
00124         (
00125             const label i
00126         ) const;
00127         
00128 
00129 };
00130 
00131 
00132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00133 
00134 } // End namespace Foam
00135 
00136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00137 
00138 #endif
00139 
00140 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines