You need to use dolfinx.fem.Expression in the interpolation, see
dolfinx.fem.Expression
and to move the mesh use
deformation_array = u.x.array.reshape((-1, mesh.geometry.dim)) mesh.geometry.x[:, :mesh.geometry.dim] += deformation_array
as done in