- Thank you received: 0
Strange behaviour of grad(gfu_potential)
- creativeworker
- Topic Author
- Offline
- Senior Member
Less
More
5 years 3 months ago #1783
by creativeworker
Strange behaviour of grad(gfu_potential) was created 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?
With best regards,
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?
With best regards,
Attachments:
- lateralthinker
- Offline
- New Member
Less
More
- Thank you received: 0
4 years 9 months ago - 4 years 9 months ago #2321
by lateralthinker
Replied by lateralthinker on topic Strange behaviour of grad(gfu_potential)
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
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
Attachments:
Last edit: 4 years 9 months ago by lateralthinker.
4 years 9 months ago #2322
by lkogler
Replied by lkogler on topic Strange behaviour of grad(gfu_potential)
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.
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