If there is a vector u I can get the numpy array with
u.vector().array()
How can I get this Information out of a tensor e.g.
sigma = 2*mu*sym(grad(u)) + lamda*tr(grad(u))*Identity(w.cell().d)
I need this for computing the von Mises stress.
My second question is, how can I change a tensor at a single point?