Compute function at a point in dolfinx

Dear all,
How to compute a function u at a given point in dolfinx? In the past I can use compute_first_collision_point and u.eval(x, cell). Thank you.

Please search through the master branch of the git repository, as a simple search for .eval returns: https://github.com/FEniCS/dolfinx/search?l=Python&q=.eval
including the following demo, which uses dolfinx.geometry.compute_collisions_point and dolfinx.cpp.geometry.select_colliding_cells
https://github.com/FEniCS/dolfinx/blob/6c7685792b327e42e2b2830a93d0b77e190f6b02/python/demo/mixed-elasticity-sc/static-condensation-elasticity.py#L168-L173

1 Like

dokken, thank you very much