I'm trying to figure out how to carry a tensorial operation. I am not sure if I implemented correctly, as the results I get are not what I was expecting. I found these two representations in different documents:
A:
$\mathbf{H}=(\mathbf{\epsilon}\cdot \mathbf{ z})\mathbf{ z} $
$\mathbf{h}=\mathbf{H}: \mathbf{\dot\gamma} $
B:
$\mathbf{h}=\mathbf{\epsilon}_{ijl} \mathbf{ z}_l\mathbf{ z}_k \mathbf{\dot\gamma}_{jk} $
Where $\epsilon$ is the third order permutation tensor, $\mathbf z$ and $\mathbf h$ are vectors and $\dot \gamma $ and $\mathbf H $ second order tensors. I implemented B as:
$ \mathbf{h}_{i} = \sum_j \sum _l \sum _k \mathbf{\epsilon}_{ijl} \mathbf{ z}_l\mathbf{ z}_k \mathbf{\dot\gamma}_{jk} $
A does not make much sense to me, because the dot product within the brackets would yield a second order tensor, and I dont know how you can get a second order tensor from a second order tensor and a vector. Furthermore, the double inner product between two order tensors should yield an scalar and not a vector. Am I correct?
If you are wondering, the context is fluid mechanics, particularly to find the hydrodynamic torque on an elongated particle, it is the contribution to the torque from the rate of strain ($\dot \gamma$) which tries to align the particle along its principal direction. $\mathbf{z}$ is the normalized particle orientation. I see it as the projection of the dyadic product of the orientation vector to the rate of strain tensor.
Thanks!