ENH: InjectionModel - stabilised volume fraction calculation

This commit is contained in:
andy
2013-07-12 13:12:57 +01:00
parent 7004727257
commit 7f41318949

View File

@ -72,7 +72,9 @@ bool Foam::InjectionModel<CloudType>::prepareForNextTimeStep
newParcels = this->parcelsToInject(t0, t1);
// Volume of parcels to inject
newVolumeFraction = this->volumeToInject(t0, t1)/volumeTotal_;
newVolumeFraction =
this->volumeToInject(t0, t1)
/(volumeTotal_ + ROOTVSMALL);
if (newVolumeFraction > 0)
{