# Running the Model and Visualizing its Outputs

Please watch the video for more details.

{% embed url="<https://www.youtube.com/watch?v=Eknj7-lOYEE#t=4m29s>" %}

Click the **Run a Model** icon ![](https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2Fq8eV1o1LoTYMEpKIMQaR%2Fimage.png?alt=media\&token=6fd1fccc-e6b7-45de-b73f-10576110faed), select **Run Pywr** and click **Submit**.

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2F7BpajLPNGO3bqIjqtMCO%2Fimage.png?alt=media&#x26;token=29d38823-331f-40ba-a78f-911e6a2e039a" alt=""><figcaption></figcaption></figure>

The model will be submitted to run on the cloud.

You will see the Run appear in the Runs menu.

A blue ribbon means the Run is running.

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FYxs6GZ86R9igydX2b1cb%2Fimage.png?alt=media&#x26;token=b1daa930-b6fc-4b9d-9db5-f8c3f5fb75c8" alt=""><figcaption></figcaption></figure>

A yellow ribbon means the Run is queing

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FDaik5bhvEzgHStYSuWQ6%2Fimage.png?alt=media&#x26;token=514c5046-9fb1-486e-abfa-7c2ffc25acdf" alt=""><figcaption></figcaption></figure>

A green ribbon means the Run has finished successfully

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FaMSwEShzzUsSxdy4piV5%2Fimage.png?alt=media&#x26;token=2da296ae-4b24-4afc-933c-396af8d4b01f" alt=""><figcaption></figcaption></figure>

&#x20;A red ribbon means the Run has termined with an error.

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FwbpVC2EaD3xoZNpasckF%2Fimage.png?alt=media&#x26;token=eaf2766d-1fc6-4ceb-9f3e-54ced800e112" alt=""><figcaption></figcaption></figure>

Clicking on the ribbon opens a window with the Run log. If there is an error, a traceback will appear at the bottom and can be used to help identify why the Run had an error.

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2F4Y7ujE9tAHWoTbQKQ81A%2Fimage.png?alt=media&#x26;token=b1268ae9-e73d-4f45-a0ce-76ab7dd4b64d" alt=""><figcaption></figcaption></figure>

Once the model has sucessfully ran, you can click on the various nodes to examine their time series output. In this case, the main output attribute is the 'simulated flow'.&#x20;

Double click on the node of interest. “Simulated\_flow” will be available under the Output Section, click on the edit button ![](https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FhfbZ4FYyCKFdshyjHoC2%2Fimage.png?alt=media\&token=e90abbf4-b4a6-4fe4-90e7-80a24230902f)to see results. Click on the Demand node which is the node on the right.

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2Fbsq1oJ2cycoS36Q1Bfcx%2Fimage.png?alt=media&#x26;token=ebddebe6-0917-4bb1-bc4b-973ffabf0ff9" alt=""><figcaption></figcaption></figure>

A time series table first appears:

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2Fk2GV4cRBbi1hnvBD81bB%2FScreen%20Shot%202024-08-08%20at%201.08.21%20AM.png?alt=media&#x26;token=0789ee1e-30d0-4b2c-b78b-a482e3e503e8" alt=""><figcaption></figcaption></figure>

Click on **Plot** to see a plot of the time series.

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2F8MaT6vIy9RmFbWgJAHyV%2FScreen%20Shot%202024-08-08%20at%201.08.29%20AM.png?alt=media&#x26;token=b31c6101-a0fc-4e58-b587-82f5af6f097f" alt=""><figcaption></figcaption></figure>

As the max\_flow of the demand node was set to 0, there is no flow in this node.

On the next flow, we will create a new scenario and change the max\_flow of the demand node.

What is the simulated flow on the downstream output node representing the river outlet?

<figure><img src="https://2363830371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODCd8VK2OOl9jOdp5KFf%2Fuploads%2FJFRihJv2IXeSJDKblooO%2FScreen%20Shot%202024-08-08%20at%201.10.34%20AM.png?alt=media&#x26;token=e7b95f37-11d8-43c0-9111-cabacfa6a22c" alt=""><figcaption></figcaption></figure>
