View Issue Details

IDProjectCategoryView StatusLast Update
0004239OpenFOAMBugpublic2025-05-30 19:57
ReporterElin Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSUbuntuOS Version22.04.1
Product Versiondev 
Fixed in Versiondev 
Summary0004239: scalarTransport + MULES correction throws dimensions error
DescriptionWhen using the scalarTransport functionObject with the MULES correction as described in scalarTransport.H and a temperature field as scalarField, foamRun throws:
    --> FOAM FATAL ERROR:
    LHS and RHS of + have different dimensions
         dimensions : [length^-1 temperature] + [length^-1]

From line 422 in scalarTransport.C (in my two-weeks old version it is line 429 #4 Foam::functionObjects::scalarTransport::solveMULES() at /opt/openfoam-dev/src/functionObjects/solvers/scalarTransport/scalarTransport.C:429 (discriminator 4))

which reads
            gradsf/(mag(gradsf) + deltaN_) & mesh_.Sf()


mag(gradsf) has units [field unit/m], e.g., [K/m] whereas deltaN_ has always [1/m]

Steps To Reproduceput the MULES correction as described in the header of scalarTransport.H in the pitzDailyScalarTransport tutorial and let it run.
TagsNo tags attached.

Activities

Elin

2025-05-30 16:09

reporter  

image.png (21,566 bytes)   
image.png (21,566 bytes)   

henry

2025-05-30 19:57

manager   ~0013572

Resolved by commit ffbb2224afc133eb40e2b8e64f5f8376d36d1387

Issue History

Date Modified Username Field Change
2025-05-30 16:09 Elin New Issue
2025-05-30 16:09 Elin File Added: image.png
2025-05-30 19:57 henry Assigned To => henry
2025-05-30 19:57 henry Status new => resolved
2025-05-30 19:57 henry Resolution open => fixed
2025-05-30 19:57 henry Fixed in Version => dev
2025-05-30 19:57 henry Note Added: 0013572