# Adding a demand

In this section an output node representing a municiple demand will be added to the system which will draw water from the reservoir.

1. Add an **output** node to the system which will represent an urban demand that wil abstract water from the reservoir. Rename the node to 'Mosetse demand'.&#x20;

<figure><img src="https://530325344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOe4DHiaeqejzGopyV9BO%2Fuploads%2FAefRY2lPsQ40webZKgLM%2Fimage.png?alt=media&#x26;token=b9fce716-9066-49d4-8425-56df85a55834" alt=""><figcaption></figcaption></figure>

2. In the **Baseline** scenaio set the following attributes on the **Mosetse demand** node:

<figure><img src="https://530325344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOe4DHiaeqejzGopyV9BO%2Fuploads%2FkcDmqUNMv2yMw62kaNAJ%2Fimage.png?alt=media&#x26;token=8ba2eee3-00fc-4ce7-b0af-ba051b9dd07b" alt=""><figcaption></figcaption></figure>

* **max\_flow** = 0. This represents a deamnd of 0 Mm3/day.
* **allocation\_penalty** = -1000. This represents a high priority for water allocation

<figure><img src="https://530325344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOe4DHiaeqejzGopyV9BO%2Fuploads%2FpeLh3KzB6u6HiX1ufwqV%2Fimage.png?alt=media&#x26;token=baabb339-06be-44c2-ba36-bd13ab29bb00" alt=""><figcaption><p>The attributes defined on the Mosetse demand node.</p></figcaption></figure>

3. **Create a new scenario called 'Mosetse demand'.** For a reminder on how to create a scenario please follow the link below.

{% embed url="<https://water-strategy.gitbook.io/water-strategy/tutorials/creating-and-running-a-network/creating-a-new-scenario>" %}

<figure><img src="https://530325344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOe4DHiaeqejzGopyV9BO%2Fuploads%2F9lNsUCR3p1cuLKJK2c8p%2Fimage.png?alt=media&#x26;token=e857ff62-9d71-4ce4-aeef-2e7fd10018e6" alt=""><figcaption></figcaption></figure>

4. In the **'Mosetse demand'** scenario, set the **max\_flow** of the Mosetse demand to 0.1 Mm3/day and run this scenario ![](https://530325344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOe4DHiaeqejzGopyV9BO%2Fuploads%2F9hy5glSufj2d7N64oRvK%2Fimage.png?alt=media\&token=3afc51de-0d74-4b66-acb5-3d445329f6fe).

<figure><img src="https://530325344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOe4DHiaeqejzGopyV9BO%2Fuploads%2FhCtOGVKhyP7kTeicvxQt%2Fimage.png?alt=media&#x26;token=33207dfe-a453-4758-b04b-ab54acd3b038" alt=""><figcaption></figcaption></figure>

4. View the **simulated\_volume** of the reservoir in this scenario and compare against the baseline.

<figure><img src="https://530325344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOe4DHiaeqejzGopyV9BO%2Fuploads%2FHrzix5Au9Y6ctDMBY6Pa%2Fimage.png?alt=media&#x26;token=2298ba3a-2f6d-4443-b583-54356d5701c0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://530325344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOe4DHiaeqejzGopyV9BO%2Fuploads%2FIw9PTx93u41y3UHLVfTK%2Fimage.png?alt=media&#x26;token=3c294337-c603-4fb5-a3b3-9f93e1ceaaf4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://530325344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOe4DHiaeqejzGopyV9BO%2Fuploads%2FIJ1Jtg7swmoXgSZ8e5DD%2Fimage.png?alt=media&#x26;token=eae1128b-3530-4368-ae99-47e3f3bc2dd6" alt=""><figcaption></figcaption></figure>

## Exercises and questions

In this case, we are modelling the 'live' storage of the reservoir. When the reservoir goes to 0 storage in the model there is still dead storage in the system. At the dead storage level, the remaining water isn't able to be released.

1. **How high can the demand go before the reservoir empties to its dead storage?** *To do this, create a new scenario and change the max\_flow of the demand node and rerun the model multiple times until the reservoir reaches 0 storage.*
2. **What is the maximum monthly spill from the reservoir in the simulation?** *Hint: Look at the simulated\_flow on the spill link node.*
3. **Create a 'Monthly demand' scenario. Use the following video to help you implement a monthly profile demand, where the Mosetse demand changes based on the months:**\
   \
   Jan-Mar: 0.1 Mm3/day\
   April-June: 0.06 Mm3/day\
   July-Sept: 0.07 Mm3/day\
   Sept-Dec: 0.09 MM3/day<br>

{% embed url="<https://www.youtube.com/watch?t=76s&v=DH3z2yQVL6I>" %}
