A temperature-dependent beam for shape-memory alloy: constitutive modelling, finite element implementation and numerical simulations