Skip to main content

7.5) Artificial Landscape


Assigning elevations to the patches will create a topographical landscape to calculate insulation. What should the landscape look like? We obviously need some hills because the model is PV installation depending on the location of the houses. We could represent a real landscape but to start it is a good idea to create scenarios so simple that we can easily predict what should happen. Creating just one hill would probably not be interesting enough, but two hills will do. Since we have several patch variables to initialise and we like to keep the setup procedure short and understandable we create a submodel for the more complicated methods.

Add the following code to the ask patches command in the setup procedure:

ask patches
   [
   set-artificial-landscape
  ]

Click the Check button and you will get an error message saying that no set-artificial-landscape procedure has been defined. This is what we are going to do in our next step.