Sunflower

Sunflower preview image

1 collaborator

Uri_dolphin3 Uri Wilensky (Author)

Tags

biology 

Tagged by Reuven M. Lerner over 11 years ago

Model group CCL | Visible to everyone | Changeable by group members (CCL)
Model was written in NetLogo 5.0.4 • Viewed 450 times • Downloaded 87 times • Run 0 times
Download the 'Sunflower' modelDownload this modelEmbed this model

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


WHAT IS IT?

The interlocking spirals found in the seeds, petals and even branches of many plants occur naturally through the growth of the flower. This model attempts to demonstrate the growth of these naturally occurring spirals.

When a new seed emerges, the older ones grow slightly and move further from the center--the source--and the youngest seed finds the largest gap between existing seeds, in which it can grow. This gap can be found by turning counter clockwise. The angle made by this turn is a multiple of the golden ratio (1.618). The golden ratio, based on the Fibonacci series (1, 1, 2, 3, 5, 8, 13...), equals the limit of F(n)/F(n-1). Thus, these spirals can be mathematically generated, using the golden ratio.

HOW IT WORKS

For each clock-tick, a new turtle (can be seen as a seed or a petal) is created. As in nature, the turtle finds the appropriate position and begins growing. The 'appropriate position' is defined as the number of clock-ticks times the 'turn increment'. All of the other existing turtles move forward and grow slightly, with each clock-tick. If a turtle gets too close to the edge of the world, it dies.

HOW TO USE IT

The NUM-COLORS slider controls how many colors the turtles can be. (Using this will make some of the spirals stand out more, other stand out less.)

The STEP-SIZE slider controls how far away the turtle moves from the center, for each clock-tick.

The TURN-INCREMENT slider dictates the degree that each new turtle will turn to set its position in the spiral.

The SET TURN-INCREMENT buttons help to set the TURN-INCREMENT slider to specific values at and around the golden ratio. They are simply there to help achieve precision that can be difficult with the slider.

THINGS TO NOTICE

Think about the spirals that you see. How many different ways can you make a pattern of spirals?

THINGS TO TRY

How does adding colors change the spirals you see? Does this change the phenomena, or only what you see?

EXTENDING THE MODEL

Make the spirals go counter-clockwise.

Make the model draw your favorite flower's petal or seed pattern. For example, a buttercup or columbine could be made by creating 5 large petals of the appropriate colors.

In nature, real plants don't have the golden ratio "programmed" into them. Rather, the spirals form as the result of an emergent process, described in Conway and Guy's book (see below) and other sources. Can you extend this model to capture this emergent process?

NETLOGO FEATURES

Note in the code that the turtles "die" when they get too far from the center of the world, so they make a circular pattern.

CREDITS AND REFERENCES

This is based on pp. 113-24 of John H. Conway and Richard K. Guy's "The Book of Numbers".

HOW TO CITE

If you mention this model in a publication, we ask that you include these citations for the model itself and for the NetLogo software:

  • Wilensky, U. (2003). NetLogo Sunflower model. http://ccl.northwestern.edu/netlogo/models/Sunflower. Center for Connected Learning and Computer-Based Modeling, Northwestern Institute on Complex Systems, Northwestern University, Evanston, IL.
  • Wilensky, U. (1999). NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern Institute on Complex Systems, Northwestern University, Evanston, IL.

COPYRIGHT AND LICENSE

Copyright 2003 Uri Wilensky.

CC BY-NC-SA 3.0

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.

Commercial licenses are also available. To inquire about commercial licenses, please contact Uri Wilensky at uri@northwestern.edu.

This model was created as part of the projects: PARTICIPATORY SIMULATIONS: NETWORK-BASED DESIGN FOR SYSTEMS LEARNING IN CLASSROOMS and/or INTEGRATED SIMULATION AND MODELING ENVIRONMENT. The project gratefully acknowledges the support of the National Science Foundation (REPP & ROLE programs) -- grant numbers REC #9814682 and REC-0126227.

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

;; setup is called once at the beginning of each run
;; it clears the world and resets the tick counter

to setup
  clear-all
  reset-ticks
end 

;; hatch a new turtle and set its color and direction.
;; then each turtle moves forward by step-size, increases
;; its size and if it is on the edge of the view, dies.

to go
  crt 1
  [
    set color 10 * (ticks mod num-colors) + 15
    set size 0.6 * sqrt distancexy 0 0
    set heading ticks * turn-increment * 360
  ]
  ask turtles
  [
    fd step-size
    set size 0.6 * sqrt distancexy 0 0
    if distancexy 0 0 > max-pxcor
      [ die ]
  ]
  tick
end 


; Copyright 2003 Uri Wilensky.
; See Info tab for full copyright and license.

There are 10 versions of this model.

Uploaded by When Description Download
Uri Wilensky over 11 years ago Updated to NetLogo 5.0.4 Download this version
Uri Wilensky about 12 years ago Updated version tag Download this version
Uri Wilensky about 12 years ago Updated to version from NetLogo 5.0.3 distribution Download this version
Uri Wilensky almost 13 years ago Updated to NetLogo 5.0 Download this version
Uri Wilensky over 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 14 years ago Model from NetLogo distribution Download this version
Uri Wilensky over 14 years ago Sunflower Download this version

Attached files

File Type Description Last updated
Sunflower.png preview Preview for 'Sunflower' over 11 years ago, by Uri Wilensky Download

This model does not have any ancestors.

This model does not have any descendants.