{
"cells": [
{
"cell_type": "markdown",
"id": "aa5cc0b2",
"metadata": {},
"source": [
"(creek-intake-example)=\n",
"# Modelling stable creek intakes\n",
"\n",
"Creek intakes are modelled as tiny [reservoirs](reservoir) connected to a tunnel network in SHOP, typically connected directly on the main tunnel of a large [plant](plant). Since the reservoir volumes of creek intakes are so small compared to the flow in the tunnel network, it can be challenging to model a stable system when creek intakes are present. This example will describe general rules and best practice for modelling creek intakes in SHOP. Note that this example does not use the old [creek_intake](creek_intake) object in combination with a [junction](junction), as this way of modelling is deprecated.\n",
"\n",
"The system that will be used to illustrate the creek intake modelling in SHOP is based on the code in the function build_model() found in the creek_model.py script:"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "51c8140c",
"metadata": {},
"outputs": [],
"source": [
"from pyshop import ShopSession\n",
"import pandas as pd\n",
"import numpy as np\n",
"import plotly.graph_objects as go\n",
"from plotly.subplots import make_subplots\n",
"\n",
"from creek_model import build_model"
]
},
{
"cell_type": "markdown",
"id": "6e366391",
"metadata": {},
"source": [
"The resulting topology is shown below:"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "81b752b5",
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"%3 \n",
" \n",
"\n",
"\n",
"reservoir_Reservoir \n",
" \n",
"Reservoir \n",
" \n",
"\n",
"\n",
"tunnel_Rsv_N1 \n",
" \n",
"Rsv_N1 \n",
" \n",
"\n",
"\n",
"reservoir_Reservoir->tunnel_Rsv_N1 \n",
" \n",
" \n",
"\n",
"\n",
"river_Spill_rsv \n",
" \n",
"Spill_rsv \n",
" \n",
"\n",
"\n",
"reservoir_Reservoir->river_Spill_rsv \n",
" \n",
" \n",
"\n",
"\n",
"reservoir_Creek1 \n",
" \n",
"Creek1 \n",
" \n",
"\n",
"\n",
"tunnel_Creek1_N1 \n",
" \n",
"Creek1_N1 \n",
" \n",
"\n",
"\n",
"reservoir_Creek1->tunnel_Creek1_N1 \n",
" \n",
" \n",
"\n",
"\n",
"river_Spill_C1 \n",
" \n",
"Spill_C1 \n",
" \n",
"\n",
"\n",
"reservoir_Creek1->river_Spill_C1 \n",
" \n",
" \n",
"\n",
"\n",
"reservoir_Creek2 \n",
" \n",
"Creek2 \n",
" \n",
"\n",
"\n",
"tunnel_Creek2_N2 \n",
" \n",
"Creek2_N2 \n",
" \n",
"\n",
"\n",
"reservoir_Creek2->tunnel_Creek2_N2 \n",
" \n",
" \n",
"\n",
"\n",
"river_Spill_C2 \n",
" \n",
"Spill_C2 \n",
" \n",
"\n",
"\n",
"reservoir_Creek2->river_Spill_C2 \n",
" \n",
" \n",
"\n",
"\n",
"reservoir_Creek3 \n",
" \n",
"Creek3 \n",
" \n",
"\n",
"\n",
"tunnel_Creek3_N3 \n",
" \n",
"Creek3_N3 \n",
" \n",
"\n",
"\n",
"reservoir_Creek3->tunnel_Creek3_N3 \n",
" \n",
" \n",
"\n",
"\n",
"river_Spill_C3 \n",
" \n",
"Spill_C3 \n",
" \n",
"\n",
"\n",
"reservoir_Creek3->river_Spill_C3 \n",
" \n",
" \n",
"\n",
"\n",
"tunnel_N1_N2 \n",
" \n",
"N1_N2 \n",
" \n",
"\n",
"\n",
"tunnel_Rsv_N1->tunnel_N1_N2 \n",
" \n",
" \n",
"\n",
"\n",
"tunnel_N2_N3 \n",
" \n",
"N2_N3 \n",
" \n",
"\n",
"\n",
"tunnel_N1_N2->tunnel_N2_N3 \n",
" \n",
" \n",
"\n",
"\n",
"tunnel_N3_plant \n",
" \n",
"N3_plant \n",
" \n",
"\n",
"\n",
"tunnel_N2_N3->tunnel_N3_plant \n",
" \n",
" \n",
"\n",
"\n",
"plant_Plant \n",
" \n",
"Plant \n",
" \n",
"\n",
"\n",
"tunnel_N3_plant->plant_Plant \n",
" \n",
" \n",
"\n",
"\n",
"tunnel_Creek1_N1->tunnel_N1_N2 \n",
" \n",
" \n",
"\n",
"\n",
"tunnel_Creek2_N2->tunnel_N2_N3 \n",
" \n",
" \n",
"\n",
"\n",
"tunnel_Creek3_N3->tunnel_N3_plant \n",
" \n",
" \n",
" \n",
" \n"
],
"text/plain": [
""
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"shop = build_model()\n",
"shop.model.build_connection_tree()"
]
},
{
"cell_type": "markdown",
"id": "3bc37360",
"metadata": {},
"source": [
"A single large reservoir called Reservoir sits at the far end of a long tunnel stretch down to the plant. Three small creek intake reservoirs, Creek1 to 3, are connected to the main tunnel of the plant. All reservoirs have [river](river) objects connected to them that acts as spillways with [up_head_flow_curve](river:up_head_flow_curve) defining the flow out of the reservoirs."
]
},
{
"cell_type": "markdown",
"id": "712390bc",
"metadata": {},
"source": [
"## Modelling the reservoir of a creek intake\n",
"\n",
"The reservoirs representing creek intakes should be modelled using the following principles:\n",
"\n",
"### Storage capacity\n",
"The reservoir of a creek intake represents the volume of the tunnel segment in addition to any small dam at the top of the creek intake. In this model, the [max_vol](reservoir:max_vol) it is set to 0.001 Mm3 for all three creek intakes.\n",
"\n",
"### Upper and lower regulation levels\n",
"The [hrl](reservoir:hrl) of the creek intake reservoirs should be the top of the dam or tunnel entrance of the creek intake. Above this level, water will spill out of the creek. The [lrl](reservoir:lrl) should be set to the lrl of the large reservoir in the network. If the lrl of the creek intake reservoirs are set lower than the lrl of the main reservoir, problems can arise if the large reservoir is empty.\n",
"\n",
"### Volume to level conversion\n",
"One of the most important factors of modelling a creek intake reservoir is the [vol_head curve](reservoir:vol_head). Since the reservoir capacity is so small, the level of a creek intake reservoir can change very rapidly over a time step in the optimization model. It is therefore important to model the vol_head curve with the __same gradient in all segments__. The simple way to do this is to set 0 Mm3 for lrl, max_vol for hrl, and then choose some additional height above hrl and calculate the volume that will ensure a constant gradient. Choosing the level of $\\textup{hrl} + \\Delta$ for the final point on the vol_head curve should result in a volume of $V = (1+\\frac{\\Delta}{\\textup{hrl}-\\textup{lrl}})\\cdot V_{\\textup{max}}$. This means that the reservoir level can potentially go far above the actual intake of the creek, but this will not happen if the spillway of the creek intake is modelled correctly.\n",
"\n",
"### Flow_descr\n",
"Before SHOP 16.4.0, the [flow_descr](reservoir:flow_descr) attribute on the reservoir object would be used in the tunnel network simulations when a reservoir in the network had a level above hrl. SHOP now only uses the vol_head curve in these calculations, but for older SHOP versions it is important to define a flow_descr on the creek intake reservoirs even though a river is used to model the spillage.\n",
"\n",
"\n",
"The values for max_vol, hrl, lrl, and the vol_head curve of each reservoir in the model is printed below:"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "616c7d79",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Reservoir\n",
"max_vol: 50.0\n",
"lrl: 80.0\n",
"hrl: 100.0\n",
"vol_head:\n",
"0.0 80.0\n",
"5.0 85.0\n",
"12.0 90.0\n",
"20.0 95.0\n",
"50.0 100.0\n",
"60.0 102.0\n",
"Name: 0.0, dtype: float64\n",
"\n",
"Creek1\n",
"max_vol: 0.001\n",
"lrl: 80.0\n",
"hrl: 110.0\n",
"vol_head:\n",
"0.000 80.0\n",
"0.001 110.0\n",
"0.002 140.0\n",
"Name: 0.0, dtype: float64\n",
"\n",
"Creek2\n",
"max_vol: 0.001\n",
"lrl: 80.0\n",
"hrl: 105.0\n",
"vol_head:\n",
"0.000 80.0\n",
"0.001 105.0\n",
"0.002 130.0\n",
"Name: 0.0, dtype: float64\n",
"\n",
"Creek3\n",
"max_vol: 0.001\n",
"lrl: 80.0\n",
"hrl: 101.0\n",
"vol_head:\n",
"0.000 80.0\n",
"0.001 101.0\n",
"0.002 121.0\n",
"Name: 0.0, dtype: float64\n",
"\n"
]
}
],
"source": [
"for rsv in shop.model.reservoir:\n",
" print(rsv.get_name())\n",
" print(\"max_vol:\",rsv.max_vol.get())\n",
" print(\"lrl:\",rsv.lrl.get())\n",
" print(\"hrl:\",rsv.hrl.get())\n",
" print(\"vol_head:\")\n",
" print(rsv.vol_head.get())\n",
" print(\"\")"
]
},