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.