mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: ConeInjection - corrected number of parcels injected for multiple injector positions
This commit is contained in:
@ -198,12 +198,12 @@ Foam::label Foam::ConeInjection<CloudType>::parcelsToInject
|
||||
{
|
||||
const scalar targetVolume = flowRateProfile_.integrate(0, time1);
|
||||
|
||||
const scalar volumeFraction = targetVolume/this->volumeTotal_;
|
||||
|
||||
const label targetParcels =
|
||||
parcelsPerInjector_*targetVolume/this->volumeTotal_;
|
||||
ceil(positionAxis_.size()*parcelsPerInjector_*volumeFraction);
|
||||
|
||||
const label nToInject = targetParcels - nInjected_;
|
||||
|
||||
return positionAxis_.size()*nToInject;
|
||||
return targetParcels - nInjected_;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -85,7 +85,6 @@ subModels
|
||||
|
||||
massTotal 10;
|
||||
parcelsPerInjector 20000;
|
||||
parcelsPerSecond 500;
|
||||
parcelBasisType mass;
|
||||
flowRateProfile constant 0.1;
|
||||
Umag constant 3.0;
|
||||
|
||||
Reference in New Issue
Block a user