Integration involving coordinate function

Hello All,

I have a question about the integration involving coordinate function, for example if we want to integrate a \crossproduct x, where a and x are both vectors while x are the coordinate vector, what function should we use? How to extract the components of both the vector a and x? Does the crossproduct function “cross” also works in 2D?

Thanks a lot!

I would like to suggest you having a look at the ufl documentation, in particular: https://fenics.readthedocs.io/projects/ufl/en/latest/manual/form_language.html#cross
and https://fenics.readthedocs.io/projects/ufl/en/latest/manual/form_language.html#taking-components-of-tensors

Thank you very much!