
{
"cell_type": "markdown",
"id": "39af95f0",
"metadata": {},
"source": [
"## Modelling the tunnels connecting the creek intakes\n",
"\n",
"The creek intake reservoirs are connected to the main tunnel with short tunnel objects with low [loss coefficients](tunnel:loss_factor). Note that setting the loss coefficients to zero may lead to instabilities when solving the tunnel network equations, so the loss factors should always be larger than zero. In this case, the tunnels connecting the creeks have a loss coefficient of 1e-6, while the main tunnel segments have much higher losses. 1e-6 is about 0.1% of the sum of all loss factors in the tunnel network:"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "09b2eb34",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Loss in Rsv_N1: 0.00015, 14.96 % of sum loss factor\n",
"\n",
"Loss in N1_N2: 2.5e-05, 2.49 % of sum loss factor\n",
"\n",
"Loss in N2_N3: 2.5e-05, 2.49 % of sum loss factor\n",
"\n",
"Loss in N3_plant: 0.0008, 79.76 % of sum loss factor\n",
"\n",
"Loss in Creek1_N1: 1e-06, 0.10 % of sum loss factor\n",
"\n",
"Loss in Creek2_N2: 1e-06, 0.10 % of sum loss factor\n",
"\n",
"Loss in Creek3_N3: 1e-06, 0.10 % of sum loss factor\n",
"\n"
]
}
],
"source": [
"sum_loss_factor = sum(t.loss_factor.get() for t in shop.model.tunnel)\n",
"\n",
"for t in shop.model.tunnel:\n",
" loss = t.loss_factor.get()\n",
" print(f\"Loss in {t.get_name()}: {loss}, {100*loss/sum_loss_factor:.2f} % of sum loss factor\")\n",
" print(\"\")"
]
},
{
"cell_type": "markdown",
"id": "4746ff35",
"metadata": {},
"source": [
"## Modelling the main tunnel\n",
"\n",
"The main tunnel from the large reservoir to the plant is split into 4 tunnel segments to allow creek intakes to connect at different points in the system. 15% of the main tunnel loss happens in the first tunnel segment between the large reservoir and the first creek intake, then 2.5% loss is added between each creek before 80% of the loss happens after the last creek intake. The main tunnel is modelled as flat at the lrl of the large reservoir before it drops off down to the plant in the final tunnel segment. This is seen in the [start_height](tunnel:start_height) and [end_height](tunnel:end_height) of each tunnel:"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "a5838db3",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Rsv_N1: starts at 80.0 masl, ends at 80.0 masl\n",
"\n",
"N1_N2: starts at 80.0 masl, ends at 80.0 masl\n",
"\n",
"N2_N3: starts at 80.0 masl, ends at 80.0 masl\n",
"\n",
"N3_plant: starts at 80.0 masl, ends at 0.0 masl\n",
"\n",
"Creek1_N1: starts at 80.0 masl, ends at 80.0 masl\n",
"\n",
"Creek2_N2: starts at 80.0 masl, ends at 80.0 masl\n",
"\n",
"Creek3_N3: starts at 80.0 masl, ends at 80.0 masl\n",
"\n"
]
}
],
"source": [
"for t in shop.model.tunnel:\n",
" start = t.start_height.get()\n",
" print(f\"{t.get_name()}: starts at {t.start_height.get()} masl, ends at {t.end_height.get()} masl\")\n",
" print(\"\")"
]
},
{
"cell_type": "markdown",
"id": "15e5ad6e",
"metadata": {},
"source": [
"## Modelling the spillways\n",
"\n",
"The [overflow example](reservoir-overflow) gives a general overview of how to modell spillage in SHOP. For creek intakes, it is recommended to add a river object with a simple [up_head_flow_curve](river:up_head_flow_curve) to each creek reservoir. The [upstream_elevation](river:upstream_elevation) of the river should be the hrl of the reservoirs, and using a single segment in the up_head_flow_curve is usually sufficient. Setting a [flow_cost](river:flow_cost) on the spill rivers is also common practice, but not strictly necessary as long as the creek reservoirs has a [water value](water-value-descriptions) consistent with the larger reservoir(s) in the tunnel system. In this model, no flow_cost is added to the rivers connected to the creek intake reservoirs, and the [energy_value_input](reservoir:energy_value_input) of all creeks are set to the same as the large reservoir."
]
},
{
"cell_type": "markdown",
"id": "2e085830",
"metadata": {},
"source": [
"## General recommendations and considerations\n",
"\n",
"- Start simple and expand the modelling of creeks in the system gradually. This allows the user to verify that the main components in the system function as expected before adding more complexity.\n",
"- Consider aggregating creek intakes that are close together with low losses between them. Large tunnel systems increase the complexity and calculation time of SHOP.\n",
"- Make sure the initial reservoir levels of the whole tunnel system are consistent to avoid numerical trouble."
]
},
{
"cell_type": "markdown",
"id": "65414b32",
"metadata": {},
"source": [
"## Optimizing a dry system state\n",
"\n",
"It is good practice to test the stability of the modelling in both wet and dry system conditions. First the a dry system state with all reservoirs at lrl and low inflow is optimized:"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "d69248dd",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Dry objective value: -2418.8001372831072\n"
]
}
],
"source": [
"shop = build_model()\n",
"\n",
"#Set initial state of the reservoirs to empty\n",
"for r in shop.model.reservoir:\n",
" r.start_head.set(r.lrl.get())\n",
"\n",
"#Create a random inflow profile that is used for all three creeks\n",
"np.random.seed(10)\n",
"t = [shop.get_time_resolution()[\"starttime\"] + pd.Timedelta(minutes=60*i) for i in range(24)]\n",
"inflow_profile = pd.Series(np.random.rand(24), index=t)\n",
"\n",
"shop.model.reservoir[\"Creek1\"].inflow.set(1*inflow_profile)\n",
"shop.model.reservoir[\"Creek2\"].inflow.set(3*inflow_profile)\n",
"shop.model.reservoir[\"Creek3\"].inflow.set(2*inflow_profile)\n",
"\n",
"#No inflow on the large reservoir\n",
"shop.model.reservoir[\"Reservoir\"].inflow.set(0)\n",
"\n",
"#Run a standard optimization\n",
"\n",
"shop.set_universal_mip(\"off\",[])\n",
"shop.start_sim([],[3])\n",
"shop.set_universal_mip(\"on\",[])\n",
"shop.start_sim([],[2])\n",
"shop.set_code(['incremental'], [])\n",
"shop.start_sim([],[5])\n",
"\n",
"dry_objective = shop.model.objective.average_objective.total.get()\n",
"print(\"Dry objective value:\",dry_objective)"
]
},