gtopt/waterway.hpp file

Header for waterway components in hydro power systems.

This module defines the Waterway structure representing a water channel connecting two hydraulic junctions. Waterways carry water flow between junctions and are the analogue of transmission lines in the hydraulic network.

Flow units: m³/s (cubic metres per second).

JSON Example (cascade — both junctions set)

{
  "uid": 1,
  "name": "w1_2",
  "junction_a": "j1",
  "junction_b": "j2",
  "fmin": 0,
  "fmax": 300
}

JSON Example (outflow — junction_b omitted)

{
  "uid": 2,
  "name": "w_outflow",
  "junction_a": "j_terminal",
  "fcost": 3.6
}

The carried flow drains directly out of the system at junction_a, so no synthetic ocean / sink junction is required. Useful for spillage arcs (PLP Vert_*) when keeping the flow visible is more informative than collapsing it onto a Junction.drain column.

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

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

Namespaces

namespace gtopt

Classes

struct gtopt::Waterway
Water channel connecting two hydraulic junctions.