Here a simple solution, it uses some field drom this discussion
If I understand well you don’t want that the movement cross the border, so there is use o graph mapper to limit to 0 the values on borders. Mass Addition is used to limit crossing of value between adjacent cells.
grid deformation.gh (19.1 KB)
With a different field
20190627_grid_deformation.gh (21.8 KB)