
{
"cell_type": "markdown",
"id": "d39ce4c9",
"metadata": {},
"source": [
"As expected, the power plant produces very little since the system is dry. Enough water is saved to produce some power during the price peak towards the end of the optimization horizon. \n",
"\n",
"All reservoir levels slowly increase in the beginning when the power plant is offline, and the inflow into the creeks flow into the larger reservoir. When the power plant draws water, the reservoir levels drop quickly in the closest creek intakes while it takes a little longer for the main upstream reservoir to be affected."
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "4e3aaaa3",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
" \n",
" "
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Plant",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
19.569254117571358,
15.539960959491834,
7.046765354018061,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Price",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"xaxis": "x",
"y": [
29.56,
28.46,
26.66,
24.48,
24.01,
21.23,
22.62,
25.04,
26.24,
32.21,
41.34,
43.51,
43.02,
44.29,
46.24,
50.61,
59.47,
64.99,
61.74,
55.07,
48.01,
44.01,
45.2,
38.0
],
"yaxis": "y2"
}
],
"layout": {
"barmode": "stack",
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Production and market price"
},
"xaxis": {
"anchor": "y",
"domain": [
0.0,
0.94
]
},
"yaxis": {
"anchor": "x",
"domain": [
0.0,
1.0
],
"title": {
"text": "Production [MW]"
}
},
"yaxis2": {
"anchor": "x",
"overlaying": "y",
"side": "right",
"title": {
"text": "Energy price [€/MWh]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Reservoir",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00",
"2024-01-02T00:00:00"
],
"y": [
80.0,
80.01665935059755,
80.01710672922609,
80.03079259039627,
80.0469648816156,
80.05773113436541,
80.06258584888538,
80.06686345816152,
80.08328947311641,
80.08694124477073,
80.08884903316611,
80.10365167289284,
80.12424259976736,
80.12432695729186,
80.13538962465239,
80.15294032954627,
80.166169157082,
80.18175721490526,
80.08649805788305,
80.02438982495818,
80.0,
80.01171877884501,
80.01478899710608,
80.02285259507356,
80.03741237676678
]
},
{
"name": "Creek1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00",
"2024-01-02T00:00:00"
],
"y": [
80.0,
80.00932838896124,
80.01679014168107,
80.02436083202603,
80.03969197698574,
80.05226742196695,
80.05979802015308,
80.06436414119904,
80.07599979349939,
80.08476158658723,
80.08773171395325,
80.09680038102562,
80.11607551457539,
80.12429094768044,
80.12984693701988,
80.14532414229569,
80.15982843718722,
80.17504492389342,
80.04126380402256,
80.01930090207482,
80.00842947613577,
80.00628487298081,
80.01264185318962,
80.01859208631777,
80.03038527015647
]
},
{
"name": "Creek2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00",
"2024-01-02T00:00:00"
],
"y": [
80.0,
80.00970456864056,
80.01679225202479,
80.02461149232954,
80.04004956487066,
80.05242467370545,
80.05982850666047,
80.06438950245477,
80.0763663161905,
80.08478107165185,
80.08773330491222,
80.0970989432263,
80.11665234370386,
80.12429097140071,
80.13000904852615,
80.14574566293399,
80.16006686613525,
80.17541151061153,
80.02335965129703,
80.01100089992937,
80.00699908920635,
80.00631783541617,
80.01343006607283,
80.01796906035808,
80.03060075020835
]
},
{
"name": "Creek3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00",
"2024-01-02T00:00:00"
],
"y": [
80.0,
80.00999952742579,
80.01695567642275,
80.02484282008658,
80.04046855149792,
80.05274368269595,
80.06000653782284,
80.06449967268543,
80.0767111932957,
80.08498026765301,
80.08780470891294,
80.09736885600871,
80.1172088752067,
80.12446721663909,
80.1301709399727,
80.14618357422056,
80.16044642059404,
80.17590307692548,
80.0,
80.0,
80.0,
80.01087422325833,
80.01420017312036,
80.01803369690138,
80.03076008510186
]
}
],
"layout": {
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Reservoir levels"
},
"yaxis": {
"title": {
"text": "Level [masl]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Reservoir",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Creek1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.771320643266746,
0.0207519493594015,
0.6336482349262754,
0.7488038825386119,
0.4985070123025904,
0.22479664553084766,
0.19806286475962398,
0.7605307121989587,
0.16911083656253545,
0.08833981417401027,
0.6853598183677972,
0.9533933461949365,
0.003948266327914451,
0.5121922633857766,
0.8126209616521135,
0.6125260668293881,
0.7217553174317995,
0.29187606817063316,
0.9177741225129434,
0.7145757833976906,
0.5425443680112613,
0.14217004760152696,
0.3733407600514692,
0.6741336150663453
]
},
{
"name": "Creek2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
2.313961929800238,
0.0622558480782045,
1.9009447047788264,
2.246411647615836,
1.4955210369077712,
0.674389936592543,
0.5941885942788719,
2.2815921365968763,
0.5073325096876063,
0.2650194425220308,
2.056079455103392,
2.8601800385848097,
0.011844798983743354,
1.53657679015733,
2.4378628849563406,
1.8375782004881644,
2.1652659522953988,
0.8756282045118995,
2.7533223675388303,
2.1437273501930716,
1.6276331040337837,
0.4265101428045809,
1.1200222801544077,
2.022400845199036
]
},
{
"name": "Creek3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
1.542641286533492,
0.041503898718803,
1.2672964698525508,
1.4976077650772237,
0.9970140246051808,
0.4495932910616953,
0.39612572951924796,
1.5210614243979175,
0.3382216731250709,
0.17667962834802053,
1.3707196367355945,
1.906786692389873,
0.007896532655828903,
1.0243845267715532,
1.625241923304227,
1.2250521336587763,
1.443510634863599,
0.5837521363412663,
1.8355482450258869,
1.4291515667953811,
1.0850887360225225,
0.2843400952030539,
0.7466815201029384,
1.3482672301326906
]
}
],
"layout": {
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Reservoir inflow"
},
"yaxis": {
"title": {
"text": "Inflow [m3/s]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#Plot production and market price\n",
"fig = make_subplots(specs=[[{\"secondary_y\": True}]])\n",
"fig.update_layout(barmode=\"stack\", title=\"Production and market price\")\n",
"fig.update_yaxes(title_text=\"Energy price [€/MWh]\", secondary_y=True)\n",
"fig.update_yaxes(title_text=\"Production [MW]\", secondary_y=False)\n",
"\n",
"for plant in shop.model.plant:\n",
"\n",
" prod = plant.production.get()\n",
" fig.add_trace(go.Scatter(x=prod.index, y=prod.values, name=plant.get_name()))\n",
"\n",
"price = shop.model.market.spot.sale_price.get()\n",
"fig.add_trace(go.Scatter(x=price.index, y=price.values, name=\"Price\"),secondary_y=True)\n",
"fig.show()\n",
"\n",
"#Plot reservoir levels\n",
"fig = go.Figure()\n",
"for rsv in shop.model.reservoir:\n",
" level = rsv.head.get()\n",
" fig.add_trace(go.Scatter(x=level.index, y=level.values, name=rsv.get_name()))\n",
"\n",
"fig.update_layout(title=\"Reservoir levels\")\n",
"fig.update_yaxes(title_text=\"Level [masl]\")\n",
"fig.show()\n",
"\n",
"#Plot reservoir inflow\n",
"fig = go.Figure()\n",
"for rsv in shop.model.reservoir:\n",
" inflow = rsv.inflow.get()\n",
" fig.add_trace(go.Scatter(x=inflow.index, y=inflow.values, name=rsv.get_name()))\n",
"\n",
"fig.update_layout(title=\"Reservoir inflow\")\n",
"fig.update_yaxes(title_text=\"Inflow [m3/s]\")\n",
"fig.show()"
]
},