wall distance calculation correction for point-connected faces
Summary
On one user case (ep 1442) it was reported that applyBoundaryLayer crashes. This seems to be due to the wall distance calculation. Upon visual inspection the code was not checking for duplicate faces enough so could run out of work array in extreme cases.
Steps to reproduce
Cannot reproduce
What is the current bug behaviour?
Crash in applyBoundaryLayers, seemingly from wall distance calculation (and cellDistFuncs correction for point-connected faces)
Environment information
- OpenFOAM version : v1812
Possible fixes
- use dynamically resized lists
- use more duplicate face checking