commonRailInjector.H
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
00034
00035
00036
00037
00038 #ifndef commonRailInjector_H
00039 #define commonRailInjector_H
00040
00041 #include "injectorType.H"
00042 #include "vector.H"
00043
00044
00045
00046 namespace Foam
00047 {
00048
00049
00050
00051
00052
00053 class commonRailInjector
00054 :
00055 public injectorType
00056 {
00057
00058 private:
00059
00060 typedef VectorSpace<Vector<scalar>, scalar, 2> pair;
00061
00062
00063
00064 dictionary propsDict_;
00065
00066 vector position_;
00067 vector direction_;
00068 scalar d_;
00069 scalar mass_;
00070 scalar injectionPressure_;
00071 scalar T_;
00072 label nParcels_;
00073 scalarField X_;
00074 List<pair> massFlowRateProfile_;
00075 List<pair> velocityProfile_;
00076 List<pair> injectionPressureProfile_;
00077 List<pair> CdProfile_;
00078 List<pair> TProfile_;
00079 scalar averageParcelMass_;
00080
00081 bool pressureIndependentVelocity_;
00082
00083
00084
00085 vector tangentialInjectionVector1_, tangentialInjectionVector2_;
00086
00087
00088
00089
00090
00091 commonRailInjector(const commonRailInjector&);
00092
00093
00094 void operator=(const commonRailInjector&);
00095
00096
00097
00098 void setTangentialVectors();
00099
00100
00101 scalar fractionOfInjection(const scalar time) const;
00102
00103
00104 public:
00105
00106
00107 TypeName("commonRailInjector");
00108
00109
00110
00111
00112
00113 commonRailInjector
00114 (
00115 const Time& t,
00116 const dictionary& dict
00117 );
00118
00119
00120
00121
00122 ~commonRailInjector();
00123
00124
00125
00126
00127
00128 label nParcelsToInject
00129 (
00130 const scalar t0,
00131 const scalar t1
00132 ) const;
00133
00134
00135 const vector position(const label n) const;
00136
00137
00138 vector position
00139 (
00140 const label n,
00141 const scalar time,
00142 const bool twoD,
00143 const scalar angleOfWedge,
00144 const vector& axisOfSymmetry,
00145 const vector& axisOfWedge,
00146 const vector& axisOfWedgeNormal,
00147 Random& rndGen
00148 ) const;
00149
00150
00151 label nHoles() const;
00152
00153
00154 scalar d() const;
00155
00156
00157 const vector& direction
00158 (
00159 const label i,
00160 const scalar time
00161 ) const;
00162
00163
00164 scalar mass
00165 (
00166 const scalar t0,
00167 const scalar t1,
00168 const bool twoD,
00169 const scalar angleOfWedge
00170 ) const;
00171
00172
00173 scalar mass() const;
00174
00175
00176 const scalarField& X() const;
00177
00178
00179 List<pair> T() const;
00180
00181
00182 scalar T(const scalar time) const;
00183
00184
00185 scalar tsoi() const;
00186
00187
00188 scalar teoi() const;
00189
00190
00191 scalar injectedMass(const scalar t) const;
00192
00193 List<pair> massFlowRateProfile() const
00194 {
00195 return massFlowRateProfile_;
00196 }
00197
00198 scalar massFlowRate(const scalar time) const;
00199
00200 List<pair> injectionPressureProfile() const
00201 {
00202 return injectionPressureProfile_;
00203 }
00204
00205 scalar injectionPressure(const scalar time) const;
00206
00207 List<pair> velocityProfile() const
00208 {
00209 return velocityProfile_;
00210 }
00211
00212 scalar velocity(const scalar time) const;
00213
00214 List<pair> CdProfile() const;
00215 scalar Cd(const scalar time) const;
00216
00217 vector tan1(const label n) const;
00218 vector tan2(const label n) const;
00219
00220 void correctProfiles
00221 (
00222 const liquidMixture& fuel,
00223 const scalar referencePressure
00224 );
00225
00226 bool pressureIndependentVelocity() const
00227 {
00228 return pressureIndependentVelocity_;
00229 }
00230
00231 };
00232
00233
00234
00235
00236 }
00237
00238
00239
00240 #endif
00241
00242
Copyright © 2000-2009 OpenCFD Ltd