#1354 centerUnitOuterNormal() in UGGrid points in the wrong direction
Metadata
Property | Value |
---|---|
Reported by | Eike Mueller (em459@bath.ac.uk) |
Reported at | Sep 17, 2013 15:12 |
Type | Bug Report |
Version | 2.2 |
Operating System | Linux |
Last edited by | Oliver Sander (oliver.sander@tu-dresden.de) |
Last edited at | Sep 17, 2013 20:51 |
Closed by | Oliver Sander (oliver.sander@tu-dresden.de) |
Closed at | Sep 17, 2013 20:51 |
Closed in version | Unknown |
Resolution | Not a bug |
Comment |
Description
centerUnitOuterNormal() appears to return a vector which points in the wrong direction when it is used with UGGrid. I tested this with the attached code, which (for each intersection) calculates the scalar product of centerUniOuterNormal() and the distance between the centres of the intersection and the cell corresponding cell.
The grid is read from the attached macro .dgf file and refined once; the code can be called with
test_ugcenterunitouternormal
In some cases this scalar product is negative, which is shouldn't be.
I used DUNE version 2.2 and UG with the latest patch (UG-3.9.1-patch10).