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

Feature/ucte converter #2498

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0f65001
UCTE converter first code draft (untested)
SteffenMeinecke Oct 28, 2024
efbc1e7
pandas usage improvements
SteffenMeinecke Oct 28, 2024
00c8bc4
Merge branch 'develop' of https://github.com/e2nIEE/pandapower into f…
SteffenMeinecke Nov 7, 2024
4f0e760
add testfile for ucte conversion
SteffenMeinecke Nov 13, 2024
b98286e
Merge branch 'develop' of https://github.com/e2nIEE/pandapower into f…
SteffenMeinecke Nov 13, 2024
1dbced0
ucte converter: add pf results as csv
SteffenMeinecke Nov 13, 2024
892cfab
update ucte converter code
SteffenMeinecke Nov 18, 2024
310bfc6
ucte test ready for comparing power flow results
SteffenMeinecke Nov 18, 2024
0d70564
ucte: test improvements
SteffenMeinecke Nov 20, 2024
df45b2d
ucte target results with voltage dep. load results -> results has cha…
SteffenMeinecke Nov 20, 2024
c85a065
remove empty tutorial
SteffenMeinecke Nov 27, 2024
8cb0864
required standard type parameters are made available by function requ…
SteffenMeinecke Dec 5, 2024
2c1b520
Merge branch 'develop' of https://github.com/e2nIEE/pandapower into f…
SteffenMeinecke Dec 11, 2024
e54dd28
Merge branch 'develop' of https://github.com/e2nIEE/pandapower into f…
SteffenMeinecke Dec 11, 2024
06f87bd
Merge branch 'develop' into feature/make_available_required_std_type_…
SteffenMeinecke Dec 12, 2024
f2afba4
Merge branch 'develop' of https://github.com/e2nIEE/pandapower into f…
SteffenMeinecke Dec 12, 2024
fc33305
pp_import_functions:
SteffenMeinecke Dec 13, 2024
046542c
add missing zone info
SteffenMeinecke Dec 13, 2024
60e841b
fix elements in add_zones_to_elements()
SteffenMeinecke Dec 13, 2024
038f56c
Merge branch 'feature/make_available_required_std_type_params' into f…
SteffenMeinecke Dec 16, 2024
e95448f
add rename_std_type
SteffenMeinecke Dec 16, 2024
f225fd9
some utc test updates
SteffenMeinecke Dec 17, 2024
216592e
complete ucte converter test
SteffenMeinecke Dec 18, 2024
92c535e
(hopefully) complete UCTE converter
SteffenMeinecke Dec 18, 2024
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
Prev Previous commit
Next Next commit
add testfile for ucte conversion
  • Loading branch information
SteffenMeinecke committed Nov 13, 2024
commit 4f0e76002f8d1f5a80eeed8c6999ab9be3514855
3 changes: 2 additions & 1 deletion pandapower/test/converter/test_from_ucte.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_ucte_files():
# pytest.main([__file__, "-xs"])

folder = os.path.join(pp.pp_dir, 'test', 'converter', "testfiles")
file = os.path.join(folder, "pp_test_cases.uct")
file = os.path.join(folder, "test_ucte.uct")

ucte_parser = pc.ucte_parser.UCTEParser(file)
ucte_parser.parse_file()
Expand All @@ -39,4 +39,5 @@ def test_ucte_files():
ucte_converter = pc.ucte_converter.UCTE2pandapower()
net = ucte_converter.convert(ucte_dict=ucte_dict)

print(net)
print()
Binary file not shown.
119 changes: 119 additions & 0 deletions pandapower/test/converter/testfiles/test_ucte.uct
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
##C 2007.05.01
UCTE Export
test_ucte-Berechnungsfall

----- NODE BLOCK -----
_________1_________2_________3_________4_________5_________6_________7_________8_________9________10________11________12________13
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
Node |Node Name |S|T|Volt |PLoad |QLoad |PGen |QGen |Pmin |Pmax |Qmin |Qmax |Sta |Pprim |Sks__ |X/R |T|

