Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Spills and Bypasses Example

This notebook expands upon the EOPS model to illustrate the use of spills and bypasses in the ltmapi. Spills are used to define where overflow water from a reservoir will end up, and bypasses works as a redirection mechanism around a power plant.

  • Bypass represent a conduit that redirects water around a power plant.

  • Spill represent a safety mechanism to divert overflow water.

Loading...

Implementing bypass/spill in the model is done in the same way as reservoirs and plants.

     "bypasses": [
         {"name": "Bypass1", ...}
     ],
     "spills": [
         {"name": "Spill1", ...}
     ]

Then, one has to define which reservoirs they are connected to.

"connections": [
    {
        "from": "UpperReservoir",
        "to": "Bypass1"
    },
    {
        "from": "Bypass1", 
        "to": "LowerReservoir1"
    },
    {
        "from": "UpperReservoir", 
        "to": "Spill1"
    },
    {
        "from": "Spill1", 
        "to": "LowerReservoir2"
    }
]

Here are some examples of illegal connections:

  • Combining objects in an invalid order (e.g., Reservoir → Bypass → Plant).

  • Connecting multiple objects of the same type (e.g., Reservoir → (2x Bypass) → Plant).

  • Any upwards connections.

Bellow is an example of a simple hydro system using both bypass and spill. In this example one lower reservoir is used where overflow water from spill and redirected water from bypass is colleceted. The water from the power plant is not defined, meaning it flows to the sea. If the bypass or spill was not connected to a lower reservoir, it would indicate flow to the sea.

busbar: numedal
water values shape: (53, 7, 1, 51)
<Figure size 640x480 with 2 Axes>
<Figure size 640x480 with 1 Axes>
<Figure size 640x480 with 1 Axes>
<Figure size 640x480 with 1 Axes>
<Figure size 640x480 with 1 Axes>
<Figure size 640x480 with 1 Axes>
<Figure size 640x480 with 1 Axes>
<Figure size 640x480 with 1 Axes>
<Figure size 640x480 with 1 Axes>