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::ChomiakInjector 00026 00027 Description 00028 Injector model based on an idea of Jerzy Chomiak. 00029 00030 Given the initial droplet size pdf in an interval d = (d0, d1), 00031 the spray angle phi = phi(d), such that 00032 the largest droplets have zero spray angle 00033 and the smallest droplets have maximum spray angle. 00034 i.e. phi(d=d1) = 0, phi(d=d0) = phiMax, 00035 where phiMax is a model parameter. 00036 00037 \*---------------------------------------------------------------------------*/ 00038 00039 #ifndef ChomiakInjector_H 00040 #define ChomiakInjector_H 00041 00042 #include <dieselSpray/injectorModel.H> 00043 #include <OpenFOAM/scalarList.H> 00044 #include <pdf/pdf.H> 00045 00046 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00047 00048 namespace Foam 00049 { 00050 00051 /*---------------------------------------------------------------------------*\ 00052 Class ChomiakInjector Declaration 00053 \*---------------------------------------------------------------------------*/ 00054 00055 class ChomiakInjector 00056 : 00057 public injectorModel 00058 { 00059 00060 private: 00061 00062 // Private data 00063 00064 dictionary ChomiakDict_; 00065 00066 autoPtr<pdfs::pdf> dropletPDF_; 00067 scalarList maxSprayAngle_; 00068 00069 public: 00070 00071 //- Runtime type information 00072 TypeName("ChomiakInjector"); 00073 00074 00075 // Constructors 00076 00077 //- Construct from components 00078 ChomiakInjector 00079 ( 00080 const dictionary& dict, 00081 spray& sm 00082 ); 00083 00084 00085 // Destructor 00086 00087 ~ChomiakInjector(); 00088 00089 00090 // Member Functions 00091 00092 //- Return the injected droplet diameter 00093 scalar d0(const label injector, const scalar time) const; 00094 00095 //- Return the spray angle of the injector 00096 vector direction 00097 ( 00098 const label injector, 00099 const label hole, 00100 const scalar time, 00101 const scalar d 00102 ) const; 00103 00104 scalar velocity 00105 ( 00106 const label i, 00107 const scalar time 00108 ) const; 00109 00110 scalar averageVelocity 00111 ( 00112 const label i 00113 ) const; 00114 }; 00115 00116 00117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00118 00119 } // End namespace Foam 00120 00121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00122 00123 #endif 00124 00125 // ************************ vim: set sw=4 sts=4 et: ************************ //