solar system formation 2d

版本 1.0.0.0 (8.0 KB) 作者: Maxim Vedenyov
2d balls with friction and gravitations
642.0 次下载
更新时间 2011/11/22

查看许可证

http://simulations.narod.ru/
There are 400 balls in 2d that has finite size and can pass trough each other with friction. At distances more than size they have gravitation forces. Initially system rotated slightly as global. Code well vectorized, bsxfun used.

The result of simulation is here:
http://www.youtube.com/watch?v=JhVeoHtBmkY

It is possible to see sun formation but no planets. Probably because to few points used (not enough computation power).

run test2.m to start simulation and recodring to history file. set history file name in history_viewer_cluster.m and run history_viewer_cluster.m

引用格式

Maxim Vedenyov (2024). solar system formation 2d (https://www.mathworks.com/matlabcentral/fileexchange/33878-solar-system-formation-2d), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Gravitation, Cosmology & Astrophysics 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0