How to use same vector-valued mathematical expressions with both ufl and numpy?

For point evaluation, you need to specify what cell the point is in, as specified in: Implementation — FEniCSx tutorial

One can of course go through dolfinx.fem.Expression for more advanced code, such as shown in: Evaluation of UFL expression at mesh points - #2 by dokken and subsequent posts.

Other similar resources: