Based on patch contributed by Ronald Oertel, HZDR Resolves bug-report https://bugs.openfoam.org/view.php?id=2583