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 template<class ParcelType>
00030 inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
00031 (
00032 const dictionary& parentDict
00033 )
00034 :
00035 ThermoParcel<ParcelType>::constantProperties(parentDict),
00036 pMin_(dimensionedScalar(this->dict().lookup("pMin")).value()),
00037 constantVolume_(this->dict().lookup("constantVolume")),
00038 Tvap_(dimensionedScalar(this->dict().lookup("Tvap")).value()),
00039 Tbp_(dimensionedScalar(this->dict().lookup("Tbp")).value())
00040 {}
00041
00042
00043 template<class ParcelType>
00044 inline Foam::ReactingParcel<ParcelType>::trackData::trackData
00045 (
00046 ReactingCloud<ParcelType>& cloud,
00047 const constantProperties& constProps,
00048 const interpolation<scalar>& rhoInterp,
00049 const interpolation<vector>& UInterp,
00050 const interpolation<scalar>& muInterp,
00051 const interpolation<scalar>& TInterp,
00052 const interpolation<scalar>& CpInterp,
00053 const interpolation<scalar>& pInterp,
00054 const vector& g
00055 )
00056 :
00057 ThermoParcel<ParcelType>::trackData
00058 (
00059 cloud,
00060 constProps,
00061 rhoInterp,
00062 UInterp,
00063 muInterp,
00064 TInterp,
00065 CpInterp,
00066 g
00067 ),
00068 cloud_(cloud),
00069 constProps_(constProps),
00070 pInterp_(pInterp)
00071 {}
00072
00073
00074 template<class ParcelType>
00075 inline Foam::ReactingParcel<ParcelType>::ReactingParcel
00076 (
00077 ReactingCloud<ParcelType>& owner,
00078 const vector& position,
00079 const label cellI
00080 )
00081 :
00082 ThermoParcel<ParcelType>(owner, position, cellI),
00083 mass0_(0.0),
00084 Y_(0),
00085 pc_(0.0)
00086 {}
00087
00088
00089 template<class ParcelType>
00090 inline Foam::ReactingParcel<ParcelType>::ReactingParcel
00091 (
00092 ReactingCloud<ParcelType>& owner,
00093 const vector& position,
00094 const label cellI,
00095 const label typeId,
00096 const scalar nParticle0,
00097 const scalar d0,
00098 const vector& U0,
00099 const scalarField& Y0,
00100 const constantProperties& constProps
00101 )
00102 :
00103 ThermoParcel<ParcelType>
00104 (
00105 owner,
00106 position,
00107 cellI,
00108 typeId,
00109 nParticle0,
00110 d0,
00111 U0,
00112 constProps
00113 ),
00114 mass0_(0.0),
00115 Y_(Y0),
00116 pc_(0.0)
00117 {
00118
00119 mass0_ = this->mass();
00120 }
00121
00122
00123
00124
00125 template<class ParcelType>
00126 inline Foam::scalar
00127 Foam::ReactingParcel<ParcelType>::constantProperties::pMin() const
00128 {
00129 return pMin_;
00130 }
00131
00132
00133 template<class ParcelType>
00134 inline Foam::Switch
00135 Foam::ReactingParcel<ParcelType>::constantProperties::constantVolume() const
00136 {
00137 return constantVolume_;
00138 }
00139
00140
00141 template<class ParcelType>
00142 inline Foam::scalar
00143 Foam::ReactingParcel<ParcelType>::constantProperties::Tvap() const
00144 {
00145 return Tvap_;
00146 }
00147
00148
00149 template<class ParcelType>
00150 inline Foam::scalar
00151 Foam::ReactingParcel<ParcelType>::constantProperties::Tbp() const
00152 {
00153 return Tbp_;
00154 }
00155
00156
00157
00158
00159 template<class ParcelType>
00160 inline Foam::ReactingCloud<ParcelType>&
00161 Foam::ReactingParcel<ParcelType>::trackData::cloud()
00162 {
00163 return cloud_;
00164 }
00165
00166
00167 template<class ParcelType>
00168 inline const typename Foam::ReactingParcel<ParcelType>::constantProperties&
00169 Foam::ReactingParcel<ParcelType>::trackData::constProps() const
00170 {
00171 return constProps_;
00172 }
00173
00174
00175 template<class ParcelType>
00176 inline const Foam::interpolation<Foam::scalar>&
00177 Foam::ReactingParcel<ParcelType>::trackData::pInterp() const
00178 {
00179 return pInterp_;
00180 }
00181
00182
00183
00184
00185 template<class ParcelType>
00186 inline Foam::scalar Foam::ReactingParcel<ParcelType>::mass0() const
00187 {
00188 return mass0_;
00189 }
00190
00191
00192 template<class ParcelType>
00193 inline const Foam::scalarField& Foam::ReactingParcel<ParcelType>::Y() const
00194 {
00195 return Y_;
00196 }
00197
00198
00199 template<class ParcelType>
00200 inline Foam::scalar Foam::ReactingParcel<ParcelType>::pc() const
00201 {
00202 return pc_;
00203 }
00204
00205
00206 template<class ParcelType>
00207 inline Foam::scalar& Foam::ReactingParcel<ParcelType>::mass0()
00208 {
00209 return mass0_;
00210 }
00211
00212
00213 template<class ParcelType>
00214 inline Foam::scalarField& Foam::ReactingParcel<ParcelType>::Y()
00215 {
00216 return Y_;
00217 }
00218
00219
00220