Temperatures in sliding and machining processes with distributed heat sources in the subsurface