Extract components facet normal outer unit normal vector

Hello Everyone,
I would like to convert the outer unit normal vector field obtained by

nu=FacetNormal(mesh)

into a numpy array. Intuitively, I tried

nu_numpy=nu.vector().get_local()

but I am returned an error message stating that FacetNormal objects do not admit the attribute vector(). I tried to replace vector() by array() but, alas, the result is still the same.

Do you know how to solve it?

Thanks in advance and best regards.

See for instance: How to plot normal unit vector of faces in a 2D mesh?

1 Like

Thank you very much! It is the perfect solution.