Hi, I want to plot the deformation map of a 2D elasticity problem.
I tried the following code, but it does not work, last line of code bring following error message : All terms in form must have same rank.
W = TensorFunctionSpace(mesh, "Lagrange", 2)
F = grad(u) + Identity(2)
E = 1/2*( F.T*F-Identity(2))
Ep=project(E,W)
Thank you in advance for your help, and for any references concerning the plot function.