Simulink Galaxy Simulation with Particle Count and Velocity Outputs

版本 1.0.1.0 (39.5 KB) 作者: Nhan Ngo
This is a modification to sldemo_eml_galaxy that gives particle count data and velocity.
114.0 次下载
更新时间 2018/5/13

查看许可证

This is a modification to the demo found here.
https://www.mathworks.com/help/simulink/examples/spiral-galaxy-formation-simulation-using-matlab-function-blocks.html
It allows the user to select one of the galaxies, a bounding radius in parsecs, and will give the amount of particles within the bounding radius when the end time is arrived at. This allows the user to simply find the relative distribution of a galaxy due to a galactic interaction.
Each galaxy contains 1000 particles. The initial positions, velocities, mass, and radii can be inputted.
The x, y, and z velocities are also shown.

If you require only 2 galaxies, you can delete the third "construct galaxy block" and all its constituent inputs and traces, and it will run the same.

If you require more than 3, you can copy the "construct galaxy" block and its inputs, and then hook the output up to the "matrix concatenation" block.

The amount of particles initially in each body can be altered by double clicking on the "construct galaxy" block and inputting a "numberOfBodies" field.

It is recommended that the user reads the README document attached.

I am fairly sure this will work with releases newer than Simulink 8.9, but contact if it does not.

I will modify it to make it easier to use in the future.

Please contact with issues or comments.

引用格式

Nhan Ngo (2024). Simulink Galaxy Simulation with Particle Count and Velocity Outputs (https://www.mathworks.com/matlabcentral/fileexchange/67312-simulink-galaxy-simulation-with-particle-count-and-velocity-outputs), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2017a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Dynamic System Models 的更多信息

Community Treasure Hunt

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

Start Hunting!

Galaxy Simulation/

版本 已发布 发行说明
1.0.1.0

Updated readme

1.0.0.0