This is far from a general example representative of your question:
Interpolating numerical values (2D numpy array) over a mesh
as the code involves dolfinx_mpc and solving a problem.
It is unclear why you need this for the problem at hand.
You should also consider the following:
and explain how your relation with the mesh nodes is assumed.
1 Like