line.hpp file
Header for transmission line components.
This module defines data structures for representing AC transmission lines in power system planning models. In DC power-flow (Kirchhoff) mode the reactance determines the flow split between parallel paths. The line also supports capacity-expansion planning.
JSON Example (transmission line)
{ "uid": 1, "name": "l1_4", "bus_a": "b1", "bus_b": "b4", "reactance": 0.0576, "tmax_ab": 250, "tmax_ba": 250 }
JSON Example (phase-shifting transformer)
{ "uid": 5, "name": "pst_1_2", "bus_a": 1, "bus_b": 2, "reactance": 0.05, "type": "transformer", "tap_ratio": 1.02, "phase_shift_deg": -5.0, "tmax_ab": 300, "tmax_ba": 300 }
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/Line/
Namespaces
- namespace gtopt
Classes
- struct gtopt::Line
- Represents a transmission line (branch) connecting two buses.