View Issue Details

IDProjectCategoryView StatusLast Update
0004212OpenFOAMBugpublic2025-02-05 18:07
Reporterjherb Assigned Tohenry  
PrioritynormalSeveritytrivialReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOtherOS Version(please specify)
Product Version12 
Fixed in Versiondev 
Summary0004212: scaleFactor is not applied in surfaceFieldValue function objects even though it is read and printed in the log
DescriptionThe commit https://github.com/OpenFOAM/OpenFOAM-12/commit/74a1c352b240b99885fcb2f8bfa5d27a704fbd61#diff-89c3aa5ea9343eebe2469de7fcf5abb7ba4441da928122a6165b2c7c46007a00L339 removed the application of the scaleFactor in surfaceFieldValue function objects even though it is still read by https://github.com/OpenFOAM/OpenFOAM-12/blob/master/src/functionObjects/field/fieldValues/surfaceFieldValue/surfaceFieldValue.C#L542 and specified in the header file: https://github.com/OpenFOAM/OpenFOAM-12/blob/master/src/functionObjects/field/fieldValues/surfaceFieldValue/surfaceFieldValue.H#L101

The same applies to OpenFOAM-dev:
https://github.com/OpenFOAM/OpenFOAM-dev/blob/master/src/functionObjects/field/fieldValues/surfaceFieldValue/surfaceFieldValueTemplates.C#L299
Steps To ReproduceUse a surfaceFieldValue based function object before and after the commit specified above, e.g.

    #includeFunc patchFlowRate
    (
        name=inletMassFlow,
        patch=inlet,
        scaleFactor=360
    )

The results are different
TagsNo tags attached.

Activities

henry

2025-02-05 18:07

manager   ~0013524

Resolved by commit a88d2063f10c01557f2e5fee5ceef81c611cbeff

Issue History

Date Modified Username Field Change
2025-02-05 17:26 jherb New Issue
2025-02-05 18:07 henry Severity major => trivial
2025-02-05 18:07 henry Assigned To => henry
2025-02-05 18:07 henry Status new => resolved
2025-02-05 18:07 henry Resolution open => fixed
2025-02-05 18:07 henry Fixed in Version => dev
2025-02-05 18:07 henry Note Added: 0013524