I’m working with an equation that has a term like this
where u_i is the function I want to solve for, hich is a vector, and \phi is a scalar function.
My question, is how does Fenics interpret the product of two grads? If the term on the right hand side would translate, for a test function w_i, as:
can I write that in Fenics as
inner(grad(\phi)*grad(\phi) , grad(w))*dx
inner( outer(grad(\phi) , grad(\phi)) , grad(w) )*dx
Or are those two things the same for Fenics?