Vicuñas_pasto

Vicuñas_pasto preview image

1 collaborator

51a6d928-3ff1-453b-a3b1-7f682e07d958 Ulises Balza (Author)

Tags

ecology 

Tagged by Ulises Balza almost 2 years ago

ecosystem 

Tagged by Ulises Balza almost 2 years ago

population dynamics 

Tagged by Ulises Balza almost 2 years ago

Visible to everyone | Changeable by the author
Model was written in NetLogo 6.2.0 • Viewed 155 times • Downloaded 8 times • Run 0 times
Download the 'Vicuñas_pasto' 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?

HOW TO USE IT

THINGS TO NOTICE

THINGS TO TRY

NETLOGO FEATURES

RELATED MODELS

This model in a modification from Rabbits Grass Weeds model (Wilensky 2001).

HOW TO CITE

Please cite the NetLogo software as:

COPYRIGHT AND LICENSE

Comments and Questions

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

Click to Run Model

breed [vicuñas vicuña]
vicuñas-own [ age
              energy
]

to setup
  clear-all
  ;grow-grass
  set-default-shape vicuñas "vicuña"
  create-vicuñas number [
    set size 4
    set age 0
    set energy random 20
    setxy random-xcor random-ycor
    ]
  reset-ticks
end 

to go
  if not any? vicuñas [ stop ]
   grow-grass
   ask vicuñas
  [ move
    eat-grass
    reproduce
    death ]
  tick
end 

to grow-grass
  ask patches [
    if pcolor = black [
         if random-float 100 < grass-grow-rate
        [ set pcolor lime + 3 ]
  ] ]
end 

to move
  rt random 50
  lt random 50
  fd 1
  set energy energy - 1
  set age age + 1
end 

to eat-grass
    if pcolor = lime + 3
  [ set pcolor black
    set energy energy + grass-energy ]
end 

to reproduce

  if energy > birth-threshold
    [ set energy energy / 2
      hatch 1 [
        fd 1
        set age 0
        set energy random 20] ]
end 

to death
  if energy < 0 [ die ]
  if age > 50 [die] ;longevidad maxima
end 

There is only one version of this model, created almost 2 years ago by Ulises Balza.

Attached files

File Type Description Last updated
Vicuñas_pasto.png preview Preview for 'Vicuñas_pasto' almost 2 years ago, by Ulises Balza Download

This model does not have any ancestors.

This model does not have any descendants.