Moths combines a heat diffusion model with agents to create a complex Sim World Model. This model mimics the behavior of moths being attracted to light. The agents are attracted to cells with higher values of heat, so they move towards the center at the beginning of the simulation, but slowly disperse as the heat diffuses. This model is a good example of a dynamic model that evolves over time and also provides a good template for showing interaction between agents and cells. Notice that the underlying cell structure of moths is almost identical to that of the diffusion model. Moths is a great example of using components of simpler models to build a more complex one.

Nova Online: Moths (opens in new tab)

Running this model:
1. Click on the “Capture” button in the tool bar.
2. Click “Load” next to “Capture.”
3. Click “Exec” to run the model through multiple iterations. Click “Stop” to stop the graph.
4. To run the model step by step, click “Capture,” “Load,” “Init,” then “Step.”