# NTNUJAVA Virtual Physics LaboratoryEnjoy the fun of physics with simulations! Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

## Easy Java Simulations (2001- ) => dynamics => Topic started by: ahmedelshfie on June 09, 2010, 12:15:35 am

 Title: N connected spring in vertical direction (with gravity) Post by: ahmedelshfie on June 09, 2010, 12:15:35 am This following applet is N connected spring in vertical direction (with gravity)Created by prof Hwang Modified by AhmedOriginal project N connected spring in vertical direction (with gravity) (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=361.0)This center spring in this applet simulate the above situation.The spring force $F(x)=-k (x-x_0)$ where $x_0$ is the equilibrium position.The damping force is assumed to be $-b *\vec{v}$ , where b is the damping constant.In the following there are n springs in the simulation, the mass at two ends only experience one force from the spring.Howerer, the other particles in between experience two forces from two springs at different side.For the nth particle (n!=0 and n!=N-1), where N is the total number of the springAssume y for the n-th particle is y_n,The n-th sprint force $F_n =-k (y_{n}-y_{n+1}-L_0) -k (y_{n-1}-y_{n}-L_0)= k(2y_n- y_{n+1}-y_{n-1})$If you unchecked the fixed checkbox, the center spring will be released and fall down.You can adjust b value, adjust mass or spring constant to find new equilibrium positions.You can drag any particles up/down, too!uncheck fixed checkbox and click play to find the answer to the above question.