Advancing front grid generation with analytical control functions