but it is related to the property that the mesh nodes are purely transported by th transformation.
In your case you have “removeduplicate=1” that breaks this property (the two meshes do not have the same number of nodes).
Maybe you can do it if you set “removeduplicate=0”
You don’t need to find the nodes, they follow the map as long as you keep all the nodes (and do not remove some of them).
Thus you can do in several steps:
define your square mesh and your initial periodic function u.
Transport the mesh to a meshS by movemesh23.
define a a slighly smaller square mesh, and interpolate your u on this mesh to ucut.
Transpor the mesh to a meshS S1 which is not closed (so that you keep all the nodes).
Transport ucut to us1
In the case of moving a vector (u, v) from Th to a vector (ux, uy, uz) on ThS, I assume there is no easier way – it seems we have to compute the derivative of the mapping and push forward (u, v) to the surface ThS, or there is a better idea @fb77@frederichecht ?