View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003775 | OpenFOAM | Bug | public | 2022-01-07 06:13 | 2022-01-07 10:24 |
Reporter | cgoessni | Assigned To | henry | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | amd64 | OS | Debian | OS Version | stable |
Summary | 0003775: crash in Foam::basicSpecieMixture::correctMassFractions() | ||||
Description | Due to a wrong check (max vs min), Foam::basicSpecieMixture::correctMassFractions() would crash without any error message due to a wrong check. Patch attached | ||||
Steps To Reproduce | Setup case for reactingFoam with cells which have a sum of zero for species mass fractions | ||||
Additional Information | Same erroneous check is also present in -dev | ||||
Tags | No tags attached. | ||||
|
basicSpecieMixture.diff.txt (405 bytes)
--- basicSpecieMixture.C.orig 2022-01-07 07:08:10.823870942 +0100 +++ basicSpecieMixture.C 2022-01-07 06:48:12.206280443 +0100 @@ -200,7 +200,7 @@ Yt += Y_[i]; } - if (mag(max(Yt).value()) < rootVSmall) + if (mag(min(Yt).value()) < rootVSmall) { FatalErrorInFunction << "Sum of mass fractions is zero for species " << species() |
|
Resolved in OpenFOAM-9 by commit 0622e9bea8c866c627c456d25ff34cf83bf37afd Resolved in OpenFOAM-dev by commit 0b681597c4cccff1d0d0f93133a139dcc20e97bc |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-01-07 06:13 | cgoessni | New Issue | |
2022-01-07 06:13 | cgoessni | File Added: basicSpecieMixture.diff.txt | |
2022-01-07 10:24 | henry | Assigned To | => henry |
2022-01-07 10:24 | henry | Status | new => resolved |
2022-01-07 10:24 | henry | Resolution | open => fixed |
2022-01-07 10:24 | henry | Fixed in Version | => 9 |
2022-01-07 10:24 | henry | Note Added: 0012361 |