GalaxyModel

버전 1.2.0.0 (1.06 MB) 작성자: Haihong
This is an n-body gravitational simulation, where Verlet algorithm and Octree method are applied.
다운로드 수: 257
업데이트 날짜: 2016/1/1

라이선스 보기

1. You may run the scripts to see the examples.
2. You may also use your own case.
3. Your own case should be a struct array whose elements represent bodies’ initial states. Each element (body) contains 4 fields: mass (a positive scalar), position (a 1-by-3 vector, relative to the origin point), velocity (a 1-by-3 vector), and acceleration (a 1-by-3 vector).
You may check the examples in these scripts and in the folder TestCase.
Visualization-related settings are in the class Viewer. You may modify the code to see what happens :)
(a) marker size, (b) axis limit, (c)choice of whether fixed axis is applied, (d) choice of whether minor grid is displayed, (e) choice of whether stars’ trails are displayed, and (f) choice of whether star 1 is highlighted.
4. Note that this program cannot handle collisions - they just "pass through" each other (not true in reality). The script Script2starCollision shows what would happen in this situation.
5. Just a prototype, may has some bugs. Ctrl+C to terminate the program.

인용 양식

Haihong (2024). GalaxyModel (https://www.mathworks.com/matlabcentral/fileexchange/54355-galaxymodel), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2015a
모든 릴리스와 호환
플랫폼 호환성
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.2.0.0

Included a technical note.
Added a new tag.
Added a snapshot:)
Modified the description.
Included a technical note.

1.1.0.0

Changed the description.

1.0.0.0

Minor changes.