line_dlr.hpp file
Dynamic line rating (DLR) through critical spans — schema.
A Line may carry an optional dlr object. It lists one or more CRITICAL SPANS — the spans whose conductor temperature limits the line (Matus et al., "Identification of Critical Spans for Monitoring Systems
in Dynamic Thermal Rating", IEEE Trans. Power Delivery 27(2), 2012, DOI 10.1109/TPWRD.2012.2185254). A single representative span is a valid and common case. How the spans are SELECTED is out of scope here (Python tooling); gtopt only consumes the list.
Each span carries a per-(scenario, stage, block) weather forecast (ambient temperature, wind speed and direction, solar irradiance on the conductor). At LP build gtopt computes, per block, each span's steady-state ampacity with the IEEE Std 738 heat balance (ieee738.hpp), converts it to MW and limits the line flow by the minimum (span_mode = "min") or by one row per span ("rows"). Weather is exogenous, so the rating is a per-block right-hand side and the LP stays linear. A precomputed per-span MW schedule (rating) bypasses IEEE 738.
JSON Example
"dlr": { "conductor": {"diameter": 0.02814, "r25": 7.283e-5, "r75": 8.688e-5, "emissivity": 0.8, "absorptivity": 0.8, "subconductors": 1}, "tmax_conductor": 75, "tmax_conductor_emergency": 100, "voltage": 220, "critical_spans": [ {"uid": 1, "name": "s1", "azimuth": 35, "elevation": 420, "ambient_temperature": 25, "wind_speed": "dlr_wind_speed", "wind_direction": 270, "solar_irradiance": [[[0, 800]]]} ] }
Weather fields (and rating) are STB schedules: a scalar, a 3-D inline array [scenario][stage][block], or a file name resolved as input_directory/Line/<name>.{parquet,csv} in long layout (scenario, stage, block, uid, value) where uid is the SPAN uid.
Namespaces
- namespace gtopt
Classes
- struct gtopt::CriticalSpan
- One critical span of a DLR line.
- struct gtopt::DlrConductor
- struct gtopt::LineDlr
- Dynamic line rating of a Line through its critical spans.