View Issue Details

IDProjectCategoryView StatusLast Update
0003775OpenFOAMBugpublic2022-01-07 10:24
Reportercgoessni Assigned Tohenry  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Platformamd64OSDebianOS Versionstable
Summary0003775: crash in Foam::basicSpecieMixture::correctMassFractions()
DescriptionDue 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 ReproduceSetup case for reactingFoam with cells which have a sum of zero for species mass fractions
Additional InformationSame erroneous check is also present in -dev
TagsNo tags attached.

Activities

cgoessni

2022-01-07 06:13

reporter  

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()
basicSpecieMixture.diff.txt (405 bytes)   

henry

2022-01-07 10:24

manager   ~0012361

Resolved in OpenFOAM-9 by commit 0622e9bea8c866c627c456d25ff34cf83bf37afd
Resolved in OpenFOAM-dev by commit 0b681597c4cccff1d0d0f93133a139dcc20e97bc

Issue History

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