I am trying to code a simple FEM problem. A bar is fixed at the bottom edge, and the top is pulled by an applied displacement. I want to apply the displacement gradually , so I have divided it into a number of steps. A rough outline of the code looks like this...