EOPS Inflow Example
This Notebook aims at explaining and showing an example of how to set up simple inflow. The example builds on a system with only one reservoir and power plant, aswell as one busbar.
How To Set Up Inflow¶
Inflow is devided into two categories: regulated and unregulated.
Average Inflow¶
The implementation of average regulated and unregulated inflow happens respectively under reservoirs and plants. It is of the type double with the unit , and represents the average yearly inflow. Examples of how this is implemented is shown below:
"reservoirs": [
{
"average_regulated_inflow": 10.00
}
]"plants": [
{
"average_unregulated_inflow": 1.00
}
]Inflow Time Series¶
Creating time series for inflow can be done in two ways, either directly within reservoirs and plants, or by defining a sepperat inflow_series object and refering to it.
An example of directly implementing inflow time series within reservoirs and plants using the attributes regulated_inflow and unregulated_inflow is presented bellow. Here one can add timestamps within the predefined historical period, and give the timestamp a value under scenarios. This time series is normalized and the inflow distribution is scaled with the average inflow.
"reservoirs": [
{
"average_regulated_inflow": 10.00,
"regulated_inflow": {
"timestamps": [
"timestamp1",
"timestamp2",
...
],
"scenarios": [
[
30,
50,
...
]
]
}
}
]
"plants": [
{
"average_unregulated_inflow": 1.00,
"unregulated_inflow": {
"timestamps": [
"timestamp1",
"timestamp2",
...
],
"scenarios": [
[
30,
50,
...
]
]
}
}
]
An example of defining a sepperat inflow_series object is presented below. This alternative shares the same structure for setting up the series as the first alternative.
"inflow_series": [
{
"name": "inflow_series_name",
"series": {
"timestamps": [
"timestamp1",
"timestamp2",
...
],
"scenarios": [
[
30,
50,
...
]
]
}
}
]One can also add multiple time series, for instance one for regulated and one for unregulated, as shown below.
"inflow_series": [
{
"name": "regulated_inflow_series_name",
"series": {
"timestamps": [
"timestamp1",
"timestamp2",
...
],
"scenarios": [
[
30,
50,
...
]
]
}
},
{
"name": "unregulated_inflow_series_name",
"series": {
"timestamps": [
"timestamp1",
"timestamp2",
...
],
"scenarios": [
[
30,
50,
...
]
]
}
}
]To refer to a defined inflow series one has to use the attributes regulated_inflow_name and unregulated_inflow_name in respectively reservoirs and plants. This is shown below.
"reservoirs": [
{
"regulated_inflow_name": "regulated_inflow_series_name"
}
]"plants": [
{
"unregulated_inflow_name": "unregulated_inflow_series_name"
}
]Testing the Inflow Time Series Methods¶
To demonstrate that the two methods of implementing inflow time series is equivalent, results from both are presented here. A system where the only difference is method of implementing inflow time series is used to derive the results.
To get the results, run the cell below.
from generate_inflow_plots import comparing_inflow_methods
comparing_inflow_methods()
