In a textbook of mine an operation is performed, of which I think the goal is to get zeros on the main diagonal of a matrix (the matrix represents strain). But im not sure that is the goal and Im also not sure it is accomplished.
Say vector field $u$ represents displacement, then I think my textbook says the pure shear term would be:
$$\epsilon = \frac{1}{2} [\nabla u + (\nabla u)^T ] - \frac{1}{3} \nabla \cdot u I $$
I thought the pure shear term would be:
$$\pmatrix{0,\frac{1}{2}(\frac{du_x}{dy}+\frac{du_y}{dx}) ,\frac{1}{2}(\frac{du_x}{dz}+\frac{du_z}{dx}) \cr\frac{1}{2}(\frac{du_x}{dy}+\frac{du_y}{dx}) , 0,\frac{1}{2}(\frac{du_y}{dz}+\frac{du_z}{dy}) \cr\frac{1}{2}(\frac{du_x}{dz}+\frac{du_z}{dx}) ,\frac{1}{2}(\frac{du_y}{dz}+\frac{du_z}{dy}) , 0} $$
So I thought the main diagonal terms (volumetric strain) of $\frac{1}{2} [\nabla u + (\nabla u)^T ]$:
$$\pmatrix{ \frac{du_x}{dx}, 0, 0 \cr 0, \frac{du_y}{dy}, 0 \cr 0, 0, \frac{du_z}{dz} } $$
Would be cancelled out by $- \frac{1}{3} \nabla \cdot u I$. However When I manually fill out $- \frac{1}{3} \nabla \cdot u I$ they dont seem to completely cancel out the volumetric strain because I get:
$$\nabla \cdot u = \frac{du_x}{dx}+\frac{du_y}{dy}+\frac{du_z}{dz}$$
Which is a scalar so I do:
$$- \frac{1}{3} \nabla \cdot u I = - \frac{1}{3} \pmatrix{ \frac{du_x}{dx}+\frac{du_y}{dy}+\frac{du_z}{dz}, 0, 0 \cr 0, \frac{du_x}{dx}+\frac{du_y}{dy}+\frac{du_z}{dz}, 0 \cr 0, 0, \frac{du_x}{dx}+\frac{du_y}{dy}+\frac{du_z}{dz} }$$
Either Im doing this wrong, or I dont interpret the action of this first equation $\epsilon = \frac{1}{2} [\nabla u + (\nabla u)^T ] - \frac{1}{3} \nabla \cdot u I $ correctly. So my question is: what am I doing wrong, or why is the volumetric strain not cancelled out by this?