Measurement on rotating mechanical component by thermoelasticity