# Adding a Demand

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

## Adding an output node

Add an **output** node to the system which will represent an urban demand that wil abstract water from the reservoir. Rename the node to 'Example demand'.

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FgLRnXMpfvPCdzt4C08FF%2Fimage.png?alt=media&#x26;token=0662a982-4100-46cb-839a-55c12c85c859" alt=""><figcaption><p>Adding an output node as a demand</p></figcaption></figure>

## Baseline demand

In the **Baseline** scenario set the following attributes on the **Example demand** node:

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FNknqq9LhARWU6scuRP2w%2Fimage.png?alt=media&#x26;token=56330d89-db57-4e61-80e7-637ace6f17a4" alt="" width="375"><figcaption><p>Baseline scenario</p></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://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FGmEyT3Jrx4jiVbSzkcaL%2Fimage.png?alt=media&#x26;token=b598f1ca-78f0-44c3-8c1d-0337a20e82c1" alt=""><figcaption><p>The attributes defined on the Example demand node</p></figcaption></figure>

## **Create a new scenariao**

**Create a new scenario called 'With 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>" %}

## Demand in the new scenario

In the **'With demand'** scenario, set the **max\_flow** of the Example demand to 0.1 Mm3/day and run this scenario ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2Fcontent.gitbook.com%2Fcontent%2FLG7JgbktYGchOfcaz0zv%2Fblobs%2FxccVMlqqFMkgoP5T8BDH%2Fimage.png\&width=300\&dpr=4\&quality=100\&sign=530a8e5b\&sv=1).

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FcCZLvUMX1f1YMLSQCUwG%2Fimage.png?alt=media&#x26;token=98a0715e-3f90-4f88-a691-6538fd115412" alt="" width="289"><figcaption><p>Example demand</p></figcaption></figure>

## View and compare the reservoir volume

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

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FOgPDymwGzxUr6FVtwHKc%2Fimage.png?alt=media&#x26;token=120bcdc9-3e8b-4fe5-9dab-f18c17b788de" alt="" width="375"><figcaption><p>Selecting baseline to compare</p></figcaption></figure>

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FwkD5wlttPIcmpuJqu53c%2Fimage.png?alt=media&#x26;token=b1029a29-0b34-4724-8c17-5746f4ec2bf1" alt=""><figcaption><p>Reservoir volume comparison</p></figcaption></figure>

## Exercises and questions <a href="#exercises-and-questions" id="exercises-and-questions"></a>

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.

* **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.*

* **What is the maximum monthly spill from the reservoir in the simulation?**

*Hint: Look at the simulated\_flow on the spill link node.*

* **Create a 'Monthly demand' scenario. Use the following video to help you implement a monthly profile demand, where the Example 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

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://water-strategy.gitbook.io/waterstrategy/tutorials/creating-a-reservoir-system/adding-a-demand.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
