Skip to content

MRF correctBoundaryVelocity not working with rotatingWallVelocity bc

Summary

The correctBoundaryVelocity method of the MRF does not correct the boundary velocity of a patch that has a rotatingWallVelocity boundary condition, so it just ends up having the rotatingWallVelocity condition that does not set the velocity normal to the face. For example, if I have a rim with an MRF only around the spokes, I need the rotatingWallVelocity boundary condition for the rest of the rim, but even the spokes that are inside the MRF don't have velocity normal to the face the way the correctBoundaryVelocity method should set.

What is the current bug behaviour?

The whole patch has the velocity set as rotatingWallVelocity would, disregarding the MRF.

What is the expected correct behavior?

The correctBoundaryVelocity method of the MRF should correct the velocity for the faces inside the MRF, setting the rotating velocity even if it's normal to the face.