Modelling and numerical simulation of martensitic transformation