##N
##ZAL
ABUS1_1L Bus1_AL 0 3 383.80 0 0 -1123.4 5148.70 9999.00 -9999.0 1827.25 -1827.3
ABUS2_2_ Bus2_1_AL 0 0 1000.00 500.000 0 0
ABUS2_1L Bus2_AL 0 0 0 0 0 0
##ZDE
DEHV1_1E EHV1_DE 0 3 380.00 0 0 -114539 -485934 9999.00 -9999.0 1827.25 -1827.3
DEHV2_1E EHV2_DE 0 0 1140000 500000. 0 0
DHV1_D5 HV1_DE 0 0 0 0 0 0
##ZDK
KBUS1_5K Bus1_DK 0 3 111.10 0 0 -1201.7 19341.5 9999.00 -9999.0 1827.25 -1827.3
KBUS2_5K Bus2_DK 0 0 1200.00 1100.00 0 0
##ZES
EBUS1_1S Bus1_ES 0 3 383.80 0 0 -12516. 195166. 9999.00 -9999.0 1827.25 -1827.3
EBUS2_1S Bus2_ES 0 2 385.32 1000.00 500.000 6159.37 -94538.
EKLEMM1E Klemmleiste( 0 2 385.32 500.000 250.000 4675.52 -95919.
##ZFR
FBUS1_1R Bus1_FR 0 3 383.80 0 0 490057. 123763. 9999.00 -9999.0 1827.25 -1827.3
FBUS2_1_ Bus2_1_FR 0 3 387.60 0 0 -492539 -121861 9999.00 -9999.0 1827.25 -1827.3
FBUS2_1R Bus2_FR 0 0 0 0 0 0
##ZHU
MBUS1_1U Bus1_HU 0 3 383.80 0 0 -1724.2 4888.17 9999.00 -9999.0 1827.25 -1827.3
MBUS2_1U Bus2_HU 0 2 383.81 0 0 1724.19 1322.17 9999.00 -9999.0 1.32217 1.32217
##ZHR
HBUS1_1_ Bus1_1_HR 0 3 383.80 0 0 -110.58 7315.43 9999.00 -9999.0 1827.25 -1827.3
HBUS1_1K Bus1_HK 0 3 383.80 0 0 -221.14 8420.41 9999.00 -9999.0 1827.25 -1827.3
HBUS2_1_ Bus2_1_HR 0 0 110.496 -1105.0 0 0
HBUS2_1K Bus2_HK 0 0 221.002 -2210.0 0 0
##ZIT
IBUS1_1T Bus1_IT 0 3 383.80 0 0 -700.02 5010.44 9999.00 -9999.0 1827.25 -1827.3
IBUS2_1T Bus2_IT 0 0 1200.00 1100.00 -500.00 100.000 0 -9999.0 1.00000 -1.0000
##ZLU
1BUS1_1_ Bus1_1_LU 0 3 383.80 0 0 -700.33 11122.4 9999.00 -9999.0 1827.25 -1827.3
1BUS1_1U Bus1_LU 0 3 383.80 0 0 -1244.5 -229828 9999.00 -9999.0 1827.25 -1827.3
1BUS2_1_ Bus2_1_LU 0 0 0 0 0 0
1BUS2_10 Bus2_2_LU 0 0 1200.00 1100.00 -500.00 200.000 0 -9999.0 1.00000 -1.0000
1BUS2_11 Bus2_3_LU 0 0 0 0 0 0
1BUS2_1U Bus2_LU 0 2 380.00 1200.00 1100.00 -500.00 238692. 0 -9999.0 1.00000 -1.0000
##ZNL
NBUS1_1_ Bus1_1_NL 0 3 383.80 0 0 -10021. 197160. 9999.00 -9999.0 1827.25 -1827.3
NBUS1_1L Bus1_NL 0 3 383.80 0 0 -5239.0 105764. 9999.00 -9999.0 1827.25 -1827.3
NBUS2_1_ Bus2_1_NL 0 2 385.34 0 0 9836.02 -191716
NBUS2_1L Bus2_NL 0 2 384.62 0 0 5187.39 -99762. 9999.00 -9999.0 -99.762 -99.762
##ZRS
JBUS1_1S Bus1_RS 0 3 383.80 0 0 -368.19 5950.42 9999.00 -9999.0 1827.25 -1827.3
JBUS2_1S Bus2_RS 0 0 0 0 0 0
JBUS3_5S Bus3_RS 0 0 200.000 50.0000 0 0
##C

----- LINE BLOCK -----
_________1_________2_________3_________4_________5_________6_________7
1234567890123456789012345678901234567890123456789012345678901234567890
Node 1 |Node 2 |O|S|R(Ohm)|X(Ohm)|B(uS) |I(A) |Element Name|

##L
ABUS2_1L ABUS1_1L 1 0 0.7198 3.0866 42.16017 768 line1_AL
DEHV1_1E DEHV2_1E 1 0 0.7375 3.1625 172.7876 1920 Line1_DE
DEHV1_1E DEHV2_1E 2 0 1.4750 6.3250 86.39380 960 Line2_DE
KBUS2_5K KBUS1_5K 1 0 0.3660 0.8784 1103.830 941 line1_DK
KBUS2_5K KBUS1_5K 2 8 0.7320 1.7568 551.9150 470 line2_DK
KBUS2_5K KBUS1_5K 3 8 0.7320 1.7568 551.9150 470 line3_DK
EBUS2_1S EBUS1_1S 1 0 0.7198 3.0866 42.16017 768 line1_ES
EBUS2_1S EKLEMM1E 1 2 0 0 0 999999 LS/TR Schalt
FBUS2_1_ FBUS2_1R 1 0 0.7198 3.0866 42.16017 768 line2_FR
FBUS2_1R FBUS1_1R 1 0 0.7198 3.0866 42.16017 768 line1_FR
MBUS1_1U MBUS2_1U 1 0 0.7198 3.0866 42.16017 768 line1_HU
HBUS1_1_ HBUS2_1_ 1 0 0.7198 3.0866 42.16017 768 line2_HR
HBUS1_1K HBUS2_1K 1 0 0.7198 3.0866 42.16017 768 line1_HR
IBUS1_1T IBUS2_1T 1 0 0.7198 3.0866 42.16017 768 line1_IT
1BUS1_1_ 1BUS2_11 1 0 0.7198 3.0866 42.16017 768 line3_LU
1BUS1_1U 1BUS2_1_ 1 0 0.7198 3.0866 42.16017 768 line1_LU
1BUS2_1_ 1BUS2_1U 1 0 0.7198 3.0866 42.16017 768 line2_LU
1BUS2_11 1BUS2_10 1 0 0.7198 3.0866 42.16017 768 line4_LU
NBUS1_1_ NBUS2_1_ 1 0 0.7198 3.0866 42.16017 768 line2_NL
NBUS1_1L NBUS2_1L 1 0 0.7198 3.0866 42.16017 768 line1_NL
JBUS1_1S JBUS2_1S 1 0 0.7198 3.0866 42.16017 768 line1_RS
##C

----- 2 WINDING TRANSFORMER BLOCK -----
_________1_________2_________3_________4_________5_________6_________7_________8_________9
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
Node 1 |Node 2 |O|S|U1 |U2 |Sn |R(Ohm)|X(Ohm)|B(uS) |G(uS) |I(A) |Element Name|

##T
ABUS2_2_ ABUS2_1L 1 1 220.0 380.0 9999. 484.00 242.00 0 0 26241 Allgemeine I
DHV1_D5 DEHV1_1E 1 0 110.0 380.0 160.0 0.1891 9.2243 -6.19339 4.9587 840 trafo1_DE
JBUS3_5S JBUS2_1S 1 0 110.0 380.0 320.0 0.0945 4.6122 -12.3868 9.9174 1680 trafo1_RS
JBUS3_5S JBUS2_1S 2 8 110.0 380.0 160.0 0.1891 9.2243 -6.19339 4.9587 840 trafo2_RS
JBUS3_5S JBUS2_1S 3 8 110.0 380.0 160.0 0.1891 9.2243 -6.19339 4.9587 840 trafo3_RS
##C

----- 2 WINDINGS TRANSFORMERS REGULATION BLOCK -----
_________1_________2_________3_________4_________5_________6_________7
1234567890123456789012345678901234567890123456789012345678901234567890
Node 1 |Node 2 |O|du |mx|Tap|U |du |phitr|mx|Tap|P |Type|

##R
ABUS2_2_ ABUS2_1L 1
DHV1_D5 DEHV1_1E 1 1.500 9 0
JBUS3_5S JBUS2_1S 1 1.500 9 3
JBUS3_5S JBUS2_1S 2 1.500 9 3
JBUS3_5S JBUS2_1S 3 1.500 9 0
##C

----- 2 WINDINGS TRANSFORMERS DEPENDING ON THE TAP POSITION BLOCK -----
_________1_________2_________3_________4_________5_________6
123456789012345678901234567890123456789012345678901234567890
Node 1 |Node 2 |O| |Tap|R(Ohm)|X(Ohm)|du |phi |

##TT