Strange behaviour of grad(gfu_potential)

More
5 years 3 months ago #1783 by creativeworker
Hello,

I try to take the gradient of a scalar field. When looking at the result with ParaView i see very strange Glyphs.
See the attached picture. I can't figure out where I made a mistake?

File Attachment:

File Name: Conducting...rrent.py
File Size:2 KB


With best regards,
More
4 years 9 months ago - 4 years 9 months ago #2321 by lateralthinker
Hello,

i noticed the same strange behavior when i want to visualize the <assembled> global load vector (rhs) as a GridFunction in Paraview.

Has somebody found a solution yet ?

Best regards
Last edit: 4 years 9 months ago by lateralthinker.
More
4 years 9 months ago #2322 by lkogler
When u is an order 1 H1 function, its gradient is piecewise constant, but not continuous, so you get different gradients from different elements. I think that explains the picture from your first post.

As for visualizing the rhs, did you just copy the vector into a gridfunction? That does not work, the right hand side is a dual vector, not a FEM function.
Time to create page: 0.123 seconds