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