I have calculated Stress and Hydrostatic stress again while calculating gradient of Hydrostatic stress It becomes Zero, Can anyone point out my mistake,
def h_term(c_old,u_old):
term1 = 0.5*(grad(u_old) + grad(u_old).T) - Omega*c_old*Identity(2)
sigma = (E*term1)/(3*(1-2*nu))
sigma_h = (tr(sigma) + nu*tr(sigma))/3
h_term = grad(sigma_h)
return h_term
here c_old and u_old is the previous time step solution and I am solving Plane strain problem.
Thanks in advance