Molecular-dynamic simulation of the thermo-mechanical treatment