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

definedPressureSwirl.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::definedPressureSwirlInjector
00026 
00027 Description
00028     Pressure swirl injector model with user-defined 
00029     cone-angle/interval vs. time
00030 
00031 \*---------------------------------------------------------------------------*/
00032 
00033 #ifndef definedPressureSwirlInjector_H
00034 #define definedPressureSwirlInjector_H
00035 
00036 #include <dieselSpray/injectorModel.H>
00037 #include <OpenFOAM/scalarList.H>
00038 #include <OpenFOAM/vector.H>
00039 
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 /*---------------------------------------------------------------------------*\
00046                            Class definedPressureSwirlInjector Declaration
00047 \*---------------------------------------------------------------------------*/
00048 
00049 class definedPressureSwirlInjector
00050 :
00051     public injectorModel
00052 {
00053 
00054 private:
00055 
00056     // Private data
00057 
00058         typedef VectorSpace<Vector<scalar>, scalar, 2> pair;
00059 
00060         dictionary definedPressureSwirlInjectorDict_;
00061 
00062         List<pair> coneAngle_;
00063         List<pair> coneInterval_;
00064 
00065         List<pair>  maxKv_;
00066 
00067     // The initial spray angle for the parcels
00068         mutable scalar angle_;
00069 
00070     // The initial velocity for the parcels
00071         mutable scalar u_;
00072 
00073     // private member functions
00074 
00075         scalar kv
00076         (
00077             const label inj,
00078             const scalar massFlow,
00079             const scalar dPressure,
00080             const scalar t
00081         ) const;
00082 
00083         scalar deltaPressureInj(const scalar time, const label inj) const;
00084         scalar averagePressure(const label inj) const;
00085 
00086 public:
00087 
00088     //- Runtime type information
00089         TypeName("definedPressureSwirlInjector");
00090 
00091 
00092     // Constructors
00093 
00094         //- Construct from components
00095         definedPressureSwirlInjector
00096         (
00097             const dictionary& dict,
00098             spray& sm
00099         );
00100 
00101 
00102     // Destructor
00103 
00104         ~definedPressureSwirlInjector();
00105 
00106 
00107     // Member Functions
00108 
00109         //- Return the injected droplet diameter
00110         scalar d0(const label injector, const scalar time) const;
00111 
00112         //- Return the spray angle of the injector
00113         vector direction
00114         (
00115             const label injector,
00116             const label hole,
00117             const scalar time,
00118             const scalar d
00119         ) const;
00120 
00121         scalar velocity
00122         (
00123             const label i,
00124             const scalar time
00125         ) const;
00126 
00127         scalar averageVelocity
00128         (
00129             const label i
00130         ) const;
00131 
00132 
00133 };
00134 
00135 
00136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00137 
00138 } // End namespace Foam
00139 
00140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00141 
00142 #endif
00143 
00144 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines