ENH: Added stabilisation to parcel analaytical integration scheme

This commit is contained in:
andy
2010-10-28 18:12:06 +01:00
parent c4db7d053a
commit fb332ca5ec

View File

@ -69,7 +69,8 @@ Foam::Analytical<Type>::integrate
const scalar expTerm = exp(min(50, -beta*dt));
retValue.average() = alpha + (phi - alpha)*(1 - expTerm)/(beta*dt);
retValue.average() =
alpha + (phi - alpha)*(1 - expTerm)/(beta*dt + ROOTVSMALL);
retValue.value() = alpha + (phi - alpha)*expTerm;
return retValue;