
{
"cell_type": "markdown",
"id": "a5c0c8d4",
"metadata": {},
"source": [
"The tunnel flow is shown in the figure below. As the reservoir volumes of the creek intakes are so small, most of the inflow goes directly into the larger reservoir. For these calm conditions, there are virtually no deviations between the optimized tunnel [flow](tunnel:flow) and the post-calculated [physical_flow](tunnel:physical_flow) in the tunnels (note the scale on the y-axis)."
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "4e817d5b",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Rsv_N1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
-4.627597388206867,
-0.12427184126297514,
-3.8016281028280066,
-4.492303116477467,
-2.990625763840595,
-1.3485318111012323,
-1.1882247989272952,
-4.562781931913878,
-1.0143810150880939,
-0.5299412209388378,
-4.111844368537073,
-5.719701909589145,
-0.023432645694057595,
-3.0729631557027974,
-4.875195803853915,
-3.674674315480388,
-4.330016062019581,
26.460876950616154,
17.252286923575912,
6.774951377270101,
-3.2552163458368315,
-0.8528384058503007,
-2.23988832430127,
-4.0443838036742985
]
},
{
"name": "N1_N2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
-3.856363118911985,
-0.10358898220653501,
-3.1680499668864055,
-3.743641188984779,
-2.4922351908433837,
-1.1238048933313665,
-0.9902042130662441,
-3.802358957236219,
-0.8453513062393346,
-0.44162890794414233,
-3.426568519308831,
-4.766487036853001,
-0.019560448191190613,
-2.5608223366627563,
-4.062718149658048,
-3.0622825476777455,
-3.608401637983196,
26.75399173285963,
18.170264406243554,
7.489627822019085,
-2.7126521203889506,
-0.7107272191767665,
-1.8666026590009879,
-3.3703593847540394
]
},
{
"name": "N2_N3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
-1.5425090176521976,
-0.041411886165932936,
-1.26719214255541,
-1.4974010755082894,
-0.996851655144889,
-0.44949722154943467,
-0.3960662965184202,
-1.5208998963475175,
-0.3381122938346306,
-0.17664226801389374,
-1.370593126853375,
-1.9065242582734978,
-0.00780052284852332,
-1.0243090806957098,
-1.625030115972906,
-1.224863471669709,
-1.4433061817375215,
27.631309402475026,
20.923724093242043,
9.633399636775753,
-1.0850114468686092,
-0.28429610115725956,
-0.7466308121164164,
-1.3480988916644507
]
},
{
"name": "N3_plant",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
28.217388299093084,
22.759272338267916,
11.062484653793046,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Creek1_N1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.7712342692948826,
0.020682859056440007,
0.6335781359416,
0.7486619274926887,
0.4983905729972088,
0.2247269177698649,
0.1980205858610504,
0.760422974677659,
0.16902970884875915,
0.08831231299469534,
0.6852758492282383,
0.9532148727361425,
0.0038721975028677184,
0.5121408190400409,
0.8124776541958559,
0.6123917678026146,
0.7216144240363717,
0.2931147822435115,
0.9179774826676317,
0.714676444748978,
0.5425642254478813,
0.1421111866736676,
0.3732856653002827,
0.6740244189196907
]
},
{
"name": "Creek2_N2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
2.3138541012597873,
0.062177096040601974,
1.9008578243309955,
2.2462401134764893,
1.4953835356984955,
0.6743076717819316,
0.594137916547824,
2.281459060888702,
0.5072390124047024,
0.2649866399302489,
2.0559753924554576,
2.8599627785795034,
0.011759925342667225,
1.5365132559670471,
2.4376880336851423,
1.8374190760081501,
2.165095456245662,
0.8773176696153939,
2.753459686998479,
2.1437718147566605,
1.627640673520341,
0.42643111801950706,
1.1199718468845716,
2.0222604930895884
]
},
{
"name": "Creek3_N3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
1.5425090176521983,
0.041411886165932964,
1.26719214255541,
1.4974010755082907,
0.9968516551448895,
0.4494972215494347,
0.39606629651842007,
1.5208998963475175,
0.33811229383463026,
0.17664226801389438,
1.3705931268533753,
1.9065242582734976,
0.007800522848522166,
1.0243090806957098,
1.625030115972906,
1.224863471669709,
1.443306181737522,
0.5860788966180586,
1.8355482450258866,
1.4290850170173055,
1.0850114468686092,
0.2842961011572598,
0.7466308121164169,
1.3480988916644303
]
}
],
"layout": {
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Tunnel flow"
},
"yaxis": {
"title": {
"text": "Flow [m3/s]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Rsv_N1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
2.3897243561776804e-07,
-1.1913121320400455e-06,
2.283820867976516e-06,
-1.989772941080048e-06,
4.861455167315398e-07,
4.420030312868306e-07,
-6.139651986813988e-08,
-3.3781766717311257e-07,
-6.91690121401578e-07,
1.6194052624429744e-06,
-4.371558439686396e-07,
-1.1547795795152638e-06,
6.347351916395627e-07,
1.5110093953829562e-06,
-2.2499439937817556e-06,
4.791459669029052e-07,
1.369216458790845e-05,
-1.9650442677487945e-05,
5.50180165959091e-06,
-2.1177194033938918e-06,
1.0288924614521022e-06,
1.7881776109507364e-05,
-1.490006351589912e-05,
-1.3126181557687744e-05
]
},
{
"name": "N1_N2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
1.7261760998366071e-07,
-8.620243416718187e-07,
1.6570594985054754e-06,
-1.4515617974275585e-06,
3.6495567634631243e-07,
3.124490908223976e-07,
-4.30145186136599e-08,
-2.45586273095455e-07,
-4.950026850636391e-07,
1.167452280959047e-06,
-3.182224128650546e-07,
-8.37016240318178e-07,
4.742388934504682e-07,
1.0764047395639409e-06,
-1.633973658599075e-06,
3.710287606040197e-07,
1.0477042813761273e-05,
-1.4666591390266603e-05,
3.4536501694049093e-06,
-8.869625380825141e-07,
-2.6583820087466847e-06,
2.0769004929199752e-05,
-1.5768230232859892e-05,
-1.0719804659942156e-05
]
},
{
"name": "N2_N3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
9.70794347132653e-08,
-4.873083607540019e-07,
9.434493528637233e-07,
-8.360620331604451e-07,
2.1971666652742528e-07,
1.7355252696082957e-07,
-2.6899013627623702e-08,
-1.3988176439383437e-07,
-2.7443214378752856e-07,
6.623019044027512e-07,
-1.896192833861221e-07,
-4.731846141581286e-07,
2.814874339382434e-07,
5.985735214153465e-07,
-9.347737204290496e-07,
2.3030523643718936e-07,
6.208853974953854e-06,
-8.57024727807243e-06,
1.5823869858877515e-06,
9.467064057133712e-07,
-5.379177090647502e-06,
1.5617877867191154e-05,
-8.907312471162498e-06,
-7.030637307448018e-06
]
},
{
"name": "N3_plant",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
-3.552713678800501e-15,
-7.105427357601002e-15,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Creek1_N1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
-6.635482507899582e-08,
3.2928779024332666e-07,
-6.267613704702413e-07,
5.382111445406679e-07,
-1.2118984282771805e-07,
-1.2955394138036702e-07,
1.8382000532835008e-08,
9.223139429970217e-08,
1.9668743631018337e-07,
-4.519529815810719e-07,
1.1893342732882672e-07,
3.1776333786481814e-07,
-1.6049629745530647e-07,
-4.346046562631045e-07,
6.159703240804504e-07,
-1.0811723427650577e-07,
-3.215121787691899e-06,
4.983851322803989e-06,
-2.0481514992898298e-06,
1.230756859205151e-06,
-3.687274469532653e-06,
2.88722895305793e-06,
-8.681667163501494e-07,
2.4063763296444662e-06
]
},
{
"name": "Creek2_N2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
-7.553817527039541e-08,
3.7471598082067237e-07,
-7.136101458637967e-07,
6.154997636009796e-07,
-1.4523900904173104e-07,
-1.3889656402810147e-07,
1.6115505152569654e-08,
1.0570450914570984e-07,
2.20570539610776e-07,
-5.051503761954734e-07,
1.2860313125528933e-07,
3.638316261600494e-07,
-1.9275145957814432e-07,
-4.77831217260416e-07,
6.9919993839207e-07,
-1.407234104799926e-07,
-4.268188850797827e-06,
6.096344112194174e-06,
-1.8712631928430312e-06,
1.833668936690458e-06,
-2.7207950823449067e-06,
-5.151127061897576e-06,
6.860917761697394e-06,
3.689167352494138e-06
]
},
{
"name": "Creek3_N3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
-9.707943404713149e-08,
4.873083607817574e-07,
-9.434493528637233e-07,
8.360620344927128e-07,
-2.1971666608333607e-07,
-1.7355252690531842e-07,
2.68990135166014e-08,
1.3988176439383437e-07,
2.7443214345446165e-07,
-6.623019037643729e-07,
1.896192836081667e-07,
4.73184613936084e-07,
-2.814874350918345e-07,
-5.985735214153465e-07,
9.347737204290496e-07,
-2.3030523643718936e-07,
-6.208853974509765e-06,
8.570247276407095e-06,
-1.582386976561878e-06,
-9.467064008283899e-07,
5.379177090647502e-06,
-1.561787786696911e-05,
8.90731247171761e-06,
7.030637287019914e-06
]
}
],
"layout": {
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Tunnel flow deviation from post-calculated flow"
},
"yaxis": {
"title": {
"text": "Flow [m3/s]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = go.Figure()\n",
"for t in shop.model.tunnel:\n",
" flow = t.flow.get()\n",
" fig.add_trace(go.Scatter(x=flow.index, y=flow.values, name=t.get_name())) \n",
"\n",
"fig.update_layout(title=\"Tunnel flow\")\n",
"fig.update_yaxes(title_text=\"Flow [m3/s]\")\n",
"fig.show() \n",
"\n",
"fig = go.Figure()\n",
"for t in shop.model.tunnel:\n",
" flow = t.flow.get()\n",
" pflow = t.physical_flow.get()\n",
" fig.add_trace(go.Scatter(x=flow.index, y=flow.values-pflow.values, name=t.get_name())) \n",
"\n",
"fig.update_layout(title=\"Tunnel flow deviation from post-calculated flow\")\n",
"fig.update_yaxes(title_text=\"Flow [m3/s]\")\n",
"fig.show() "
]
},