Calculating j-integral over a path

Hi every one,
has anyone calculated j integral for fracture mechanics using fenics?

hello, have you solved the problem? I met the same problem now, and i don’t know how to solve it.