Sorry for the delayed reply. With the following application you will be able to simulate 5 algorithms ive hardcoded into the program ( ive started to reprogram in java and the CUDA libraries for unloading some of the computations onto the graphics card). It's written in Game Maker, a programming application that is used for two dimensional indie games. You can simulate up to 12k particles at once, and still have around 5 fps (with java & cuda this will be multifolds faster). Here is a short manual:
restart restarts the application
pcount NUMBER
drawcircle 0 or 1
record records the positions of the paticles in an array
plot map plots the array. use this command after recording
free map frees the map from memory
free record sets all variables in density map array to zero
reset sets the position of all particles to zero
random randomizes all particle positions on screen
zoom POITIVE INTEGER zooms out by given factor
zoomin POSITIVE INTEGER
xshift POSITIVE INTEGER add blah to x value in each step to all particles (simulates moving attractor)
yshift same thing
factmap
Rfx x position of Rf (=attractor)
Rfy y positios of Rf (=attractor)
Dfx, Dfy
lockon 0 or 1 the trajectories af a single particle as an arrow
iterate 0 to 4 select which algorithm the particles should use
exit terminate application
Shortcuts:
-Pressing F1 pause/unpause the simulation, while pressing space or the middle mouse button will allow
the particles to iterate a step at a time.
-Pressing the Left mouse button and dragging it allows to move the green crosses,
you automatically move the cross which the cursor is closest to.
-The mousewheel zooms in and out
-the program automatically saves your recorded particles to a png file included with a data
sheet with the most important info + the used algorithm.
first run:
Type following command, after each command press enter. If you enter the command correctly you'll hear a high pitched ring,
otherwise a low pitched ringing sound:
iterate 0
pcount 1500
after that move one of the green crosses apart by dragging one with the lef mouse button,
now hit SPACE a few times and watch the first few iterations of the particles. Now press F1.
The green crosses (=attractors) can be moved during simulation.
if you find a particular configuration interesting and want to visualize the mean of the particle positions, you can make a
"density map" of a defined number of particle iterations:
Type the following commands:
record 3000
in the upper right corner youll see a number decreasing in value from 3000 to -1, when it reaches -1, a high pitched beep will sound.
This Indicates the end of the recording. The positions of the particles were recorded to a 2D array.
Typ the Following command:
plot map
This will now convert the array to a visible plot of the whole thing. To Free the map from memory and to free the 2d array type the following commands:
free map
free record
the first will delete the visible map, and the second command will delete the 2D array.
you can now open a PNG file of the plotted density map, wwhich should be saved somewhere on your computer, if you are using windows, if not it may be anywhere,
Try seaching for TOR_0
C:\Users\ USERNAME \AppData\Roaming\Lambda
is the windows file path.
https://www.dropbox.com/s/71lrkapqs14tq85/Stuff.zip