Fatigue analysis of shape memory alloys by self-heating method