View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003677 | OpenFOAM | Bug | public | 2021-05-18 07:31 | 2021-05-18 08:14 |
Reporter | yeharav | Assigned To | henry | ||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | no change required | ||
Platform | Ubuntu | ||||
Summary | 0003677: PatchFlowRateInjection Hangs in parallel execution | ||||
Description | The 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 Information | Solution 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); | ||||
Tags | No tags attached. | ||||
|
> Solution for the problem is give in in https://bugs.openfoam.org/view.php?id=2111. Correct, this is already solved. |
|
Sorry my bad. it is not a problem please close |
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 |