Skip to content

BUG: forceCoeffs: Log entries of pressure and viscous components are swapped

Summary

Reported by: @THO

Here an example:

OLD Behavior

forceCoeffs forceCoeffs write:
        Cd       : 0.8975191254 pressure: 0.8568458762  viscous: 0.04067324918
    writing force and moment coefficient files.

NEW Behavior

forceCoeffs forceCoeffs write:
    Coefficient Total   Pressure    Viscous Internal
    Cd: 0.8975191254    0.04067324918   0.8568458762    0

As you can see, pressure and viscous are vice versa compared to the old behavior and for external aerodynamics, the main part is the pressure contribution. Hence, there is some mistake either in .y() and .x() or the output should be changed from:

    Coefficient Total   Pressure    Viscous Internal

to

    Coefficient Total   Viscous Pressure Internal

Example case

$FOAM_TUTORIALS/incompressible/simpleFoam/simpleCar

Environment information

a72d4a17