View Issue Details

IDProjectCategoryView StatusLast Update
0003828OpenFOAMBugpublic2022-04-21 15:20
Reporterkimmo Assigned Towill  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOtherOS Version(please specify)
Summary0003828: volFieldValue-function object with 'min' operation doesn't work for scalar fields as expected
DescriptionIn OF version 9 the fieldMinMax- function object was replaced by volFieldValue -function object. If the volFieldValue -function object is used for scalar fields (e.g. 'p') the 'min' operation doesn't output any negative values. The behavior is different from version 8 where volFieldValue -function object with 'min'-operation gives the correct negative value if there are negative values present in the scalar field.
Steps To ReproduceAdd the following function objects to the motorBike-tutorial and run it:

    min_pressure
    {
        type volFieldValue;
        libs ("libfieldFunctionObjects.so");
        log true;
        writeFields false;
        regionType all;
        operation min;
        fields (p);
    }

    average_pressure
    {
        type volFieldValue;
        libs ("libfieldFunctionObjects.so");
        log true;
        writeFields false;
        regionType all;
        operation volAverage;
        fields (p);
    }

The min_pressure doesn't output negative values but the average_pressure is negative. There is obviously negative values in the 'p'-field. If you run the tutorial with OF version 8 with the same function objects the output is correct.
Additional InformationThis behavior was observed at least in Ubuntu 20.04 and 18.04.
TagsNo tags attached.

Issue History

Date Modified Username Field Change
2022-04-21 13:26 kimmo New Issue
2022-04-21 15:20 will Assigned To => will
2022-04-21 15:20 will Status new => resolved
2022-04-21 15:20 will Resolution open => fixed
2022-04-21 15:20 will Fixed in Version => 9
2022-04-21 15:20 will Note Added: 0012555