Skip to content

nutUblended wall function gives rise to pressure spikes for a periodically pitching airfoil

Summary

For a periodically pitching airfoil the nutUBlended wall functions gives rise to pressure spikes. The reason is the line

const scalar uTauLog = kappa_*magUp[facei]/log(E_*yPlus);

I changed it to

const scalar uTauLog = kappa_*magUp[facei]/log(max(E_*yPlus,1+1.0e-04));

and the pressure spikes disappeared.wingMotion2D.tar.gz

Steps to reproduce

I added a small example case. Python script to plot Cp, Cd and Cm is included

Example case

I added a small example case

What is the current bug behaviour?

What is the expected correct behavior?

Relevant logs and/or images

Environment information

  • OpenFOAM version : v2012
  • Operating system :
  • Hardware info :
  • Compiler :

Possible fixes