NetLogo banner

 Home
 Download
 Help
 Resources
 Extensions
 FAQ
 NetLogo Publications
 Contact Us
 Donate

 Models:
 Library
 Community
 Modeling Commons

 User Manuals:
 Web
 Printable
 Chinese
 Czech
 Farsi / Persian
 Japanese
 Spanish

  Donate

NetLogo Models Library:
Code Examples

(back to the library)

Diffuse Off Edges Example

[screen shot]

If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web

WHAT IS IT?

Normally, the diffuse command diffuses the value of a variable over all of the patches equally. The total value of the variable across all patches remains constant. If wrapping is off, nothing special happens at the edge of the world. This code example shows to make the value disappear at or "fall off" the edges of the world.

(back to the NetLogo Models Library)