KinematicCloud.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
00039
00040
00041
00042
00043 #ifndef KinematicCloud_H
00044 #define KinematicCloud_H
00045
00046 #include "Cloud.H"
00047 #include "kinematicCloud.H"
00048 #include "IOdictionary.H"
00049 #include "autoPtr.H"
00050 #include "Random.H"
00051 #include "fvMesh.H"
00052 #include "volFields.H"
00053 #include "fvMatrices.H"
00054 #include "particleForces.H"
00055
00056 #include "IntegrationSchemesFwd.H"
00057
00058
00059
00060 namespace Foam
00061 {
00062
00063
00064
00065 template<class CloudType>
00066 class DispersionModel;
00067
00068 template<class CloudType>
00069 class DragModel;
00070
00071 template<class CloudType>
00072 class InjectionModel;
00073
00074 template<class CloudType>
00075 class PostProcessingModel;
00076
00077 template<class CloudType>
00078 class PatchInteractionModel;
00079
00080
00081
00082
00083
00084 template<class ParcelType>
00085 class KinematicCloud
00086 :
00087 public Cloud<ParcelType>,
00088 public kinematicCloud
00089 {
00090
00091
00092
00093 KinematicCloud(const KinematicCloud&);
00094
00095
00096 void operator=(const KinematicCloud&);
00097
00098
00099 protected:
00100
00101
00102
00103
00104 const fvMesh& mesh_;
00105
00106
00107 IOdictionary particleProperties_;
00108
00109
00110 typename ParcelType::constantProperties constProps_;
00111
00112
00113
00114 const label parcelTypeId_;
00115
00116
00117
00118 const Switch coupled_;
00119
00120
00121
00122 const Switch cellValueSourceCorrection_;
00123
00124
00125 Random rndGen_;
00126
00127
00128
00129
00130
00131 const volScalarField& rho_;
00132
00133
00134 const volVectorField& U_;
00135
00136
00137 const volScalarField& mu_;
00138
00139
00140
00141
00142
00143 const dimensionedVector& g_;
00144
00145
00146
00147 particleForces forces_;
00148
00149
00150 dictionary interpolationSchemes_;
00151
00152
00153
00154
00155
00156 autoPtr<DispersionModel<KinematicCloud<ParcelType> > >
00157 dispersionModel_;
00158
00159
00160 autoPtr<DragModel<KinematicCloud<ParcelType> > > dragModel_;
00161
00162
00163 autoPtr<InjectionModel<KinematicCloud<ParcelType> > >
00164 injectionModel_;
00165
00166
00167 autoPtr<PatchInteractionModel<KinematicCloud<ParcelType> > >
00168 patchInteractionModel_;
00169
00170
00171 autoPtr<PostProcessingModel<KinematicCloud<ParcelType> > >
00172 postProcessingModel_;
00173
00174
00175
00176
00177
00178 autoPtr<vectorIntegrationScheme> UIntegrator_;
00179
00180
00181
00182
00183
00184 DimensionedField<vector, volMesh> UTrans_;
00185
00186
00187
00188
00189
00190 void preEvolve();
00191
00192
00193 void postEvolve();
00194
00195
00196 public:
00197
00198
00199
00200
00201 KinematicCloud
00202 (
00203 const word& cloudName,
00204 const volScalarField& rho,
00205 const volVectorField& U,
00206 const volScalarField& mu,
00207 const dimensionedVector& g
00208 );
00209
00210
00211
00212 virtual ~KinematicCloud();
00213
00214
00215
00216 typedef ParcelType parcelType;
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226 inline label parcelTypeId() const;
00227
00228
00229 inline const fvMesh& mesh() const;
00230
00231
00232 inline const IOdictionary& particleProperties() const;
00233
00234
00235 inline const typename ParcelType::constantProperties&
00236 constProps() const;
00237
00238
00239
00240 inline const Switch coupled() const;
00241
00242
00243 inline const Switch cellValueSourceCorrection() const;
00244
00245
00246 inline Random& rndGen();
00247
00248
00249
00250
00251
00252 inline const volVectorField& U() const;
00253
00254
00255 inline const volScalarField& rho() const;
00256
00257
00258 inline const volScalarField& mu() const;
00259
00260
00261
00262
00263
00264 inline const dimensionedVector& g() const;
00265
00266
00267
00268 inline const particleForces& forces() const;
00269
00270
00271
00272
00273
00274 inline const dictionary& interpolationSchemes() const;
00275
00276
00277
00278
00279
00280 inline const DispersionModel<KinematicCloud<ParcelType> >&
00281 dispersion() const;
00282
00283
00284 inline DispersionModel<KinematicCloud<ParcelType> >&
00285 dispersion();
00286
00287
00288 inline const DragModel<KinematicCloud<ParcelType> >&
00289 drag() const;
00290
00291
00292 inline const InjectionModel<KinematicCloud<ParcelType> >&
00293 injection() const;
00294
00295
00296 inline InjectionModel<KinematicCloud<ParcelType> >&
00297 injection();
00298
00299
00300 inline const PatchInteractionModel<KinematicCloud<ParcelType> >&
00301 patchInteraction() const;
00302
00303
00304 inline PostProcessingModel<KinematicCloud<ParcelType> >&
00305 postProcessing();
00306
00307
00308
00309
00310
00311 inline const vectorIntegrationScheme& UIntegrator() const;
00312
00313
00314
00315
00316
00317
00318
00319 inline DimensionedField<vector, volMesh>& UTrans();
00320
00321
00322 inline tmp<DimensionedField<vector, volMesh> > SU() const;
00323
00324
00325
00326
00327
00328 inline scalar massInjected() const;
00329
00330
00331 inline scalar massInSystem() const;
00332
00333
00334 void info() const;
00335
00336
00337
00338
00339
00340
00341 inline const tmp<volScalarField> theta() const;
00342
00343
00344
00345 inline const tmp<volScalarField> alpha() const;
00346
00347
00348
00349 inline const tmp<volScalarField> rhoEff() const;
00350
00351
00352
00353
00354
00355 void checkParcelProperties
00356 (
00357 ParcelType& parcel,
00358 const scalar lagrangianDt,
00359 const bool fullyDescribed
00360 );
00361
00362
00363 void resetSourceTerms();
00364
00365
00366 void evolve();
00367 };
00368
00369
00370
00371
00372 }
00373
00374
00375
00376 #include "KinematicCloudI.H"
00377
00378
00379
00380 #ifdef NoRepository
00381 # include "KinematicCloud.C"
00382 #endif
00383
00384
00385
00386 #endif
00387
00388
Copyright © 2000-2009 OpenCFD Ltd