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

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

Hydro power

The hydropower variants in LtmApi are:

Detailed hydro modules

Detailed description of detailed hydro modules in the LTM-API. The LTM hydropower modelling use the standard hydro modules which contains both a reservoir and a hydropower plant.

In the LTM-API reservoirs and hydropower plants are two separate objects, as described in Reservoir and Plant. They can be connected to each other by the Connections object to form a LTM standard hydro module.

The definition of a minimal hydropower module specifying the energy equivalent and maximum discharge (omitting the tailrace elevation, pq-curve and volume curve) is not possible in the LtmApi. A minimal (synthetic) example in the LtmApi is provided below.

Minimal example
"reservoirs": [
  {
      "name": "upper_main",
      "average_energy_equivalent": 0.7,
      "regulated_inflow_name": "ten",
      "average_regulated_inflow": 50.0,
      "max_discharge": 25.0,
      "reference_curve": {
          "timestamps": [
              "2023-W17",
              "2023-W40"
          ],
          "scenarios": [
              [
                  200,
                  450
              ]
          ]
      },
      "initial_volume": 400,
      "max_volume": 500
  }
],
"plants": [
    {
        "name": "plant",
        "discharge_energy_equivalent": {
            "scenarios": [
                [
                    0.113
                ]
            ]
        },
        "pq_curves": {
            "2024-01-01T00:00:00Z": {
                "y": [
                    0.0,
                    10.0
                ],
                "x": [
                    0.0,
                    25.0
                ]
            }
        },
        "unregulated_inflow_name": "one",
        "average_unregulated_inflow": 1.0,
        "tailrace_elevation": 1000.0,
        "gross_head": 100.0,
    }
],
"connections": [
    {
        "from": "upper_main",
        "to": "plant"
    }
]

Reservoir

See the discription of the LTM Reservoir.

The table below shows Required Reservoir Parameters. The parameters in italics means that one of the two must be specified, where the user choose the appropriate one.

Required Reservoir Parameters

ParameterDatatypeDescription
namestringObject name
average_energy_equivalentdoubleLocal average energy equivalent [kWh/m3]. Important for spillage, bypass and pumps. See Energy equivalents and the importance for Pump object.
average_regulated_inflowdoubleAverage yearly regulated Inflow [m3/s].
max_dischargedoubleGlobal maximum discharge from the reservoir [m^3/sec]. If the pq-curve on Plant is defined for a higher discharge, the whole pq-curve is not used.
reference_curveTxyReservoir reference curve [Mm^3] See reservoir curve here Reservoir.
max_volumedoubleMm3
volume_curvexyThe volume curve show the functional relationship between the elevation above sea level and the reservoir volume [m - Mm3]. See Reservoir.

Below is a reservoir example:

"reservoirs": [
    {
        "name": "Example reservoir",
        "average_energy_equivalent": 0.12,
        "average_regulated_inflow": 0.79492267,
        "initial_volume": 60,
        "max_discharge": 30,
        "reference_curve": {
            "timestamps": [
                "2024-04-22T00:00:00Z",
                "2024-06-03T00:00:00Z",
                "2025-01-01T00:00:00Z"
            ],
            "scenarios": [
                [
                    0.0,
                    75.0,
                    85.0
                ]
            ]
        },
        "regulated_inflow": {
            "#comment": "Refers to unregulated inflow label",
            "external_reference": {
                "type": "csv",
                "filename": "constant_inflow.csv"
            }
        },
        "volume_curve": {
            "x": [
                1050,
                1100
            ],
            "y": [
                0,
                100
            ]
        }
    }
]

The optional reservoir parameters are listed in the table below Optional Reservoir Parameters.

Optional Reservoir Parameters

ParameterDatatypeDescription
degree_of_regulationdoubleReservoir regulation degree [years]. Factor describes how many years it takes to fill the reservoir.
reservoir_typereservoir_typeRegulation or buffer reservoir. See Reservoir types.
regulated_inflowTxyRegulated inflow [m3/sec]. See Inflow.
regulated_inflow_namestringReference to a regulated inflow time series [m3/sec]. inflow_series
initial_volumedoubleReservoir volume at simulation start. [Mm3]
gross_headdoubleNominal gross head [m]. See Production discharge curve
tailrace_elevationdoubleTailrace elevation (utløpskote) [m]. See Production discharge curve
max_volume_curveTxyMaximal allowed volume for given points in time [Mm3]
max_volume_curve_hard_limitboolReservoir has hard upper volume limit
min_volume_curveTxyMinimum allowed volume for given points in time [Mm3]
min_volume_curve_hard_limitboolReservoir has hard lower volume limit
max_discharge_curveTxyMaximum allowed discharge for given points in time [m3/sec]
max_discharge_namestringReference to a time series for maximum discharge
max_discharge_scaledoubleScaling factor for the maximum discharge time series
min_discharge_curveTxyMinimum allowed discharge for given points in time [m3/sec]
min_discharge_namestringReference to a time series for minimum discharge
min_discharge_scaledoubleScaling factor for the minimum discharge time series
min_bypass_curveTxyMinimum allowed bypass for given points in time [m3/sec]
min_bypass_namestringReference to a time series for minimum bypass
min_bypass_scaledoubleScaling factor for the minimum bypass time series
max_bypass_curveTxyMaximum allowed bypass for given points in time [m3/sec]
max_bypass_namestringReference to a time series for maximum bypass
max_bypass_scaledoubleScaling factor for the maximum bypass time series
hc_max_flowintMaximum flow on hydraulic couplings [m3/s]
hc_has_gateintHydraulic coupling has gate/hatch [m3/s]
#commentstring
metadatajsonoutput
module_numberintoutput

