We have moved the forum to https://forum.ngsolve.org. This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.
maybe a trivial question, but how is grad(u) for u being a P1 function defined on the mesh edges (since it might be discontinuous), especially when evaluating at the nodes?
gradients are always evaluated element-wise.
when you say grad(u), distributional parts (i.e. jumps across edges) are ignored.
the gradient is a discontinuous function, it has different values on different elements connected to a vertex.