Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding vectorgroup dynyn to 3w-transformer #2283

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Change Log
- [ADDED] support for unequal leakage resistance and reactance for HV and LV sides of a 2W-transformer
- [ADDED] Add VSC element, dc buses, dc lines, and hybrid AC/DC power flow calculation
- [CHANGED] accelerate _integrate_power_elements_connected_with_switch_buses() in get_equivalent()
- [ADDED] Added vectorgroup Dynyn and corrected vectorgroup Ynyy

[2.14.7] - 2024-06-14
-------------------------------
Expand Down
12 changes: 10 additions & 2 deletions pandapower/pd2ppc_zero.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,16 @@ def _add_trafo3w_sc_impedance_zero(net, ppc):
r[[t3_ix + n_t3, t3_ix + n_t3 * 2]] = BIG_NUMBER
elif t3.vector_group.lower() == "ynyy":
# Correction for YNyy
x[[t3_ix, t3_ix + n_t3, t3_ix + n_t3 * 2]] = BIG_NUMBER
r[[t3_ix, t3_ix + n_t3, t3_ix + n_t3 * 2]] = BIG_NUMBER
x[[t3_ix + n_t3, t3_ix + n_t3 * 2]] = BIG_NUMBER
r[[t3_ix + n_t3, t3_ix + n_t3 * 2]] = BIG_NUMBER
elif t3.vector_group.lower() == "dynyn":
# Correction for Dynyn
ys = ppc["baseMVA"] / ((x[t3_ix] * 1j + r[t3_ix]) * ratio[t3_ix] ** 2)
aux_bus = bus_lookup[lv_bus[t3_ix]]
ppc["bus"][aux_bus, BS] += ys.imag
ppc["bus"][aux_bus, GS] += ys.real
x[t3_ix] = BIG_NUMBER
r[t3_ix] = BIG_NUMBER
else:
raise UserWarning(f"{t3.vector_group} not supported yet for trafo3w!")

Expand Down
5 changes: 3 additions & 2 deletions pandapower/test/shortcircuit/test_1ph.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_1ph_shortcircuit():
def test_1ph_shortcircuit_3w():
# vector groups without "N" have no impact on the 1ph
# here we check both functions, with Y invertion and with LU factorization for individual buses
# The cuirrents are taken from the calculation with commercial software for reference
# The currents are taken from the calculation with commercial software for reference
results = {
"ddd": [1.5193429, 0, 0],
"ddy": [1.5193429, 0, 0],
Expand All @@ -99,7 +99,8 @@ def test_1ph_shortcircuit_3w():
"ynynd": [1.783257, 3.499335, 0],
"yndyn": [1.79376470, 0, 9.04238714], # ok
"yndd": [1.843545, 0, 0],
"ynyy": [1.5193429, 0, 0] # ok but why?
"ynyy": [1.5193429, 0, 0], # ok but why?
"dynyn": [1.51934281, 3.4130868, 8.86290334] # Please verify with your commercial software -> results from sc calculations
}

for vg, result in results.items():
Expand Down