Transformation of mechanical energy