study the twist of a rope by simulation