I'd like to discretize the following system of PDEs (left hand side):
A dq/dx + B dq/dy
where A and B are simple 5x5 arrays of scalar coefficients (Expression).
q and q test belong to 5-D VectorFunctionSpace. Mesh dimension is obviously 2D.
In my opinion LHS will be as follows:
(dot(A, vector_of_x_derivatives_of_q)+dot(A, vector_of_y_derivatives_of_q))qtestdx
but I end up with shape mismatch.
I think the problem lies in taking vector of derivatives instead of full gradient, which would be 2nd rank tensor.
I've tried grad(q)[:,0] but did not work...