Skip to content

Bug : exprField on wallShearStress returns null values

Summary

When trying to make operation (scaling) on wallshearstress components using an exprField, the return field has zero values

Steps to reproduce

using this :

wallShearStress
    {
        type        wallShearStress;
        libs ("libfieldFunctionObjects.so");
        patches     (RUwSK FL);
        writeControl   writeTime;
        executeControl  writeTime;
    }

taux
{
    #include  "../generalSettings"
    type    exprField;
    libs    (fieldFunctionObjects);
    readFields  (wallShearStress);
    field   taux;
    expression  "wallShearStress.x()/(0.5*$density*$velRef*$velRef)";
    executeControl  writeTime;
    writeControl    writeTime;
}

the result is zero also if I am not using any operation (just using "wallShearStress.x()")

Example case

What is the current bug behaviour?

Values of the resulting field is zero.

What is the expected correct behavior?

I should obtain the scaled value on the wall patches

Relevant logs and/or images

Environment information

  • OpenFOAM version : 2312
  • Operating system : Linux RHEL8.4
  • Hardware info :
  • Compiler : gcc 9.2.0

Possible fixes

Edited by Luc Bordier