loop for displacement and Stress