|
|
|
pressureSwirlInjector.HGo 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-2009 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 the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 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, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 Foam::pressureSwirlInjector 00027 00028 Description 00029 Randomly distribute the parcels between the inner and outer cone angle. 00030 00031 Set inner angle to zero for solid cone. 00032 00033 \*---------------------------------------------------------------------------*/ 00034 00035 #ifndef pressureSwirlInjector_H 00036 #define pressureSwirlInjector_H 00037 00038 #include "injectorModel.H" 00039 #include "scalarList.H" 00040 00041 00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00043 00044 namespace Foam 00045 { 00046 /*---------------------------------------------------------------------------*\ 00047 Class pressureSwirlInjector Declaration 00048 \*---------------------------------------------------------------------------*/ 00049 00050 class pressureSwirlInjector 00051 : 00052 public injectorModel 00053 { 00054 00055 private: 00056 00057 // Private data 00058 00059 dictionary pressureSwirlInjectorDict_; 00060 00061 scalarList coneAngle_; 00062 scalarList coneInterval_; 00063 scalarList maxKv_; 00064 00065 // The initial spray angle for the parcels 00066 mutable scalar angle_; 00067 00068 // The initial velocity for the parcels 00069 mutable scalar u_; 00070 00071 // private member functions 00072 00073 scalar kv 00074 ( 00075 const label inj, 00076 const scalar massFlow, 00077 const scalar dPressure 00078 ) const; 00079 00080 scalar deltaPressureInj(const scalar time, const label inj) const; 00081 scalar averagePressure(const label inj) const; 00082 00083 public: 00084 00085 //- Runtime type information 00086 TypeName("pressureSwirlInjector"); 00087 00088 00089 // Constructors 00090 00091 //- Construct from components 00092 pressureSwirlInjector 00093 ( 00094 const dictionary& dict, 00095 spray& sm 00096 ); 00097 00098 00099 // Destructor 00100 00101 ~pressureSwirlInjector(); 00102 00103 00104 // Member Functions 00105 00106 //- Return the injected droplet diameter 00107 scalar d0(const label injector, const scalar time) const; 00108 00109 //- Return the spray angle of the injector 00110 vector direction 00111 ( 00112 const label injector, 00113 const label hole, 00114 const scalar time, 00115 const scalar d 00116 ) const; 00117 00118 scalar velocity 00119 ( 00120 const label i, 00121 const scalar time 00122 ) const; 00123 00124 scalar averageVelocity 00125 ( 00126 const label i 00127 ) const; 00128 00129 00130 }; 00131 00132 00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00134 00135 } // End namespace Foam 00136 00137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00138 00139 #endif 00140 00141 // ************************************************************************* // |