mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added stabilisation to parcel analaytical integration scheme
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user