Turbine struct
#include <gtopt/turbine.hpp>
Hydroelectric turbine converting water flow into electrical power.
A turbine draws water from a waterway, converts it at conversion_rate into electrical power at the linked generator, and passes the remaining flow to the downstream junction of the waterway.
When main_reservoir is specified, the turbine's conversion rate may be updated dynamically by the SDDP solver using the piecewise-linear efficiency curve from the corresponding ReservoirProductionFactor element.
Public variables
- OptActive active
- Activation status (default: active)
- OptTRealFieldSched capacity
- Maximum turbine power output [MW].
- OptTRealFieldSched conversion_rate
- Water-to-power conversion factor [MW·s/m³].
- OptBool drain
- If true, turbine can spill water without generating power.
- OptSingleId flow
- ID of the connected flow (alternative to waterway)
- SingleId generator
- ID of the connected electrical generator.
- OptSingleId main_reservoir
- Name name
- Human-readable name.
- Uid uid
- Unique identifier.
- OptSingleId waterway
- ID of the connected waterway (optional if flow set)
Variable documentation
OptSingleId gtopt:: Turbine:: main_reservoir
Optional ID of the main reservoir whose volume drives the turbine's conversion rate. When set, the SDDP solver will update the conversion-rate LP coefficient at each forward-pass iteration based on the current reservoir volume and the matching ReservoirProductionFactor element's piecewise-linear curve. The ReservoirProductionFactor element must reference this turbine's UID in its turbine field and the reservoir's UID in its reservoir field.