how to model a collision between two particles?
3 次查看(过去 30 天)
显示 更早的评论
Im modelling planetary motion, i have a matrix with all the distances between each of the planets so i can see whether any distances are less than a certain value. How do I combine the two planets (ie so i have one mass instead of two etc).
0 个评论
回答(1 个)
Simon
2013-11-7
Hi!
If you already found a distance below some value, do you know both planets involved? If so you just add in your matrix both masses, apply the combined mass to one of the plantes and remove the other one from the matrix.
4 个评论
Simon
2013-11-7
Then you simply take one planet with the sum of both masses and remove the second planet. Your calculations continue with one less planet.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Earth and Planetary Science 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!