Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
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 
00047 
00048 
00049 class definedPressureSwirlInjector
00050 :
00051     public injectorModel
00052 {
00053 
00054 private:
00055 
00056     
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     
00068         mutable scalar angle_;
00069 
00070     
00071         mutable scalar u_;
00072 
00073     
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     
00089         TypeName("definedPressureSwirlInjector");
00090 
00091 
00092     
00093 
00094         
00095         definedPressureSwirlInjector
00096         (
00097             const dictionary& dict,
00098             spray& sm
00099         );
00100 
00101 
00102     
00103 
00104         ~definedPressureSwirlInjector();
00105 
00106 
00107     
00108 
00109         
00110         scalar d0(const label injector, const scalar time) const;
00111 
00112         
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 } 
00139 
00140 
00141 
00142 #endif
00143 
00144