Pump struct
#include <gtopt/pump.hpp>
Hydraulic pump converting electrical power into upstream water flow.
A pump draws electrical power from a demand, converts it at pump_factor into water flow through a waterway, pushing water from the downstream junction (junction_a) to the upstream junction (junction_b) of the waterway.
When main_reservoir is specified, the pump's conversion rate may be updated dynamically by the SDDP solver using a piecewise-linear pump factor curve (future feature).
Public static variables
- static LPClassName class_name
Public variables
- OptActive active
- Activation status (default: active).
- OptTRealFieldSched capacity
- Maximum pump flow [m³/s].
- SingleId demand
- ID of the electrical demand (pump load).
- OptTRealFieldSched efficiency
- Pump efficiency [p.u.] (default 1.0).
- OptSingleId main_reservoir
- Name name
- Human-readable name.
- OptTRealFieldSched pump_factor
- Power consumed per unit flow [MW/(m³/s)].
- Uid uid
- Unique identifier.
- SingleId waterway
- ID of the pumping waterway.
Variable documentation
static LPClassName gtopt:: Pump:: class_name
Canonical class-name constant used in LP row labels and config fields like VariableScale::class_name. Single source of truth — PumpLP exposes no separate ClassName member; callers reach the constant via Pump::class_name directly (or PumpLP::Element::class_name in generic contexts).
OptSingleId gtopt:: Pump:: main_reservoir
Optional ID of the main reservoir whose volume drives the pump's conversion rate. When set, the SDDP solver may update the pump-factor LP coefficient at each forward-pass iteration based on the current reservoir volume (future feature).