Forum Message

 

 

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.

Notice

The forum is in read only mode.

Strange behaviour of grad(gfu_potential)

More
4 years 8 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 3 months ago - 4 years 3 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 3 months ago by lateralthinker.
More
4 years 3 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.150 seconds