Implementation of an arbitrary Lagrangian–Eulerian method to optimise the shapes of contact surfaces. (September 2021)