Antares Simulator
Power System Simulator
hydro.h File Reference

Hydro ROR (Run-of-River) time series variables for hydroelectric power. More...

#include <vector>
#include "timeseries_base.h"

Go to the source code of this file.

Classes

struct  Antares::Solver::Variable::Economy::HydroTraits
 Traits for hydro ROR time series variables. More...
 
class  Antares::Solver::Variable::Economy::TimeSeriesValuesHydro< NextT >
 Hydro ROR time series implementation. More...
 

Typedefs

using Antares::Solver::Variable::Economy::VCardTimeSeriesValuesHydro = VCardTimeSeriesBase< HydroTraits >
 

Detailed Description

Hydro ROR (Run-of-River) time series variables for hydroelectric power.

Hydro ROR (Run-of-River) time series variables for hydroelectric power modeling.

  • This file implements hydro run-of-river time series variables using the modern time series base framework. Hydro variables represent the electricity generation from run-of-river hydroelectric installations.

Key Features:

  • Dynamic Time Series Access: Handles variable time series indices per year
  • ROR Modeling: Specific implementation for run-of-river hydro generation
  • Modern Memory Management: Uses std::vector instead of raw pointers
  • Hourly Processing: Granular access to time series data per simulation hour

Hydro-Specific Behavior:

Hydro variables differ from other time series types:

  • Dynamic Series Selection: Each year may use a different time series (nbchro)
  • Hourly Data Access: Values are extracted hour by hour during simulation
  • ROR Specialization: Focused on run-of-river rather than reservoir hydro
  • Series Index Mapping: Uses getSeriesIndex() to determine which series to use

Data Processing Flow:

Year Begin: area->hydro.series->ror.getSeriesIndex(year) → time series selection
Hour Processing: (*fatalValues[space])[hourInYear] → hourly value extraction
Storage: yearlyValues[space][hourInYear] ← accumulation for statistics

ROR vs Reservoir Hydro:

This implementation focuses on Run-of-River (ROR) hydro generation:

  • ROR: Flows directly through turbines, minimal storage, weather-dependent
  • Reservoir: Large storage capacity, optimizable dispatch (handled elsewhere)
See also
timeseries_base.h for the base framework
generation.h, load.h for other time series implementations