Skip to content

Commit

Permalink
fix #743 transformer p.u. x, r and so will not be updated after lopf …
Browse files Browse the repository at this point in the history
…iteration
  • Loading branch information
ulfmueller authored Jun 6, 2024
1 parent 6319cfa commit 6710164
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions etrago/execute/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,34 +73,18 @@ def update_electrical_parameters(network, l_snom_pre, t_snom_pre):
network.lines.x * l_snom_pre / network.lines.s_nom_opt
)

network.transformers.x[network.transformers.s_nom_extendable] = (
network.transformers.x * t_snom_pre / network.transformers.s_nom_opt
)

network.lines.r[network.lines.s_nom_extendable] = (
network.lines.r * l_snom_pre / network.lines.s_nom_opt
)

network.transformers.r[network.transformers.s_nom_extendable] = (
network.transformers.r * t_snom_pre / network.transformers.s_nom_opt
)

network.lines.g[network.lines.s_nom_extendable] = (
network.lines.g * network.lines.s_nom_opt / l_snom_pre
)

network.transformers.g[network.transformers.s_nom_extendable] = (
network.transformers.g * network.transformers.s_nom_opt / t_snom_pre
)

network.lines.b[network.lines.s_nom_extendable] = (
network.lines.b * network.lines.s_nom_opt / l_snom_pre
)

network.transformers.b[network.transformers.s_nom_extendable] = (
network.transformers.b * network.transformers.s_nom_opt / t_snom_pre
)

# Set snom_pre to s_nom_opt for next iteration
l_snom_pre = network.lines.s_nom_opt.copy()
t_snom_pre = network.transformers.s_nom_opt.copy()
Expand Down

0 comments on commit 6710164

Please sign in to comment.