using scalarList for Y instead of scalarField

This commit is contained in:
andy
2009-03-17 13:07:49 +00:00
parent c5c16150b7
commit 0612c15134
3 changed files with 6 additions and 6 deletions

View File

@ -68,7 +68,7 @@ Foam::ReactingMultiphaseParcel<ParcelType>::ReactingMultiphaseParcel
}
// scale the mass fractions
const scalarField& YMix = this->Y_;
const scalarList& YMix = this->Y_;
YGas_ /= YMix[0] + ROOTVSMALL;
YLiquid_ /= YMix[1] + ROOTVSMALL;
YSolid_ /= YMix[2] + ROOTVSMALL;

View File

@ -169,7 +169,7 @@ protected:
scalar mass0_;
//- Mass fractions of mixture []
scalarField Y_;
scalarList Y_;
// Cell-based quantities
@ -250,7 +250,7 @@ public:
inline scalar mass0() const;
//- Return const access to mass fractions of mixture
inline const scalarField& Y() const;
inline const scalarList& Y() const;
//- Return the owner cell pressure
inline scalar pc() const;
@ -262,7 +262,7 @@ public:
inline scalar& mass0();
//- Return access to mass fractions of mixture
inline scalarField& Y();
inline scalarList& Y();
// Main calculation loop

View File

@ -166,7 +166,7 @@ inline Foam::scalar Foam::ReactingParcel<ParcelType>::mass0() const
template<class ParcelType>
inline const Foam::scalarField& Foam::ReactingParcel<ParcelType>::Y() const
inline const Foam::scalarList& Foam::ReactingParcel<ParcelType>::Y() const
{
return Y_;
}
@ -187,7 +187,7 @@ inline Foam::scalar& Foam::ReactingParcel<ParcelType>::mass0()
template<class ParcelType>
inline Foam::scalarField& Foam::ReactingParcel<ParcelType>::Y()
inline Foam::scalarList& Foam::ReactingParcel<ParcelType>::Y()
{
return Y_;
}