-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
faceNormal of UnstructuredGrid scaled with faceArea. #827
Comments
I think it is still ok to call it a normal, just not a unit normal. While it promises a little speed in the quite common case where the product of the unit normal and face area is required, I am not a big fan of the convention myself. I do not think it is trivial to change though, for the following reasons:
In the future, I think perhaps we should use the term unit normal by default for new interfaces we write because it is more precise (and of course those should not be pre-multiplied by face area).
Did you mean that it should not be called normal? |
For the record, that's intentional.
❓ That assigns more meaning to the word normal than I'm used to. |
@atgeirr: I just wanted to point out that the two implementations, @bska: I know that it is intentional, it's in the docu of UnstructuredGrid. The thing that puzzles me is that it was done the other way around in But I'm pretty sure you guys can figure out a solution for this. I actually done care all to much because I don't think that the |
Convenience for the implementation of Dune interface method |
I hope we agree on the problem that the function |
The
Perhaps this is a solution:
The second point above is necessary to return something not stored in the grid itself (scaled normals for |
On Wed, Jul 08, 2015 at 04:55:07AM -0700, dr-robertk wrote:
No. Strictly spealing, faceNormal only gives a direction and does not
If we do that then a normal scaled by the area would be handy, too. Seems |
We have in other contexts discussed other minor improvements to the function-based grid interface. Then it was said (by whom I am not sure) that we should not make any effort to improve it as it is an interim solution. I am not sure if that holds, so I'll keep this issue open as a reminder. |
The faceNormals in UnstructuredGrid are scaled with the faceAreas which is counter intuitive, because then faceNormal is not a normal anymore but a vector orthogonal to the face scaled with it' area. This is usually what is needed numerical solvers but it should be called normal.
The text was updated successfully, but these errors were encountered: