On Tuesday, December 12, 2023 at 6:39:31 AM UTC-7 [email protected] wrote:

I also tried to write a Python code for this purpose using vtk and 
matplotlib libraries. It works almost fine, but when I want to plot the 
mesh too, there are problems.

A while ago I used matplotlib to create vector graphics out of VTK files. 
As a reference I used this resource:
https://perso.univ-rennes1.fr/pierre.navaro/read-vtk-with-python.html
 

I used Triangulation from matplotlib.tri, but it only supports triangles 
mesh, while my mesh type is quadrilaterals.

Workarounds exist for this, see:
https://stackoverflow.com/questions/52202014/how-can-i-plot-2d-fem-results-using-matplotlib
 
Hope this helps!
Marc

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/ffc8acf9-d8e8-45a1-b9c5-ef4f3111b675n%40googlegroups.com.

Reply via email to