Child of Molecular Self-Organization

No preview image

1 collaborator

Default-person Paul Sherratt (Author)


(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 4.1beta1 • Viewed 332 times • Downloaded 27 times • Run 6 times
Download the 'Child of Molecular Self-Organization' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


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

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 over 12 years ago

Click to Run Model

breed [nodes node]
breed [walkers walker]
walkers-own [location grouped?]  ;; holds a node

to setup
  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

to go
  ask walkers with [grouped? = false] 
    set-location one-of [link-neighbors] of location

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]     

to set-location [new-location]  ;; walker procedure
  set location new-location
  move-to new-location

There are 2 versions of this model.

Uploaded by When Description Download
Paul Sherratt about 14 years ago (Default description) Download this version
Paul Sherratt about 14 years ago (Default description) Download this version

Attached files

No files

Parent: Molecular Self-Organization

This model does not have any descendants.

Graph of models related to 'Child of Molecular Self-Organization'