Parameter | Input | Description |
---|---|---|
m | Mass of each string segment | |
l | Natural length of the string as a fraction of the length of the box | |
k | Resistance to motion | |
λ | Modulus of elasticity | |
s(x) | Initial position of each string segment as a function of x | |
v(x) | Initial velocity of each string segment as a function of x | |
dt | Time step size | |
steps | Amount of time steps to process for each update |