Lesson 4 Activity 2 - Develop your model

In this lesson students will create the model from their original design. There is a wide range of projects you could propose - varying from simple to very difficult. Part of the task will be choosing a project that can be completed within the given time frame.
  • Using your original design for a computational science project, complete your project design form
  • Select an option or come up with one of your own
  • Implement your project design.
  • Add features needed for the project alternatives
    • Change the pump depth
    • Change the pump head surface area
    • Add even more pumps, or
    • Add different substrates
Your challenge:
It is important to explore and become accustomed to programming without explicit instructions. So try out the challenges listed above or try to implement your own design and see how far you can get.  Here are some suggestions we give to students to get started.

Agents and environment
  • The students should first create code that adds in their agents and any modifications to the environment they want. This will usually include adding new breeds, and creating agents (see cookbook page). New breed specific variables can be created in the edit Breeds panel.
  • Once agents are created, they will need to have their variables initialized. Agents have different shapes, colors, and sizes.
  • Next, if changes to the environment are needed, agents can be created and used to edit the terrain during the start up phase.
  • Agent behaviors can be implemented as procedures on the breed page corresponding to the agent.
 Interactions
  • The students should then create code that gives their chosen agents behaviors and interactions with other agents and the environment.
  • See the cookbook pages for descriptions of different interactions that can be implemented.
If you get stuck -- or, after you've finished, to compare your solutions to others found in the public galleries.