I have a solution generated in fenics to a variant of stokes flow, giving me u and P as usual.
I need to evaluate integrals on the domain that look like
v^i = \integral_Y u^i dy
I can find the area of the domain using the usual
area = assemble(Constant(1.0)*dx(mesh))
I assume using a similar expression I can find the integral for v.
Naively I tried
v[1] = assemble(Dx(u,0)*dx(mesh))
Which returned that I can only integrate scalar expressions, is there a projection required here?