viewFactor not robust
Summary
viewFactor smoothing fails if a face 'sees' zero other faces.
Steps to reproduce
Set up case with only one patch, with only face in the viewFactor. This will (hopefully) generate a map which has zero entries for that face (since there are no other faces it can see)
Example case
What is the current bug behaviour?
sigfpe from dividing by zero size.
What is the expected correct behavior?
Relevant logs and/or images
Environment information
- OpenFOAM version :v2206
- Operating system :
- Hardware info :
- Compiler :
Possible fixes
Protect division by zero.