Simulating Coliding Springs - Is it possible without invoking conservation laws?

Click For Summary
SUMMARY

The discussion revolves around simulating the collision of two damped springs within a frictionless pipe, specifically addressing the challenge of interpenetration during the simulation. Tom proposes adjusting the positions of the springs' ends by averaging their endpoints, which he believes would maintain conservation of momentum and energy. However, he acknowledges potential inaccuracies due to differing parameters (L, k, m) of the springs. The conversation highlights three methods for correcting interpenetration, with Tom concluding that naive averaging may not yield accurate results due to the dynamics of spring behavior.

PREREQUISITES
  • Understanding of damped spring dynamics
  • Familiarity with conservation laws in physics
  • Knowledge of simulation techniques in computational physics
  • Basic principles of center of mass calculations
NEXT STEPS
  • Research advanced techniques for simulating collisions in physics engines
  • Explore the mathematical modeling of damped springs and their interactions
  • Learn about numerical methods for resolving interpenetration in simulations
  • Investigate the implications of varying spring constants on simulation accuracy
USEFUL FOR

Physics simulation developers, computational physicists, and anyone interested in accurately modeling dynamic systems involving springs and collisions.

cfp
Messages
9
Reaction score
0
Hi,

I am working on a simulation and I have a problem of similar nature to the following:

Consider a horizontal frictionless pipe containing two damped springs with the same diameter as the pipe. Suppose both of the springs are moving horizontally through the pipe, one faster than the other; so eventually they will collide.

Now imagine we're simulating this situation, and suppose step N is the first step in which the two spring interpenetrate.

Clearly the positions of the ends of the two springs have to be adjusted to remove the interpenetration.

I have a strong (non-justified) hunch that just taking the average of the end points, perhaps weighted by the springs masses would be accurate enough.

Furthermore, if I did this it seems at least like I'd get conservation of momentum and conservation of energy for free.

Can anyone tell me why this would be grossly inaccurate?

Thanks a lot,

Tom
 
Physics news on Phys.org
The spring constants and the length of the springs would also be needed.
If the paramenters (L,k,m) of the two springs ar different, you could be way off. It should not be too hard to write down the correct equations.
 
For what I'm simulating getting analytic solutions isn't really feasible. There will be several thousand springs, many connected to each other, and all free to move in 2D space.

My thought was that given interpenetrating springs, there are three ways of correcting it:

1) You do what I originally suggested and just adjust the positions of the interpenetrating ends in a naive way (e.g. take their average).
2) You keep the centre of mass where it ended up, and bring in all end positions as much as is necessary to remove the interpenetration.
3) You keep the far ends fixed and adjust the interpenetrating ends to the positions they would converge to at infinity under these constraints.

Now 2) will result in the far ends of the spring being contracted as well, which is clearly wrong. In fact it is clearly wrong for the centre of mass to stay in the same place, if we were solving continuously the centre of mass would not have come as far as it did before the collision ocurred.

And 3) seems grossly wrong because in reality it would take the spring a long time to settle to the value we would be setting it too. Very different to a 1/60th of a second time step!

Can anyone illuminate this any further?

Thanks,

Tom
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
5K
Replies
4
Views
2K
  • · Replies 175 ·
6
Replies
175
Views
28K