Mycelium growth

Mycelium growth preview image

1 collaborator

Tags

bacterial growth@ 

Tagged by Jahnavi Yelamanchi over 3 years ago

Visible to everyone | Changeable by the author
Model was written in NetLogo 6.1.1 • Viewed 234 times • Downloaded 17 times • Run 0 times
Download the 'Mycelium growth' 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?

(a general understanding of what the model is trying to show or explain)

HOW IT WORKS

(what rules the agents use to create the overall behavior of the model)

HOW TO USE IT

(how to use the model, including a description of each of the items in the Interface tab)

THINGS TO NOTICE

(suggested things for the user to notice while running the model)

THINGS TO TRY

(suggested things for the user to try to do (move sliders, switches, etc.) with the model)

EXTENDING THE MODEL

(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)

NETLOGO FEATURES

(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)

RELATED MODELS

(models in the NetLogo Models Library and elsewhere which are of related interest)

CREDITS AND REFERENCES

(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)

Comments and Questions

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

Click to Run Model

breed [ nutrients nutrient ]
patches-own [ liviness ]

to setup
  ca
  create-turtles num-hyphae[
    setxy random-xcor min-pycor set heading 0 live
    set color white set size 2
  ]
  reset-ticks
end 

to setup-nutrients
  create-turtles 1000[
    set breed nutrients
    set color red set shape "circle"
    setxy random-xcor min-pycor set heading 0
  ]
end 

to grow
  ask turtles [ wiggle fd 1 live ]
  if remainder ticks branch-time = 0 [ branch ]
  tick
end 

to live
  set liviness liviness + 1
  set pcolor white
end 

to wiggle
  right random wiggle-angle
  left random wiggle-angle
end 

to branch
  ask n-of random num-hyphae turtles[
    hatch 1 [
      ifelse random-float 1.0 < 0.5 [left 45][right 45]
    ]
  ]
end 

to flow
  ask nutrients[
    cross-check
    if patch-ahead 1 != NOBODY [
    ifelse [ liviness ] of patch-ahead 1 > 0 [
      fd 1 pd][
      right random 45
      left random 45
      fd 0.1
    ]
    ]
  ]
end 

to cross-check
  move-to patch-here
  let forward-neighbors patches in-cone 10 60
  face max-one-of forward-neighbors [ liviness ]
end 

There is only one version of this model, created over 3 years ago by Jahnavi Yelamanchi.

Attached files

File Type Description Last updated
Mycelium growth.png preview Preview for 'Mycelium growth' over 3 years ago, by Jahnavi Yelamanchi Download

This model does not have any ancestors.

This model does not have any descendants.