An automated approach for solution based mesh adaptation to enhance numerical accuracy for a given number of grid cells