Discrete modelling of plasticity and martensitic transformation door