Realtime particle simulation

版本 1.0.2 (6.7 KB) 作者: Basil Imoberdorf
This program simulates elastic collisions between particles of the same mass. Can be used for diffusion examinations or just for fun
139.0 次下载
更新时间 2022/1/30

查看许可证

This program simulates elastic collisions between particles of the same mass.
The ForecedDiffusion.m file is an advanced variant with more safeguards against anomalies. In addition, a piston is simulated in this file which is supposed to simulate a kind of mixing
The simulation is kept very simple. Most of the code is "bugfixes" that can occur under certain circumstances. Particles that stick together or leave the area. The particles only have the parameters position and velocity. there is no gravity or other forces. Feel free to expand/improve this code if you like
PS:If dont use a 2440 x 1440 Monitor u may have ot change the 'defaultFigurePosition'
PS: the normalizeMarker function can also be implemented to the code so u can get rid of that extra file. It was taken from a MathWorks forum, not coded by myself

引用格式

Basil Imoberdorf (2024). Realtime particle simulation (https://www.mathworks.com/matlabcentral/fileexchange/105970-realtime-particle-simulation), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2021b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

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

I've learned that u cant upload a .mlx file here

1.0.1

Forgot to add the .mlx ^^

1.0.0