View Issue Details

IDProjectCategoryView StatusLast Update
0004220OpenFOAMBugpublic2025-03-05 12:06
ReporterApanasevich Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformamd64OSRocky LinuxOS Version8.6
Product Versiondev 
Fixed in Versiondev 
Summary0004220: Wrong dimension of k in HerschelBulkley model
DescriptionI observed the following error when using the Herschley-Bulkey model with kOmegaSST:
-> FOAM FATAL ERROR:
LHS and RHS of + have different dimensions
     dimensions : [length^2 time^-2] + [length^2 time^-2.2346]

    From function Foam::dimensionSet Foam::operator+(const Foam::dimensionSet&, const Foam::dimensionSet&)
    in file dimensionSet/dimensionSet.C at line 540.
FOAM aborting

Units of k*gamma^n term are wrong. It seems the problem is: [k] = m^2 / s^2 instead of m^2 / s^2 s^n

Tested with multicomponentFluid and incompressibleFluid.
Steps To ReproduceA small 2D test case for mcF + HerschelBulkley is attached.
TagsNo tags attached.

Activities

Apanasevich

2025-03-05 11:27

reporter  

henry

2025-03-05 12:06

manager   ~0013537

Resolved by commit fc38f00a5a406e981e93a97fe358300e60627a49

Issue History

Date Modified Username Field Change
2025-03-05 11:27 Apanasevich New Issue
2025-03-05 11:27 Apanasevich File Added: mcF_2D_HerschelBulkley.zip
2025-03-05 12:06 henry Assigned To => henry
2025-03-05 12:06 henry Status new => resolved
2025-03-05 12:06 henry Resolution open => fixed
2025-03-05 12:06 henry Fixed in Version => dev
2025-03-05 12:06 henry Note Added: 0013537