gtopt/pump.hpp file

Defines the Pump structure representing a hydraulic pump unit.

This module defines the Pump structure which couples a hydraulic waterway to an electrical demand, converting electrical power [MW] into water flow [m³/s] pumped upstream.

Conversion relationship

pump_power [MW] = pump_factor [MW/(m³/s)] × pump_flow [m³/s]

The pump consumes electrical power at the linked demand to push water through the waterway from its junction_a (downstream) to junction_b (upstream). This is the reverse of a Turbine, which converts water flow into electrical power at a generator.

Variable pump factor (hydraulic head)

When main_reservoir is set, the pump's conversion rate can vary with the reservoir volume (hydraulic head). The piecewise-linear pump factor curve may be provided by a matching element (future).

Connection mode

A pump connects to the water system via a waterway whose junction_a is the intake (downstream reservoir) and junction_b is the discharge (upstream reservoir). The pump's electrical load is represented by the linked demand.

Reversible units (e.g. HB Maule)

A reversible turbine-pump unit is modeled as two separate elements:

  • A Turbine on the generation waterway (upstream → downstream)
  • A Pump on the pumping waterway (downstream → upstream)

In LP/SDDP (no binary variables), simultaneous generation and pumping is prevented by optimality: round-trip efficiency < 1.0 makes it always suboptimal. For MIP unit-commitment, explicit mode-exclusivity constraints can be added via UserConstraint.

JSON Example

{
  "uid": 1,
  "name": "HB_MAULE_PUMP",
  "waterway": "MACHICURA_pump_33_28",
  "demand": "HB_MAULE_DEMAND",
  "pump_factor": 1.88,
  "efficiency": 0.85,
  "capacity": 40.0
}

Fields that accept a number/array/string value can hold:

  • A scalar constant
  • A 1-D inline array indexed by [stage]
  • A filename string referencing a Parquet/CSV schedule in input_directory/Pump/

Namespaces

namespace gtopt

Classes

struct gtopt::Pump
Hydraulic pump converting electrical power into upstream water flow.