Finite element simulation of phase field model for nanoscale martensitic transformation