Skip to content

Commit 90b2d7e

Browse files
committed
fix: update load configuration check to string comparison and add TODO comments for impedance merge
1 parent 56b533d commit 90b2d7e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/modules/PMDUtils.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,7 +2398,7 @@ end
23982398
function _add_delta_readings(pf_sol, math, math_meas)
23992399

24002400
for (l, load) in math["load"]
2401-
if load["configuration"] == DELTA
2401+
if string(load["configuration"]) == "DELTA"
24022402
pf_sol["load"][l]["ptot"] = [sum(real(value) for (key, value) in pf_sol["load"][l]["power"])]
24032403
pf_sol["load"][l]["qtot"] = [sum(imag(value) for (key, value) in pf_sol["load"][l]["power"])]
24042404

@@ -3192,8 +3192,8 @@ function reduce_network_intermediate_buses!(data::Dict)
31923192
end
31933193

31943194
# --- IMPEDANCE MERGE ---
3195-
br1["br_r"] = br1["br_r"][idx1, idx1] .+ br2["br_r"][idx2, idx2]
3196-
br1["br_x"] = br1["br_x"][idx1, idx1] .+ br2["br_x"][idx2, idx2]
3195+
br1["br_r"] = br1["br_r"][idx1, idx1] .+ br2["br_r"][idx2, idx2] #TODO: if transformer impedance -- make sure to update the v_base and per_unit
3196+
br1["br_x"] = br1["br_x"][idx1, idx1] .+ br2["br_x"][idx2, idx2] #TODO: if transformer impedance -- make sure to update the v_base and per_unit
31973197

31983198
# --- CONNECTION & RATINGS UPDATE ---
31993199
br1["f_connections"] = common

0 commit comments

Comments
 (0)