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