From 616c26ccb4cd370ffbecd11c637fd42a0713271e Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 15 Feb 2010 10:40:18 +0000 Subject: [PATCH] ENH: Updated diesel spray enthalpy coupling for sensible enthalpy --- src/lagrangian/dieselSpray/parcel/parcel.C | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/lagrangian/dieselSpray/parcel/parcel.C b/src/lagrangian/dieselSpray/parcel/parcel.C index 080e1b9bf6..5c555e1940 100644 --- a/src/lagrangian/dieselSpray/parcel/parcel.C +++ b/src/lagrangian/dieselSpray/parcel/parcel.C @@ -247,7 +247,7 @@ bool Foam::parcel::move(spray& sDB) { oMass[i] = m()*oYf[i]; label j = sDB.liquidToGasIndex()[i]; - oHg += oYf[i]*sDB.gasProperties()[j].H(T()); + oHg += oYf[i]*sDB.gasProperties()[j].Hs(T()); } vector oMom = m()*U(); @@ -273,7 +273,7 @@ bool Foam::parcel::move(spray& sDB) { nMass[i] = m()*nYf[i]; label j = sDB.liquidToGasIndex()[i]; - nHg += nYf[i]*sDB.gasProperties()[j].H(T()); + nHg += nYf[i]*sDB.gasProperties()[j].Hs(T()); } vector nMom = m()*U(); @@ -286,11 +286,9 @@ bool Foam::parcel::move(spray& sDB) { sDB.srhos()[i][celli] += oMass[i] - nMass[i]; } - sDB.sms()[celli] += oMom - nMom; + sDB.sms()[celli] += oMom - nMom; - sDB.shs()[celli] += - oTotMass*(oH + oPE) - - m()*(nH + nPE); + sDB.shs()[celli] += oTotMass*(oH + oPE) - m()*(nH + nPE); // Remove evaporated mass from stripped mass ms() -= ms()*(oTotMass-m())/oTotMass; @@ -446,7 +444,7 @@ void Foam::parcel::updateParcelProperties for (label i=0; i