mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
using scalarList for Y instead of scalarField
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user