
{
"cell_type": "markdown",
"id": "45ae4dbb",
"metadata": {},
"source": [
"There is no flow in any of the spillways, as expected. As for the tunnel flow, the deviation between the optimized [flow](river:flow) and post-calculated [physical_flow](river:physical_flow) is zero for all rivers."
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "6c9f037d",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Spill_rsv",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Spill_C1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Spill_C2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Spill_C3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
}
],
"layout": {
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "River flow"
},
"yaxis": {
"title": {
"text": "Flow [m3/s]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Spill_rsv",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Spill_C1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Spill_C2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Spill_C3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
}
],
"layout": {
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "River flow deviation from post-calculated flow"
},
"yaxis": {
"title": {
"text": "Flow [m3/s]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#Plot river flow\n",
"fig = go.Figure()\n",
"for r in shop.model.river:\n",
" flow = r.flow.get()\n",
" fig.add_trace(go.Scatter(x=flow.index, y=flow.values, name=r.get_name()))\n",
"\n",
"fig.update_layout(title=\"River flow\")\n",
"fig.update_yaxes(title_text=\"Flow [m3/s]\")\n",
"fig.show()\n",
"\n",
"fig = go.Figure()\n",
"for r in shop.model.river:\n",
" flow = r.flow.get()\n",
" pflow = r.physical_flow.get()\n",
" fig.add_trace(go.Scatter(x=flow.index, y=flow.values-pflow.values, name=r.get_name()))\n",
"\n",
"fig.update_layout(title=\"River flow deviation from post-calculated flow\")\n",
"fig.update_yaxes(title_text=\"Flow [m3/s]\")\n",
"fig.show()"
]
},
{
"cell_type": "markdown",
"id": "87a3d476",
"metadata": {},
"source": [
"## Optimizing a wet system state\n",
"\n",
"In the wet system state, all reservoirs start at hrl and the creek intakes receive 10 times the amount of inflow compared to the dry case."
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "f892c315",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wet objective value: -521669.04006049456\n"
]
}
],
"source": [
"shop = build_model()\n",
"\n",
"#Set initial state of the reservoirs to full\n",
"for r in shop.model.reservoir:\n",
" r.start_head.set(r.hrl.get())\n",
" \n",
"#Create a random inflow profile that is used for all three creeks\n",
"np.random.seed(10)\n",
"t = [shop.get_time_resolution()[\"starttime\"] + pd.Timedelta(minutes=60*i) for i in range(24)]\n",
"inflow_profile = pd.Series(np.random.rand(24), index=t)\n",
"\n",
"shop.model.reservoir[\"Creek1\"].inflow.set(10*inflow_profile)\n",
"shop.model.reservoir[\"Creek2\"].inflow.set(30*inflow_profile)\n",
"shop.model.reservoir[\"Creek3\"].inflow.set(20*inflow_profile)\n",
"\n",
"#No inflow on the large reservoir\n",
"shop.model.reservoir[\"Reservoir\"].inflow.set(0)\n",
"\n",
"#Run a standard optimization\n",
"\n",
"shop.set_universal_mip(\"off\",[])\n",
"shop.start_sim([],[3])\n",
"shop.set_universal_mip(\"on\",[])\n",
"shop.start_sim([],[2])\n",
"shop.set_code(['incremental'], [])\n",
"shop.start_sim([],[5])\n",
"\n",
"wet_objective = shop.model.objective.average_objective.total.get()\n",
"print(\"Wet objective value:\",wet_objective)"
]
},
{
"cell_type": "markdown",
"id": "855edb21",
"metadata": {},
"source": [
"The power plant has to operate in almost all hours to avoid spillage losses in the system, but is still able to ramp down when the prices are low. \n",
"\n",
"The initial reservoir levels of all creek intakes are high above the large reservoir, but this initial difference is quickly eliminated due to the operation of the power plant and the relatively low losses in the system. The reservoir levels in the three creeks vary rapidly from hour to hour as inflow and power plant discharge changes."
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "52986979",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Plant",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
63.754768446208665,
55.02825036310378,
22.88729172852736,
9.999936363847292,
9.999950958577895,
9.99996762247683,
9.999968323099315,
9.999932694982988,
9.999969507648029,
9.999967179230529,
55.45052054670364,
63.82161616807505,
63.06439301735854,
63.53109672427868,
66.32273801067478,
69.99974832113398,
69.99976220851283,
69.99966336812903,
69.99978865936245,
69.99976083961332,
67.67744024174479,
63.040735805130986,
63.23914564430185,
0.0
]
},
{
"name": "Price",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"xaxis": "x",
"y": [
29.56,
28.46,
26.66,
24.48,
24.01,
21.23,
22.62,
25.04,
26.24,
32.21,
41.34,
43.51,
43.02,
44.29,
46.24,
50.61,
59.47,
64.99,
61.74,
55.07,
48.01,
44.01,
45.2,
38.0
],
"yaxis": "y2"
}
],
"layout": {
"barmode": "stack",
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Production and market price"
},
"xaxis": {
"anchor": "y",
"domain": [
0.0,
0.94
]
},
"yaxis": {
"anchor": "x",
"domain": [
0.0,
1.0
],
"title": {
"text": "Production [MW]"
}
},
"yaxis2": {
"anchor": "x",
"overlaying": "y",
"side": "right",
"title": {
"text": "Energy price [€/MWh]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Reservoir",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00",
"2024-01-02T00:00:00"
],
"y": [
100.0,
99.98286895339571,
99.94481265436681,
99.95119723475605,
99.97041853425822,
99.98062585956183,
99.98097264547987,
99.98035589083112,
100.0,
99.99834628633333,
99.99377974507584,
99.9796453201315,
99.96896703071428,
99.92412866726673,
99.89755634298075,
99.87963954562274,
99.85115002747796,
99.82664943104577,
99.78626471271846,
99.76888700707576,
99.74406807218607,
99.71499825698143,
99.67512442650742,
99.643559233111,
99.66781008964477
]
},
{
"name": "Creek1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00",
"2024-01-02T00:00:00"
],
"y": [
110.0,
99.8487407933103,
99.25985941541342,
100.01952366146247,
100.1497213744278,
100.0090919796333,
99.9765778324371,
99.98956779815228,
100.17257054475411,
99.99408157932027,
99.97870899744665,
99.87920663486875,
99.90309815942707,
99.05265456027337,
99.53565778386579,
99.74004654019795,
99.48568169119835,
99.54258489726217,
99.0622224929561,
99.61510359018479,
99.46832984706083,
99.32373832573407,
98.96040258725529,
99.19091881026621,
99.94914387669255
]
},
{
"name": "Creek2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00",
"2024-01-02T00:00:00"
],
"y": [
105.0,
99.8111120060511,
99.17858372136214,
99.9968665270291,
100.16702177903349,
100.02027131857237,
99.97987709188656,
99.98841519903849,
100.18649666238497,
99.99171159005122,
99.97681220613495,
99.85722519464852,
99.8848477387535,
98.91669368331588,
99.46936282888379,
99.7067716906275,
99.41508109130426,
99.48441525560521,
98.93950955616513,
99.5783229369265,
99.4115060253342,
99.25073169399866,
98.84454426062305,
99.11186154252155,
99.97892759899025
]
},
{
"name": "Creek3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00",
"2024-01-02T00:00:00"
],
"y": [
101.0,
99.68685735786278,
99.07639413051173,
99.99524325024439,
100.17305000983666,
100.0194009564205,
99.98088780330325,
99.98751136702226,
100.18934148896479,
99.9822808796225,
99.9728190894128,
99.78831288825558,
99.80507079336117,
98.75676117314248,
99.37138358645831,
99.61936736751382,
99.27802440034355,
99.36309687886839,
98.77039720698646,
99.48577059290712,
99.28663772506297,
99.12194715734496,
98.70345526252487,
99.00560293168351,
100.0086645849799
]
}
],
"layout": {
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Reservoir levels"
},
"yaxis": {
"title": {
"text": "Level [masl]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Reservoir",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Creek1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
7.71320643266746,
0.207519493594015,
6.336482349262754,
7.488038825386118,
4.9850701230259045,
2.2479664553084766,
1.9806286475962398,
7.605307121989587,
1.6911083656253545,
0.8833981417401027,
6.853598183677972,
9.533933461949365,
0.039482663279144514,
5.121922633857766,
8.126209616521136,
6.1252606682938815,
7.217553174317995,
2.9187606817063316,
9.177741225129434,
7.145757833976906,
5.425443680112613,
1.4217004760152696,
3.733407600514692,
6.741336150663453
]
},
{
"name": "Creek2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
23.13961929800238,
0.622558480782045,
19.009447047788264,
22.464116476158356,
14.955210369077713,
6.743899365925429,
5.941885942788719,
22.815921365968762,
5.073325096876063,
2.650194425220308,
20.56079455103392,
28.601800385848097,
0.11844798983743354,
15.365767901573298,
24.378628849563405,
18.375782004881643,
21.652659522953986,
8.756282045118995,
27.533223675388303,
21.43727350193072,
16.276331040337837,
4.265101428045809,
11.200222801544076,
20.224008451990358
]
},
{
"name": "Creek3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
15.42641286533492,
0.41503898718803,
12.672964698525508,
14.976077650772236,
9.970140246051809,
4.495932910616953,
3.9612572951924796,
15.210614243979174,
3.382216731250709,
1.7667962834802053,
13.707196367355944,
19.06786692389873,
0.07896532655828903,
10.243845267715532,
16.25241923304227,
12.250521336587763,
14.43510634863599,
5.837521363412663,
18.35548245025887,
14.291515667953812,
10.850887360225226,
2.843400952030539,
7.466815201029384,
13.482672301326906
]
}
],
"layout": {
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Reservoir inflow"
},
"yaxis": {
"title": {
"text": "Inflow [m3/s]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#Plot production and market price\n",
"fig = make_subplots(specs=[[{\"secondary_y\": True}]])\n",
"fig.update_layout(barmode=\"stack\", title=\"Production and market price\")\n",
"fig.update_yaxes(title_text=\"Energy price [€/MWh]\", secondary_y=True)\n",
"fig.update_yaxes(title_text=\"Production [MW]\", secondary_y=False)\n",
"\n",
"for plant in shop.model.plant:\n",
"\n",
" prod = plant.production.get()\n",
" fig.add_trace(go.Scatter(x=prod.index, y=prod.values, name=plant.get_name()))\n",
"\n",
"price = shop.model.market.spot.sale_price.get()\n",
"fig.add_trace(go.Scatter(x=price.index, y=price.values, name=\"Price\"),secondary_y=True)\n",
"fig.show()\n",
"\n",
"#Plot reservoir levels\n",
"fig = go.Figure()\n",
"for rsv in shop.model.reservoir:\n",
" level = rsv.head.get()\n",
" fig.add_trace(go.Scatter(x=level.index, y=level.values, name=rsv.get_name()))\n",
"\n",
"fig.update_layout(title=\"Reservoir levels\")\n",
"fig.update_yaxes(title_text=\"Level [masl]\")\n",
"fig.show()\n",
"\n",
"#Plot reservoir inflow\n",
"fig = go.Figure()\n",
"for rsv in shop.model.reservoir:\n",
" inflow = rsv.inflow.get()\n",
" fig.add_trace(go.Scatter(x=inflow.index, y=inflow.values, name=rsv.get_name()))\n",
"\n",
"fig.update_layout(title=\"Reservoir inflow\")\n",
"fig.update_yaxes(title_text=\"Inflow [m3/s]\")\n",
"fig.show()"
]
},