A quasi-stationary temperature field in the shaft of an operating well