A uniaxial model for shape-memory alloys