
{
"cell_type": "markdown",
"id": "9ccb7c9c",
"metadata": {},
"source": [
"The flow in the tunnel system is much more dramatic in the wet system state, and the direction of flow into and out of the large reservoir changes multiple times during the optimization. This is due to the changes in the operation of the power plant and the large but random changes in inflow from hour to hour. There are some slight deviations between the flow and physical_flow in this run, which means that there is a small error in the linearization of the non-linear tunnel network equations. However, the deviations are very small compared to the flow in the tunnels."
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "b4512ff1",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Rsv_N1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
28.55174434048604,
63.42716504815144,
-10.640967315395756,
-32.035499170277035,
-17.012208839349114,
-0.5779765300587816,
1.0279244145767166,
-32.740181948132886,
2.756189444453412,
7.610902095813799,
23.55737490724823,
17.797149028687272,
74.73060574590454,
44.2872071433103,
29.861328930022864,
47.48253024130099,
40.834327386981386,
67.30786387884473,
28.96284273784113,
41.3648914828118,
48.44969200773812,
66.45638412332664,
52.60865566069333,
-40.41809422293045
]
},
{
"name": "N1_N2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
36.35894391395366,
63.64013714709914,
-4.311518894338497,
-24.548665879268388,
-12.025836592294297,
1.6702909821681906,
3.0084327847126358,
-25.136569296020365,
4.448950485683881,
8.494442576274016,
30.411894409098462,
27.33086127282134,
74.77796288695366,
49.40465752509732,
37.98564605805878,
53.61014613967903,
48.05135367976197,
70.23107236059423,
38.135464693548975,
48.51200833292913,
53.87647449822995,
67.88144881914515,
56.3399288517381,
-33.683778674736175
]
},
{
"name": "N2_N3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
59.556217522999916,
64.2697237199333,
14.688836122275688,
-2.086440017021208,
2.9310043374551915,
8.414639172834562,
8.950223859644119,
-2.3228488351998973,
9.524439861141442,
11.144802550204503,
50.97401770470444,
55.93235474151271,
74.90716814407375,
64.76428465838653,
62.361637031380575,
71.98916915121981,
69.70324282311259,
78.99340891348479,
65.66159044248437,
69.95113535609977,
70.15459192002707,
72.15106344089514,
67.53718146126108,
-13.469404290039916
]
},
{
"name": "N3_plant",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
75.0,
64.69283761753601,
27.349646731917677,
12.887285692486582,
12.903176978393613,
12.911081516693809,
12.911393541559885,
12.885095698171583,
12.909395489341115,
12.911723989639858,
64.68365463027675,
75.0,
75.0,
75.0,
78.61077605567871,
84.24420560642093,
84.1372238744136,
84.83877021964722,
84.00761028181836,
84.24528505669701,
81.00765772691523,
75.0,
75.0,
0.0
]
},
{
"name": "Creek1_N1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
7.807199573470142,
0.21297209894491204,
6.329448421058595,
7.486833291006809,
4.986372247051779,
2.2482675122269598,
1.9805083701359143,
7.603612652113643,
1.6927610412312235,
0.8835404804611546,
6.85451950184999,
9.533712244129383,
0.04735714104908627,
5.1174503817874655,
8.124317128036578,
6.127615898377211,
7.217026292780366,
2.9232084817462023,
9.172621955710648,
7.147116850116942,
5.426782490495267,
1.4250646958159987,
3.7312731910423684,
6.734315548196542
]
},
{
"name": "Creek2_N2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
23.197273609046253,
0.6295865728341445,
19.000355016614186,
22.462225862247195,
14.956840929749502,
6.744348190666382,
5.9417910749314755,
22.81372046082047,
5.07548937545755,
2.650359973930488,
20.56212329560599,
28.601493468691373,
0.12920525712007377,
15.35962713328921,
24.3759909733218,
18.379023011540788,
21.651889143350637,
8.76233655289055,
27.526125748935396,
21.439127023170627,
16.27811742179712,
4.269614621749982,
11.19725260952298,
20.21437438469626
]
},
{
"name": "Creek3_N3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
15.443782477003401,
0.42311389760272644,
12.660810609640153,
14.973725709507788,
9.972172640938265,
4.496442343859244,
3.961169681915773,
15.207944533371467,
3.3849556281996804,
1.76692143943536,
13.70963692557231,
19.067645258487282,
0.09283185592626107,
10.23571534161347,
16.24913902429815,
12.255036455201125,
14.433981051301004,
5.845361306162423,
18.346019839333987,
14.29414970059725,
10.85306580688816,
2.8489365591048785,
7.462818538738925,
13.469404290039916
]
}
],
"layout": {
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Tunnel flow"
},
"yaxis": {
"title": {
"text": "Flow [m3/s]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Rsv_N1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.00011419811846380412,
-0.0005110252040196883,
0.0006594436184865771,
0.00014661936110371698,
-0.0006991500111190874,
-3.252428547939612e-05,
0.0003322000970475969,
0.00018237087342498626,
-0.00011565265567758942,
-4.198938149713172e-05,
1.8430671659075415e-05,
-0.00021903208433826649,
0.0008451090776588899,
-0.0014532259748136767,
0.000642268530725687,
0.00026741447972256083,
-0.00019914743047166894,
0.00016145150132729214,
-0.00028939179725639974,
0.00043390305216917113,
-0.0001850776497818174,
-0.00017921478067250973,
2.6063457994496275e-05,
0.0002891686506956148
]
},
{
"name": "N1_N2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
3.413025436316275e-05,
-0.0001793165255676854,
0.0002553939900211688,
0.00012589117708472486,
-0.0004471562294074971,
1.2531923863079442e-05,
0.00023862562042920032,
0.00011020367573522094,
-0.00010506579821534245,
-3.363148573853891e-05,
2.1042037037233285e-05,
-0.00016686931061826726,
0.0006598185215409558,
-0.001121622076901474,
0.0004979223456089699,
0.00020384062383982382,
-0.00015658394460160707,
0.00012478757258804762,
-0.00022286892522771495,
0.00033533273836638955,
-0.00014529274768904088,
-0.00013843871144558761,
2.2600139871542524e-05,
0.00022305597981642222
]
},
{
"name": "N2_N3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
-5.765724196749034e-06,
-3.2239147316204253e-06,
3.101081920675597e-05,
8.11748589923944e-05,
-0.0002265998068393671,
2.9615222779000305e-05,
0.00013697793311528983,
4.952361055510224e-05,
-7.127232687942353e-05,
-2.2500544368142528e-05,
1.5677963091320635e-05,
-0.00010090794143735593,
0.00039491168865879445,
-0.0006627929677733846,
0.0002994986390731924,
0.0001169986100535425,
-9.592256722612547e-05,
7.491886438515394e-05,
-0.00013086443796339609,
0.0001992463681119716,
-9.005193321343086e-05,
-8.198767747558122e-05,
1.637857762659678e-05,
0.0001319968856332565
]
},
{
"name": "N3_plant",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
1.0658141036401503e-14,
-3.552713678800501e-15,
3.552713678800501e-15,
-3.552713678800501e-15,
3.552713678800501e-15,
7.105427357601002e-15,
0.0,
-8.881784197001252e-15,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Creek1_N1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
-8.00678615808792e-05,
0.0003317086756613741,
-0.00040404962712781156,
-2.0728185857521453e-05,
0.0002519937786722437,
4.5056209330152086e-05,
-9.35744766235036e-05,
-7.216719656888415e-05,
1.0586858216532491e-05,
8.357896694621836e-06,
2.611365140126054e-06,
5.216276903219352e-05,
-0.00018529055615772866,
0.0003316038983527392,
-0.00014434618444880698,
-6.357385670963112e-05,
4.256348565689905e-05,
-3.666393203172191e-05,
6.652287482999952e-05,
-9.857031418825102e-05,
3.9784905530027004e-05,
4.077606672403533e-05,
-3.4633205232559305e-06,
-6.611266861078491e-05
]
},
{
"name": "Creek2_N2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
-3.989597855635907e-05,
0.00017609261082851546,
-0.00022438317081352466,
-4.471631807945187e-05,
0.0002205564225814527,
1.7083298926579005e-05,
-0.00010164768732234819,
-6.0680065178786435e-05,
3.379347132526078e-05,
1.113094137306092e-05,
-5.364073931701796e-06,
6.596136918446405e-05,
-0.00026490683288896144,
0.0004588291091351948,
-0.00019842370653222474,
-8.684201377917589e-05,
6.066137738613975e-05,
-4.986870822243361e-05,
9.200448726431887e-05,
-0.00013608637026152337,
5.524081446495188e-05,
5.6451033956683716e-05,
-6.221562257380242e-06,
-9.105909417783664e-05
]
},
{
"name": "Creek3_N3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
5.765727509654539e-06,
3.223914738448297e-06,
-3.101082103107444e-05,
-8.117485899816757e-05,
0.00022659980668571222,
-2.9615222785217554e-05,
-0.0001369779331041876,
-4.952361055998722e-05,
7.127232688608487e-05,
2.250054436392368e-05,
-1.567796309487335e-05,
0.0001009079414302505,
-0.00039491168865098125,
0.0006627929677716082,
-0.000299498639066087,
-0.0001169986100535425,
9.592256721369097e-05,
-7.49188643869303e-05,
0.0001308644379669488,
-0.00019924636811374796,
9.005193322586535e-05,
8.198767750000613e-05,
-1.6378577610609568e-05,
-0.0001319968856332565
]
}
],
"layout": {
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Tunnel flow deviation from post-calculated flow"
},
"yaxis": {
"title": {
"text": "Flow [m3/s]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#Plot tunnel flow\n",
"fig = go.Figure()\n",
"for t in shop.model.tunnel:\n",
" flow = t.flow.get()\n",
" fig.add_trace(go.Scatter(x=flow.index, y=flow.values, name=t.get_name()))\n",
"\n",
"fig.update_layout(title=\"Tunnel flow\")\n",
"fig.update_yaxes(title_text=\"Flow [m3/s]\")\n",
"fig.show()\n",
"\n",
"#Plot tunnel flow\n",
"fig = go.Figure()\n",
"for t in shop.model.tunnel:\n",
" flow = t.flow.get()\n",
" pflow = t.physical_flow.get()\n",
" fig.add_trace(go.Scatter(x=flow.index, y=flow.values-pflow.values, name=t.get_name()))\n",
"\n",
"fig.update_layout(title=\"Tunnel flow deviation from post-calculated flow\")\n",
"fig.update_yaxes(title_text=\"Flow [m3/s]\")\n",
"fig.show()"
]
},