Hi,
Am solving a system of pdes in fenics and need to write the the variational form. Everything looks good except a term like the following
$ \nabla \xi\nabla \cdot U $.
U=(U,V) is a vector and $\xi$ is a scalar function in 2d
So i tried the following
Multiplying by a vector function p and integrating by part I arrived at
$$ - \int (\xi\nabla\cdot U) \cdot \nabla p \space dx $$
assuming that p vanishes on the boundary. But this doesn't look right. Can someone please help with this. Any hint is highly appreciated. Thanks.