Lesson 4 Activity 2 - Create your own greenhouse gas model
In this lesson students will create the model from their original design. There is a wide range of projects students 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.
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 to get started.
Agents and environment
Solutions:
If you get stuck or finish your project and would like to see how we made additions to the model, you can view these videos. BUT PLEASE, try to build your design first.
Run the factory for limited amounts of time.
Add cars and other vehicles that emit CO2.
- 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.
- Learn about how to add features needed for the project alternatives
- run the factory for limited amount of time
- add cars and other vehicles
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 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.
- 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.
Solutions:
If you get stuck or finish your project and would like to see how we made additions to the model, you can view these videos. BUT PLEASE, try to build your design first.
Run the factory for limited amounts of time.
Add cars and other vehicles that emit CO2.