
{
"cell_type": "markdown",
"id": "0ffd329e",
"metadata": {},
"source": [
"SHOP is able to avoid spillage in the wet system state, but spillage from creek intakes are not uncommon. Specifying a [mip_flag](river:mip_flag) (or using the command [set universal_river_mip /on](set_universal_river_mip)) and adding a [flow_cost](river:flow_cost) on the creek spillways can be considered when there is a lot of spillage in the system. However, it is important to consider that adding high spillage penalties in a system where spillage is unavoidable can simply make the calculation time longer. This can happen when the objective function is increased a lot due to (spillage) penalties."
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "519ec791",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Spill_rsv",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Spill_C1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Spill_C2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Spill_C3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
}
],
"layout": {
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "River flow"
},
"yaxis": {
"title": {
"text": "Flow [m3/s]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"name": "Spill_rsv",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Spill_C1",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Spill_C2",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"name": "Spill_C3",
"type": "scatter",
"x": [
"2024-01-01T00:00:00",
"2024-01-01T01:00:00",
"2024-01-01T02:00:00",
"2024-01-01T03:00:00",
"2024-01-01T04:00:00",
"2024-01-01T05:00:00",
"2024-01-01T06:00:00",
"2024-01-01T07:00:00",
"2024-01-01T08:00:00",
"2024-01-01T09:00:00",
"2024-01-01T10:00:00",
"2024-01-01T11:00:00",
"2024-01-01T12:00:00",
"2024-01-01T13:00:00",
"2024-01-01T14:00:00",
"2024-01-01T15:00:00",
"2024-01-01T16:00:00",
"2024-01-01T17:00:00",
"2024-01-01T18:00:00",
"2024-01-01T19:00:00",
"2024-01-01T20:00:00",
"2024-01-01T21:00:00",
"2024-01-01T22:00:00",
"2024-01-01T23:00:00"
],
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
}
],
"layout": {
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "River flow deviation from post-calculated flow"
},
"yaxis": {
"title": {
"text": "Flow [m3/s]"
}
}
}
},
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#Plot river flow\n",
"fig = go.Figure()\n",
"for r in shop.model.river:\n",
" flow = r.flow.get()\n",
" fig.add_trace(go.Scatter(x=flow.index, y=flow.values, name=r.get_name()))\n",
"\n",
"fig.update_layout(title=\"River flow\")\n",
"fig.update_yaxes(title_text=\"Flow [m3/s]\")\n",
"fig.show()\n",
"\n",
"fig = go.Figure()\n",
"for r in shop.model.river:\n",
" flow = r.flow.get()\n",
" pflow = r.physical_flow.get()\n",
" fig.add_trace(go.Scatter(x=flow.index, y=flow.values-pflow.values, name=r.get_name()))\n",
"\n",
"fig.update_layout(title=\"River flow deviation from post-calculated flow\")\n",
"fig.update_yaxes(title_text=\"Flow [m3/s]\")\n",
"fig.show()"
]
},