Pelotas elásticas confinadas con procedimientos

Pelotas elásticas confinadas con procedimientos preview image

1 collaborator

Default-person Roberto Galindo (Author)

Tags

(This model has yet to be categorized with any tags)
Model group TallerMadero | Visible to everyone | Changeable by everyone
Model was written in NetLogo 5.1.0 • Viewed 215 times • Downloaded 24 times • Run 0 times
Download the 'Pelotas elásticas confinadas con procedimientos' 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

to reiniciar

  clear-all
  create-turtles (random 10 + 1) [set shape "circle" set size 2]
  ask turtles [fd 2]
  ask patches [
    if pxcor = 10 and pycor > -10 and pycor < 10 [set pcolor green]
    if pxcor = -10 and pycor > -10 and pycor < 10 [set pcolor green]
    if pycor = 9 and pxcor > -10 and pxcor < 10 [set pcolor green]
    if pycor = -9 and pxcor > -10 and pxcor < 10 [set pcolor green]
  ]

  ask patch 5 12 [set plabel "Pelotas elásticas confinadas en un recipiente cuadrado"]
  ask patch 10 -12 [set plabel "Autor: Roberto Galindo del Valle"]
  ask patch 10 -13 [set plabel "Fecha: 13-Nov-2014"]
end 

to rebotar
  fd speed
  if pcolor = green 
  [ 

    if pxcor = -10 or pxcor = 10 [ set heading (- heading) ]
    if pycor = -9 or pycor = 9 [set heading (180 - heading)]

  ]
end 

There is only one version of this model, created almost 11 years ago by Roberto Galindo.

Attached files

File Type Description Last updated
Pelotas elásticas confinadas con procedimientos.png preview Preview for 'Pelotas elásticas confinadas con procedimientos' almost 11 years ago, by Roberto Galindo Download

This model does not have any ancestors.

This model does not have any descendants.