NetLogo banner
 Home Page
 Download
 Models
 Community Models
 Extensions
 User Manual:
  Web version
  Printable version
 FAQ
 Resources
 Contact Us

NetLogo Models Library:
Code Examples

(back to the library)

Diffuse Off Edges Example

[screen shot] Run Diffuse Off Edges Example in your browser
uses NetLogo 4.0.2
requires Java 1.4.1+
(system requirements)

Note: If you download the NetLogo application, every model in the Models Library (besides the Community Models) is included. If you have trouble running this model in your browser, you may wish to download the application instead.

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)