fenics-tutorial
fenics-tutorial copied to clipboard
ft06 Plotting Displacement Problem
Hi, I'm trying to do the ft06 elasticity demo, but I am getting the following error when I run the program: *** Warning: Matplotlib plotting backend does not support displacement for 3 in 3. Continuing without plotting...
Furthermore, when I open the image file for "displacement" it seems to be empty. The other two files (magnitude and Von Mises) seem to work fine. Any thoughts on how I can fix this?
I am using Debian 10 and python 3.
Thanks!
install vtkplotter.
Then, try
from vtkplotter.dolfin import plot
done
Hi, I'm trying to do the ft06 elasticity demo, but I am getting the following error when I run the program: *** Warning: Matplotlib plotting backend does not support displacement for 3 in 3. Continuing without plotting...
Furthermore, when I open the image file for "displacement" it seems to be empty. The other two files (magnitude and Von Mises) seem to work fine. Any thoughts on how I can fix this?
I am using Debian 10 and python 3.
Thanks!
Hi, I think your code is
# Plot solution
plot(u, title='Displacement', mode='displacement')
plt.savefig('u.png')
plt.cla
Have you fixed this problem?