Please state what you are trying to achieve. To me this does not really make sense, as you are trying to multiply the gradient of a tensor (3rd order tensor) with a vector. What shape should this become?
I want to mutiply a rank 3 tensor with a vector indeed.
But I just noticed that the mwe that I postet doesn’t make sense.
I can make a correct mwe, but what I basically have is a variational formulation, where my trial function - which is a vector - is mutiplied with a rank 3 tensor like this:
grad_J[i,j,k] * u[j]
The problem is that using ufl index notation doesn’t seem to be applicable to trialfunctions.