Synthetic Grids Reference

Public API

Sparlectra.build_synthetic_tiled_grid_netMethod
build_synthetic_tiled_grid_net(max_buses::Int; kwargs...) -> (net, metadata)

Build a deterministic synthetic rectangular tiled-grid AC network.

The topology has rows * cols buses, horizontal branches, vertical branches, and one diagonal branch in each rectangular tile from the upper-left bus to the lower-right bus. Branches are Sparlectra PI-model AC lines whose series impedance is r + im*x in p.u. and whose total shunt admittance is g + im*b in p.u.; Sparlectra's branch model splits that shunt half/half in flow and Y-bus calculations.

Bus roles follow the other benchmark convention: the upper-left bus is the slack bus, the lower-left bus has scheduled generation, and the upper-right and lower-right buses have scheduled PQ loads. Power metadata values are reported in MW/MVAr; line parameters and voltages are in per unit.

Keyword defaults

aspect_ratio = 1.0, base_mva = 100.0, r = 0.01, x = 0.05, g = 0.0, b = 0.0, load_mw_per_right_corner = 50.0, load_mvar_per_right_corner = 15.0, generation_balance = 0.995, vm_slack = 1.0, vm_flat = 1.0.

source
Sparlectra.synthetic_tiled_grid_bus_indexMethod
synthetic_tiled_grid_bus_index(row::Int, col::Int, cols::Int)::Int

Return the deterministic row-major bus index for a synthetic tiled grid. Rows and columns are one-based, so row = 1, col = 1 is the upper-left bus.

source