Plant

See description of LTM Plant. The required plant parameters are listed in the table below.

Required Plant Parameters Overview

ParameterDatatypeDescription
namestringObject name
discharge_energy_equivalentTxyLocal discharge energy equivalent time series, given together with turbine PQ-curves. [kWh/m^3]. Plant and Energy equivalents.
pq_curvesxytPQ efficiency curves [MW - m3/s]. Production discharge curve. The highest discharge on the pq-curve restricts the discharge through the station even though the maximum discharge from the reservoir may be larger (Reservoir).
average_unregulated_inflowdoubleAverage yearly unregulated inflow [m^3/s]. Inflow.
gross_headdoubleNominal gross head (brutto fallhoyde) [m]. Gross head Hnom in Production discharge curve. Value must be >0.0.
tailrace_elevation*doublePlant tailrace elevation (utlopskote stasjon) [m] Production discharge curve.

Below is a minimal plant example. The “yearly_inflow_profile” is a reference to the name of a defined inflow_series.

"plants": [
  {
      "name": "plant",
      "discharge_energy_equivalent": {
          "scenarios": [
              [
                  0.12
              ]
          ]
      },
      "pq_curves": {
          "2024-01-01T00:00:00Z": {
              "y": [
                  0.0,
                  9.89
              ],
              "x": [
                  0.0,
                  24.6
              ]
          }
      },
      "average_unregulated_inflow": 0.6,
      "gross_head": 40.0,
      "tailrace_elevation": 1030,
      "unregulated_inflow_name": "yearly_inflow_profile"
  }
]

The optional plant parameters are listed in the table below. The parameters in italics means that one of the two must be specified, where the user choose the appropriate one.

Optional Plant Parameters Overview

ParameterDatatypeDescription
unregulated_inflowTxyUnregulated inflow time series [m3/sec]. Inflow.
unregulated_inflow_namestringreference to the name of an inflow time series. inflow_series
ownershipdouble%
max_discharge_curveTxyMaximum discharge constraint [m3/sec]. Time dependent constraints.
max_discharge_namestringName of time series
max_discharge_scaledoubleScaling factor of the input series
min_discharge_curveTxyMinimum discharge constraint [m3/sec]. Time dependent constraints.
min_discharge_namestringName of time series
min_discharge_scaledoubleScaling factor of the input series
min_bypass_curveTxyMinimum bypass constraint [m3/sec]. Time dependent constraints.
min_bypass_namestringName of time series
min_bypass_scaledoubleScaling factor of the input series
gross_head_max_dischargexyMaximum discharge as function of gross head [m3/s].
max_bypass_curveTxyMaximum bypass constraint [m3/sec]. Time dependent constraints.
max_bypass_namestringName of time series
max_bypass_scaledoubleScaling factor of the input series
unavailable_capacityTxyMW
#commentstring
metadatajsonUser meta data: Output

Aggregated hydropower

Input

The API expects input data to be given as a list of “aggregated_hydro_modules” objects. The aggregated hydro modules include the following input where the Parameters in bold are required and the others are optional:

Input

ParameterTypeDescription
namestringObject name
reservoir_energydoubleMaximum reservoir energy [MWh]
station_powerdoubleMax station production [MW]
unregulated_power_inflowTxyUnregulated power inflow [MW], see Inflow
regulated_power_inflowTxyRegulated power inflow [MW], see Inflow
start_reservoir_energydoubleInitial aggregated reservoir energy [MWh]
upper_reservoir_limitsTxyUpper reservoir limits [MWh]
lower_reservoir_limitsTxyLower reservoir limits [MWh]
upper_production_limitsTxyUpper production limits [MW]
lower_production_limitsTxyLower production limits [MW]
metadatajsonUser metadata: output