You can set paramater of number of particles, movoment velocity and the parameter of force field function. In this simulator, the positions are calculated recurrently by this function.

Positiont+1(x,y)=v*Force(x,y)+Positiont(x,y)

Force(x,y)=Σ(i≠j) v*Vectorij(x,y)*Log(Distanceij/d)/(Distanceij/d)

Vectorij(x,y)=Positiont,j(x,y)-Positiont,i(x,y)

Distanceij=|Vectorij|

You can see the particles gathering to a circle formation. It is because all particles attract each other to the distance of d value, however, particles nearer than d value are distracted.


Number of Points

v : Moving Velocity

d : Best Distance