How to Do Friction Using Script

Dear Materials Studio Users,

I have been working on the friction simulation of epoxy network recently. The way I'm doing now is to use Translate command to move the upper layer horizontally while giving an external normal loading to the upper layer under NVT Dynamics. I set a loop to run Dynamics for 1 ps with the Translate of 0.1 A each time such that I can get 0.1 A/ps velocity of the upper layer. In each loop, I output the frame every 0.5 ps. That will result in 3 frames in each Dynamics loop. Overall, I set 800 times of the loop to get 80 A sliding distance totally. However, after the whole simulation is done, the upper layer only has a movement of several A. I would like to ask the reason to cause it. Is that possibly because every time after the upper layer is moved by Translate command, the Dynamics operation can relax the system and somehow the epoxy network in the middle "drag" back the upper layer? Should I use Fix command to fix the upper layer in each loop after the upper layer moves 0.1 A? Can anyone help me solve this problem? Thank you very much! (The figures below show the model before and after the friction process and the commands of giving the external force and the horizontal movement.)