How to interpolate the solution at arbitrary points

Hello, I’m using dolfinx_mpc v0.6.1.post0 of the docker image.
I’m new to FEniCSx and not familiar with English, so I apologize if the text is hard to read.

My question is,
Is there any way to obtain the interpolation of the solution at arbitrary points, given a solved FunctinSpace?

I want to obtain the solution at rectangular grids, given (solved) FunctionSpace at the mesh shown below.

You can get the solution at any point inside the mesh by using eval, see for instance
https://jsdokken.com/dolfinx-tutorial/chapter1/membrane_code.html#making-curve-plots-throughout-the-domain
Getting the solution outside the computational requires extrapolation, which can be implemented (But it is not as straightforward as Eval).

1 Like

Thank you so much!
I could calculate the solution.