Code covered by the BSD License
-
F=calulate_forcies(r,n,G,idm,...
all pairwise:
-
[id id2 nn]=invers_distancies...
all pairwise:
-
[r v n]=delete_far_points(r,v...
-
f=no_fly_away_frequency(G,mm,...
-
graph_connected_components(C)
C - connection matrix
-
v=add_rotation(v,r,f,n)
add global rotation
-
history_viewer.m
-
history_viewer_cluster.m
-
history_viewer_cluster_movie.m
-
history_viewer_old.m
-
test1.m
-
test2.m
-
View all files
|
|
| File Information |
| Description |
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 |
| Required Products |
MATLAB
|
| MATLAB release |
MATLAB 7.11 (R2010b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us