How to compute stresses from the adaptivity solution?

Hi there. I’m working with a plane elasticity problem using adaptivity with Fenics. I’m trying to compute the stress using the u.leaf_node() but I don’t know how to access its values in order to compute the derivative. Do you guys have any tip to help me?

Thanks in advance,

George