- #1
cfp
- 10
- 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
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