Hi,
I have calculated my shear stress 'sigma' using the pressure and velocity calculated from Navier-Stokes solver as follows,
n = FacetNormal(mesh)
W = TensorFunctionSpace(mesh, "Lagrange", 2)
sigma = project(-p*I + 2.0*nu*sym(grad(u)),W)
Traction = dot(sigma,n) #sigma*n
My problem is that I would like to know the Traction (force per unit area) as a vector Tx,Ty,Tz at all points in the mesh. How do I do this? when I try to print Traction[0] or Traction[1], I get ,
((({ A | A_{i_{10}, i_{11}} = I[i_{10}, i_{11}] * -1 * f_60[2] }) + ({ A | A_{i_{12}, i_{13}} = (sym(grad([f_60[0], f_60[1]])))[i_{12}, i_{13}] * 2.0 * f_29 })) . (n))[0]
instead of values.
Thanks