Global existence for the three-dimensional Frémond model of shape memory alloys