ReactingCloud.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 #ifndef ReactingCloud_H
00042 #define ReactingCloud_H
00043
00044 #include "ThermoCloud.H"
00045 #include "reactingCloud.H"
00046 #include "multiComponentMixture.H"
00047
00048
00049
00050 namespace Foam
00051 {
00052
00053
00054
00055 template<class CloudType>
00056 class CompositionModel;
00057
00058 template<class CloudType>
00059 class PhaseChangeModel;
00060
00061
00062
00063
00064
00065 template<class ParcelType>
00066 class ReactingCloud
00067 :
00068 public ThermoCloud<ParcelType>,
00069 public reactingCloud
00070 {
00071 public:
00072
00073
00074 typedef typename ParcelType::thermoType thermoType;
00075
00076
00077 private:
00078
00079
00080
00081
00082 ReactingCloud(const ReactingCloud&);
00083
00084
00085 void operator=(const ReactingCloud&);
00086
00087
00088 protected:
00089
00090
00091
00092
00093 typename ParcelType::constantProperties constProps_;
00094
00095
00096 multiComponentMixture<thermoType>& mcCarrierThermo_;
00097
00098
00099
00100
00101
00102 autoPtr<CompositionModel<ReactingCloud<ParcelType> > >
00103 compositionModel_;
00104
00105
00106 autoPtr<PhaseChangeModel<ReactingCloud<ParcelType> > >
00107 phaseChangeModel_;
00108
00109
00110
00111
00112
00113 PtrList<DimensionedField<scalar, volMesh> > rhoTrans_;
00114
00115
00116
00117
00118
00119 scalar dMassPhaseChange_;
00120
00121
00122
00123
00124
00125
00126
00127 void checkSuppliedComposition
00128 (
00129 const scalarField& YSupplied,
00130 const scalarField& Y,
00131 const word& YName
00132 );
00133
00134
00135
00136
00137
00138 void preEvolve();
00139
00140
00141 void postEvolve();
00142
00143
00144 public:
00145
00146
00147
00148
00149 ReactingCloud
00150 (
00151 const word& cloudName,
00152 const volScalarField& rho,
00153 const volVectorField& U,
00154 const dimensionedVector& g,
00155 basicThermo& thermo
00156 );
00157
00158
00159
00160 virtual ~ReactingCloud();
00161
00162
00163
00164 typedef ParcelType parcelType;
00165
00166
00167
00168
00169
00170
00171
00172 inline const typename ParcelType::constantProperties&
00173 constProps() const;
00174
00175
00176 inline const multiComponentMixture<thermoType>&
00177 mcCarrierThermo() const;
00178
00179
00180 inline multiComponentMixture<thermoType>& mcCarrierThermo();
00181
00182
00183
00184
00185
00186 inline const CompositionModel<ReactingCloud<ParcelType> >&
00187 composition() const;
00188
00189
00190 inline const PhaseChangeModel<ReactingCloud<ParcelType> >&
00191 phaseChange() const;
00192
00193
00194
00195
00196
00197
00198
00199 inline DimensionedField<scalar, volMesh>&
00200 rhoTrans(const label i);
00201
00202
00203 inline PtrList<DimensionedField<scalar, volMesh> >&
00204 rhoTrans();
00205
00206
00207 inline tmp<DimensionedField<scalar, volMesh> >
00208 Srho(const label i) const;
00209
00210
00211
00212 inline tmp<DimensionedField<scalar, volMesh> > Srho() const;
00213
00214
00215
00216
00217
00218 void info() const;
00219
00220
00221 void addToMassPhaseChange(const scalar dMass);
00222
00223
00224
00225
00226
00227 void checkParcelProperties
00228 (
00229 ParcelType& parcel,
00230 const scalar lagrangianDt,
00231 const bool fullyDescribed
00232 );
00233
00234
00235 void resetSourceTerms();
00236
00237
00238 void evolve();
00239 };
00240
00241
00242
00243
00244 }
00245
00246
00247
00248 #include "ReactingCloudI.H"
00249
00250
00251
00252 #ifdef NoRepository
00253 # include "ReactingCloud.C"
00254 #endif
00255
00256
00257
00258 #endif
00259
00260
Copyright © 2000-2009 OpenCFD Ltd