This code simluates the trajectories of particles accoridng to newtons laws of motion. However, the forces between particles is not based on gravity or Lennard-Jones forces but from simple trigonometric functions like sine and cosine. The distance between the particles, r, is used as input for the force function. By changing inital positions and a scaling parameter, a, different results can be achieved.
F = sin(a*r)
The coloring is based on the relative velocity of the particels. The current fastest particle is red and the slowest is blue. The rest is in between.
00:00 F = sin(0.012*r) sym. Triangle
00:33 F = cos(0.032*r) 40x40
01:23 F = sin(0.12*r) asym. Triangle
01:56 F = sin(0.12*r) changing, sym. Triangle
02:29 F = cos(0.028*r) 40x40
03:19 F = sin(0.12*r) asym. Triangle
03:36 F = sin(0.12*r) sym. Triangle
Code written in Matlab.