Child of Molecular Self-Organization
No preview image
Model was written in NetLogo 4.1beta1
•
Viewed 345 times
•
Downloaded 34 times
•
Run 6 times
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
WHAT IS IT?
This example demonstrates how to create a square grid for turtles to walk around on using links. When turtles come into contact they merge and become one. There are still inherent problems with this - I need to use a different method (currently under construction).
Comments and Questions
Click to Run Model
breed [nodes node] breed [walkers walker] walkers-own [location grouped?] ;; holds a node to setup clear-all set-default-shape nodes "square" ask patches [ sprout-nodes 1 [ set color gray - 3.5 ;; dark gray set size 1.2 ] ] ;; connect the nodes to make a lattice ask nodes [ create-links-with nodes-on patches at-points [[0 1] [1 0] ] ] ; ask links [ hide-link ] ;; put some "walker" turtles on the lattice set-default-shape walkers "square" create-walkers 5 [ ; set color red set grouped? false set location one-of nodes move-to location ] end to go ask walkers with [grouped? = false] [ set-location one-of [link-neighbors] of location ] merge tick end to merge ask walkers [ if grouped? = false[ if any? walkers-on neighbors [ create-links-with walkers-on neighbors [tie] ask walkers-on neighbors[set grouped? true] ] ] ] end to set-location [new-location] ;; walker procedure set location new-location move-to new-location end
There are 2 versions of this model.
Attached files
No files
Parent: Molecular Self-Organization
This model does not have any descendants.
jill sweney
Any further updates? (Question)
This is pretty interesting, as I'm trying to model some similar patterns using turtles instead of patches. Have you gotten any further?
Posted about 13 years ago