Code covered by the BSD License  

Highlights from
2d gas simulation interactive

4.5

4.5 | 2 ratings Rate this file 10 Downloads (last 30 days) File Size: 26 KB File ID: #24433
image thumbnail

2d gas simulation interactive

by Maxim Vedenyov

 

13 Jun 2009

It is possible to move balls with mouse. Clicked ball will get velocity of pointer.

| Watch this File

File Information
Description

It is part of the project: http://physics-toolbox.tripod.com/
Author: http://simulations.narod.ru/
2d gas simulation interactive. Program starts with window of parameters: box sizes masses velocities etc. Then simulation starts. It is possible to move balls with mouse clicking the ball. Clicked ball will get velocity of pointer. Also other controls: accelerate, random velocities etc. It is possible to return to window of parameters. Simulation window is elastic and it is possible to stretch it to fill all screen size. See move of it here:
http://www.youtube.com/watch?v=PDRt5BQ4UUw

Unzip and run rum_me.m in Matlab.

Thanks to Kotkin G. and Cherkasskiy V. for initial not intaractive simple code.

MATLAB release MATLAB 7.6 (R2008a)
Other requirements Just made in MATLAB 7.6 (R2008a). But must work in ealier version. I not checked.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
16 Jun 2009 Jackson Shen  
22 Mar 2010 Gustavo Morales

Goog work. I've been working in a 2D/3D vectorized version of "billiards", with balls having 2 collisions at the same time and falling (or not) by gravity, but your interactive simulation is better. The only advantage could have my version is that can run with hundreds of particles and not appreciably slowing down

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
2d gas Maxim Vedenyov 15 Jun 2009 10:42:55
balls Maxim Vedenyov 15 Jun 2009 10:42:55
billiards Maxim Vedenyov 15 Jun 2009 10:42:55
billiard Maxim Vedenyov 15 Jun 2009 10:42:55
education Maxim Vedenyov 15 Jun 2009 10:42:55
gui Maxim Vedenyov 15 Jun 2009 10:42:55
physics Maxim Vedenyov 15 Jun 2009 10:42:55
problem Maxim Vedenyov 15 Jun 2009 10:42:55
simulation Maxim Vedenyov 15 Jun 2009 10:42:55
dd Maxim Vedenyov 15 Jun 2009 10:42:55
virtual lab Maxim Vedenyov 15 Jun 2009 10:42:55
drag and drop Maxim Vedenyov 15 Jun 2009 10:42:55
dragndrop Maxim Vedenyov 15 Jun 2009 10:42:55
teacher Maxim Vedenyov 15 Jun 2009 10:42:55
classroom Gautam Vallabha 15 Oct 2009 14:15:49
teaching Gautam Vallabha 15 Oct 2009 14:15:50
education Gautam Vallabha 15 Oct 2009 14:15:50
balls kasun gayantha 30 Apr 2010 00:00:34

Contact us at files@mathworks.com