|
13 | 13 | "source": [ |
14 | 14 | "The next step is to add a region which we will call `R2`, however, this could equally be called `USA` or `India`. This requires us to undertake a similar process as before of modifying the input simulation data.\n", |
15 | 15 | "\n", |
16 | | - "<!-- These regions do not have any energy trade. -->\n", |
17 | | - "\n", |
18 | 16 | "This tutorial will follow on from the model in tutorial 1 (including the price change in 2040, but before adding the second agent in tutorial 2). To begin, copy your files from tutorial 1 to a new location.\n", |
19 | 17 | "\n", |
20 | 18 | "To add a new region, we begin by modifying the ```settings.toml``` file. We just have to add our new region to the ```regions``` variable, in the 4th line of the file, like so:\n", |
21 | 19 | "\n", |
22 | | - " regions = [\"R1\", \"R2\"]\n", |
| 20 | + "```toml\n", |
| 21 | + "regions = [\"R1\", \"R2\"]\n", |
| 22 | + "```\n", |
23 | 23 | "\n", |
24 | 24 | "The process to change the input files, however, takes a bit more time. To achieve this, there must be data for each of the sectors for the new region. This, therefore, requires the modification of every [input file](../inputs/index.rst).\n", |
25 | 25 | "\n", |
|
32 | 32 | "source": [ |
33 | 33 | "Effectively, for this example, we will copy and paste the results for each of the input files from region `R1`, and change the name of the region for the new rows to `R2`. \n", |
34 | 34 | "\n", |
35 | | - "<!-- However, as we are increasing the demand by adding a region, as well as modifying the costs of technologies, it may be the case that a higher growth in technology is required. For example, there may be no possible solution to meet demand without increasing the ```windturbine``` maximum allowed limit. We will therefore increase the allowed limits for ```windturbine``` in region `R2`. -->\n", |
36 | | - "\n", |
37 | 35 | "We have placed two examples as to how to edit the residential sector below. Again, the edited data are highlighted in **bold**, with the original data in normal text. \n", |
38 | 36 | "\n", |
39 | 37 | "For the sake of brevity, we have omitted the entries for 2040 for the `CommIn.csv` file, however, just make sure to copy and paste the values for 2020 to 2040 here. The full file can be seen [here](https://github.com/SGIModel/MUSE_OS/blob/main/docs/tutorial-code/3-add-region/1-new-region/technodata/residential/CommIn.csv). \n", |
|
58 | 56 | "|**gasboiler**|**R2**|**PJ/y**|**10**|**5**|**0**|**0**|**0**|**0**|**0**|\n", |
59 | 57 | "|**heatpump**|**R2**|**PJ/y**|**0**|**0**|**0**|**0**|**0**|**0**|**0**|\n", |
60 | 58 | "\n", |
61 | | - "We will follow a similar process in the ```/technodata/power/Technodata.csv``` file, copying the lines from `R1` to create `R2`. In this tutorial we will test the scenario where `windturbine` in `R2` has increase capacity limits compared to `R1`, which is highlighted below in bold. The rest of the elements are the same for `R1` as they are for `R2`.\n", |
| 59 | + "We will follow a similar process in the ```/technodata/power/Technodata.csv``` file, copying the lines from `R1` to create `R2`. In this tutorial we will test the scenario where `windturbine` in `R2` has increased capacity limits compared to `R1`, which is highlighted below in bold. The rest of the elements are the same for `R1` as they are for `R2`.\n", |
62 | 60 | "\n", |
63 | 61 | "Again, we don't show the entries for 2040, apart from the edited windturbine row, for the sake of brevity.\n", |
64 | 62 | "\n", |
|
74 | 72 | "|solarPV|R2|2020|…|2|1|60|…|1|\n", |
75 | 73 | "|...|...|...|...|...|...|...|...|...|\n", |
76 | 74 | "\n", |
77 | | - "Now, go ahead and amend all of the other input files for each of the sectors by copying and pasting the rows from `R1` and replacing the `RegionName` to `R2` for the new rows. All of the edited input files can be seen [here](https://github.com/SGIModel/MUSE_OS/tree/main/docs/tutorial-code/3-add-region/1-new-region)." |
| 75 | + "Now, go ahead and amend all of the other input files for each of the sectors by copying and pasting the rows from `R1` and replacing the `RegionName` to `R2` for the new rows. You must also modify the `BaseYearExport.csv`, `BaseYearImport.csv` and `Projections.csv` files in the `input` folder in a similar way. In this example we won't include any trade between regions, so all values in `BaseYearExport.csv` and `BaseYearImport.csv` should be left as zero.\n", |
| 76 | + "\n", |
| 77 | + "All of the edited input files can be seen [here](https://github.com/SGIModel/MUSE_OS/tree/main/docs/tutorial-code/3-add-region/1-new-region)." |
78 | 78 | ] |
79 | 79 | }, |
80 | 80 | { |
|
117 | 117 | " )\n", |
118 | 118 | " g.add_legend()\n", |
119 | 119 | " g.set_ylabels(\"Capacity (PJ)\")\n", |
120 | | - " g.figure.suptitle(\"{} Sector:\".format(sector_name.capitalize()))\n", |
| 120 | + " g.figure.suptitle(f\"{sector_name.capitalize()} Sector:\")\n", |
121 | 121 | " g.figure.subplots_adjust(top=0.8)" |
122 | 122 | ] |
123 | 123 | }, |
|
0 commit comments