Thermoelastic Stress Analysis and Dissipated Energy Evaluation Using Infrared-Optical Synchronous Measurement