Thermodynamic Analysis of the Work Performance of a Martensitic Transformation under Stressed Conditions