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