Skip to content

forceCoeffs FO: pitchAxis keyword has no effect

When using the forceCoeffs function object, it seems that the pitchAxis keyword has no effect. It is always set to coordSys_.e2()

How to reproduce

  • Example 1: Run the tutorial: $FOAM_TUTORIALS/incompressible/simpleFoam/simpleCar
  • Example 2: Run the tutorial: $FOAM_TUTORIALS/compressible/sonicFoam/RAS/nacaAirfoil

Set the pitchAxis to some vector , the output in postProcessing directory will ignore that and prints the e2 vector instead.

Checking the source code of the FO, it appears that pitchAxis keyword is not read. So, the presence of this keyword in the tutorials dir is misleading.

Running:

grep -r 'pitchAxis' $FOAM_TUTORIALS

Returns 7 tutorials using that keyword.

OpenFOAM version

  • OpenFOAM v2106 on Ubuntu 20.04
Edited by s1291