View Issue Details

IDProjectCategoryView StatusLast Update
0003677OpenFOAMBugpublic2021-05-18 08:14
Reporteryeharav Assigned Tohenry  
PrioritynormalSeveritymajorReproducibilityhave not tried
Status closedResolutionno change required 
PlatformUbuntu 
Summary0003677: PatchFlowRateInjection Hangs in parallel execution
DescriptionThe PatchFlowRateInjection hangs as was reported and fixed in https://bugs.openfoam.org/view.php?id=2111.

According to user Tniemi: In function parcelsToInject at PatchFlowRateInjection.C, the code calculates a random number to check if an additional parcel should be injected. However, each processor can create a different random number and thus some processors may think that a parcel should be injected while others do not. This creates a hang up in the injection loop in setPositionAndCell.

The solution would be to calculate a global probability for additional injection in parcelsToInject function.
Additional InformationSolution for the problem is givein in https://bugs.openfoam.org/view.php?id=2111.

Lines 165 PatchFlowRateInjection.C in random a number for each processor individually,

The patch is

        if (Pstream::master())
        {
            injectProb = this->owner().rndGen().position(scalar(0), scalar(1));
        }

        Pstream::scatter(injectProb);

TagsNo tags attached.

Activities

henry

2021-05-18 07:59

manager   ~0012029

> Solution for the problem is give in in https://bugs.openfoam.org/view.php?id=2111.

Correct, this is already solved.

yeharav

2021-05-18 08:00

reporter   ~0012030

Sorry my bad. it is not a problem
please close

Issue History

Date Modified Username Field Change
2021-05-18 07:31 yeharav New Issue
2021-05-18 07:59 henry Note Added: 0012029
2021-05-18 08:00 yeharav Note Added: 0012030
2021-05-18 08:14 henry Assigned To => henry
2021-05-18 08:14 henry Status new => closed
2021-05-18 08:14 henry Resolution open => no change required