Skip to content

Bug in limitVelocity with latest release v2212 - Uname_ not set if keyword U is not specified

Summary

Hey everybody,

just found a bug in the limitVelocity fvOptions introduced with the commit 48f86809 by @kuti specifically by removing this line 48f86809

In the new version, if we don´t specify the U entry, the UName_ variable is not set and we get an warning:

--> FOAM Warning : From virtual void Foam::fv::option::checkApplied() const in file cfdTools/general/fvOptions/fvOption.C at line 137 Source limitVelocity defined for field but never used

https://develop.openfoam.com/Development/openfoam/-/blob/master/src/fvOptions/corrections/limitVelocity/limitVelocity.C#L91

What is the expected correct behavior?

Default initialisation for UName_ with "U".

Environment information

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

Possible fixes

Given above. Thanks, Tobi