Logo by Pauldelbrot - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. April 16, 2024, 06:43:40 AM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: 1 [2]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: An algorithm  (Read 4188 times)
0 Members and 1 Guest are viewing this topic.
Mark
Forums Newbie
*
Posts: 7



« Reply #15 on: May 02, 2014, 07:35:14 PM »

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:
Code:
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
Logged
Pages: 1 [2]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
New Coloring Algorithm Images Showcase (Rate My Fractal) fractalwizz 1 1873 Last post November 06, 2008, 07:23:41 AM
by lycium
Alternative rendering Algorithm? General Discussion tomot 1 3810 Last post March 24, 2011, 01:15:02 AM
by David Makin
Diamond-square algorithm help Help & Support kronikel 10 1805 Last post April 12, 2011, 02:11:06 AM
by kronikel
fractal algorithm General Discussion lajevardi.am 3 2728 Last post March 11, 2012, 09:24:14 AM
by DarkBeam
Web version of Dr. Lawlor's algorithm IFS - Iterated Function Systems ablaze 3 4443 Last post March 06, 2017, 12:47:09 PM
by tit_toinou

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.126 seconds with 24 queries. (Pretty URLs adds 0.005s, 2q)