Skip to content

Commit

Permalink
hotfix shunt index for isolated busses
Browse files Browse the repository at this point in the history
  • Loading branch information
Welthulk committed Apr 13, 2024
1 parent daf354e commit 9628f72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/equicircuit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ function createYBUS(;net::Net, sparse::Bool = true, printYBUS::Bool = false)

for sh in net.shuntVec
node = sh.busIdx
if node in net.isoNodes
continue
end
node -= count(i -> i < node, net.isoNodes)
y = sh.y_pu_shunt
Y[node, node] += y
end
Expand Down

0 comments on commit 9628f72

Please sign in to comment.