A mesh generation procedure for optimisation in Computational Fluid Dynamics