
{
"cell_type": "markdown",
"id": "bbee2d3d",
"metadata": {},
"source": [
"## creek_model.py"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "b7eeb821",
"metadata": {
"Collapsed": "false",
"tags": [
"remove-input"
]
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"from pyshop import ShopSession\n",
"import pandas as pd\n",
"import numpy as np\n",
"\n",
"def build_model() -> ShopSession:\n",
"\n",
" shop = ShopSession()\n",
"\n",
" shop.set_time_resolution(pd.Timestamp(\"2024-01-01\"), pd.Timestamp(\"2024-01-02\"), \"hour\")\n",
"\n",
" rsv = shop.model.reservoir.add_object(\"Reservoir\")\n",
" rsv.lrl.set(80)\n",
" rsv.hrl.set(100)\n",
" rsv.max_vol.set(50)\n",
" rsv.vol_head.set(pd.Series([80,85,90,95,100,102], index=[0,5,12,20,50,60]))\n",
"\n",
" creek1 = shop.model.reservoir.add_object(\"Creek1\")\n",
" creek1.lrl.set(80)\n",
" creek1.hrl.set(110)\n",
" creek1.max_vol.set(0.001)\n",
" creek1.vol_head.set(pd.Series([80,110,140], index=[0,0.001,0.002]))\n",
"\n",
" creek2 = shop.model.reservoir.add_object(\"Creek2\")\n",
" creek2.lrl.set(80)\n",
" creek2.hrl.set(105)\n",
" creek2.max_vol.set(0.001)\n",
" creek2.vol_head.set(pd.Series([80,105,130], index=[0,0.001,0.002]))\n",
"\n",
" creek3 = shop.model.reservoir.add_object(\"Creek3\")\n",
" creek3.lrl.set(80)\n",
" creek3.hrl.set(101)\n",
" creek3.max_vol.set(0.001)\n",
" creek3.vol_head.set(pd.Series([80,101,121], index=[0,0.001,0.002]))\n",
"\n",
" tunnel1 = shop.model.tunnel.add_object(\"Rsv_N1\")\n",
" tunnel1.start_height.set(80)\n",
" tunnel1.end_height.set(80)\n",
" tunnel1.loss_factor.set(0.00015)\n",
"\n",
" tunnel2 = shop.model.tunnel.add_object(\"N1_N2\")\n",
" tunnel2.start_height.set(80)\n",
" tunnel2.end_height.set(80)\n",
" tunnel2.loss_factor.set(0.000025)\n",
"\n",
" tunnel3 = shop.model.tunnel.add_object(\"N2_N3\")\n",
" tunnel3.start_height.set(80)\n",
" tunnel3.end_height.set(80)\n",
" tunnel3.loss_factor.set(0.000025)\n",
"\n",
" tunnel4 = shop.model.tunnel.add_object(\"N3_plant\")\n",
" tunnel4.start_height.set(80)\n",
" tunnel4.end_height.set(0)\n",
" tunnel4.loss_factor.set(0.0008)\n",
"\n",
" tunnelC1 = shop.model.tunnel.add_object(\"Creek1_N1\")\n",
" tunnelC1.start_height.set(80)\n",
" tunnelC1.end_height.set(80)\n",
" tunnelC1.loss_factor.set(1e-6)\n",
"\n",
" tunnelC2 = shop.model.tunnel.add_object(\"Creek2_N2\")\n",
" tunnelC2.start_height.set(80)\n",
" tunnelC2.end_height.set(80)\n",
" tunnelC2.loss_factor.set(1e-6)\n",
"\n",
" tunnelC3 = shop.model.tunnel.add_object(\"Creek3_N3\")\n",
" tunnelC3.start_height.set(80)\n",
" tunnelC3.end_height.set(80)\n",
" tunnelC3.loss_factor.set(1e-6)\n",
"\n",
" river1 = shop.model.river.add_object(\"Spill_rsv\")\n",
" river1.upstream_elevation.set(100)\n",
" river1.up_head_flow_curve.set([pd.Series([0,50],index=[100,102], name=0)])\n",
" river1.flow_cost.set(1000)\n",
"\n",
" river2 = shop.model.river.add_object(\"Spill_C1\")\n",
" river2.upstream_elevation.set(110)\n",
" river2.up_head_flow_curve.set([pd.Series([0,50],index=[110,112], name=0)])\n",
"\n",
" river3 = shop.model.river.add_object(\"Spill_C2\")\n",
" river3.upstream_elevation.set(105)\n",
" river3.up_head_flow_curve.set([pd.Series([0,50],index=[105,107], name=0)])\n",
"\n",
" river4 = shop.model.river.add_object(\"Spill_C3\")\n",
" river4.upstream_elevation.set(101)\n",
" river4.up_head_flow_curve.set([pd.Series([0,50],index=[101,102], name=0)])\n",
"\n",
" plant = shop.model.plant.add_object(\"Plant\")\n",
" plant.outlet_line.set(0)\n",
" plant.main_loss.set([0])\n",
" plant.penstock_loss.set([0.0001, 0.0002])\n",
"\n",
" q = [5,7.5,10,12.5,15,17.5,20,22.5,25,27.5,30,32.5,35,37.5,40,42.5,45,47.5,50]\n",
" eff = [80.0, 82.15033783783784, 84.12612612612612, 85.92736486486487, 87.55405405405406, 89.00619369369369, 90.28378378378379, 91.38682432432432, 92.31531531531532, 93.06925675675676, 93.64864864864865, 94.053490990991, 94.28378378378379, 94.33952702702703, 94.22072072072072, 93.92736486486487, 93.45945945945945, 92.81700450450451, 92.0]\n",
"\n",
" gen1 = shop.model.generator.add_object(\"G1\")\n",
" gen1.penstock.set(1)\n",
" gen1.p_min.set(5)\n",
" gen1.p_max.set(35)\n",
" gen1.p_nom.set(35)\n",
" gen1.gen_eff_curve.set(pd.Series([95,95],index=[5,35]))\n",
" gen1.turb_eff_curves.set([pd.Series(eff,index=q, name=70), pd.Series(np.array(eff)+2,index=q,name=100)])\n",
" gen1.startcost.set(500)\n",
"\n",
" gen2 = shop.model.generator.add_object(\"G2\")\n",
" gen2.penstock.set(2)\n",
" gen2.p_min.set(5)\n",
" gen2.p_max.set(35)\n",
" gen2.p_nom.set(35)\n",
" gen2.gen_eff_curve.set(pd.Series([95,95],index=[5,35]))\n",
" gen2.turb_eff_curves.set([pd.Series(eff,index=q, name=70), pd.Series(np.array(eff)+2,index=q,name=100)])\n",
" gen2.startcost.set(500)\n",
"\n",
" rsv.connect_to(tunnel1)\n",
" tunnel1.connect_to(tunnel2)\n",
" tunnel2.connect_to(tunnel3)\n",
" tunnel3.connect_to(tunnel4)\n",
" tunnel4.connect_to(plant)\n",
"\n",
" creek1.connect_to(tunnelC1)\n",
" tunnelC1.connect_to(tunnel2)\n",
"\n",
" creek2.connect_to(tunnelC2)\n",
" tunnelC2.connect_to(tunnel3)\n",
"\n",
" creek3.connect_to(tunnelC3)\n",
" tunnelC3.connect_to(tunnel4)\n",
"\n",
" rsv.connect_to(river1)\n",
" creek1.connect_to(river2)\n",
" creek2.connect_to(river3)\n",
" creek3.connect_to(river4)\n",
"\n",
"\n",
" plant.connect_to(gen1)\n",
" plant.connect_to(gen2)\n",
"\n",
" market = shop.model.market.add_object(\"spot\")\n",
"\n",
" t = [pd.Timestamp(\"2024-01-01\") + pd.Timedelta(hours=i) for i in range(24)]\n",
" p = [29.56,28.46,26.66,24.48,24.01,21.23,22.62,25.04,26.24,32.21,41.34,43.51,43.02,44.29,46.24,50.61,59.47,64.99,61.74,55.07,48.01,44.01,45.20,38.00]\n",
" market.sale_price.set(pd.Series(p, index=t))\n",
" market.max_sale.set(10000)\n",
"\n",
" for r in shop.model.reservoir:\n",
" r.energy_value_input.set(40)\n",
"\n",
" return shop\n"
]
}
],
"source": [
"with open('creek_model.py', 'r') as f:\n",
" print(f.read())"
]
}
],
"metadata": {
"jupytext": {
"text_representation": {
"extension": ".md",
"format_name": "myst",
"format_version": 0.13,
"jupytext_version": "1.16.2"
}
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.12"
},
"source_map": [
12,
21,
29,
33,
36,
40,
61,
70,
76,
83,
89,
94,
100,
108,
114,
144,
150,
185,
189,
208,
212,
232,
238,
268,
274,
309,
313,
334,
338,
358,
362
]
},
"nbformat": 4,
"nbformat_minor": 5
}