Skip to content

Commit

Permalink
add new test and 5circuit 3w archives
Browse files Browse the repository at this point in the history
  • Loading branch information
mcllerena committed Jan 17, 2025
1 parent 8ef70c2 commit 35a81c4
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 1 deletion.
53 changes: 53 additions & 0 deletions test/test_data/5circuit_3w.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
0, 100.00, 33, 0, 1, 60.00
A Frankenstein network for testing three-winding transformers
developed by Carleton Coffrin ([email protected]) & David Fobes ([email protected]) April 2018
1001,'FAV SPOT 01', 250.0000,1, 101, 201, 301, 1.10000, -4.0000,1.10000, 0.90000, 1.10000, 0.90000
1002,'FAV SPOT 02', 10.0000,3, 101, 201, 301, 1.00000, 0.0000,1.10000, 0.90000, 1.10000, 0.90000
1003,'FAV SPOT 03', 10.0000,2, 101, 201, 301, 1.00000, 0.0000,1.10000, 0.90000, 1.10000, 0.90000
0 / END OF BUS DATA, BEGIN LOAD DATA
1001,'L0',1, 101, 201, 10.000, 2.500, 0.000, 0.000, 0.000, 0.000, 301,1
0 / END OF LOAD DATA, BEGIN FIXED SHUNT DATA
0 / END OF FIXED SHUNT DATA, BEGIN GENERATOR DATA
1002,'W1', 40.000, 0.050, 40.000, -35.000,1.00000, 0, 90.000, 0.00000, 0.20000, 0.00000, 0.00000,1.00000,1, 50.0, 75.000, -75.000, 3,1.0000
1003,'W2', 40.000, 1.000, 40.000, -35.000,1.00000, 0, 90.000, 0.00000, 0.20000, 0.00000, 0.00000,1.00000,1, 50.0, 75.000, -75.000, 3,1.0000
0 / END OF GENERATOR DATA, BEGIN BRANCH DATA
0 / END OF BRANCH DATA, BEGIN TRANSFORMER DATA
1001,1002,1003,'A ',1,1,1, 0.00000, 0.00000,2,'T1 3W',0, 301,1.0000, 0,1.0000, 0,1.0000, 0,1.0000,' '
4.50000E-3,2.00000E-1, 100.00,7.00000E-4,3.00000E-1, 100.00,7.00000E-4,2.00000E-1, 100.00,1.00000, -5.00000
1.10000, 0.000, 0.000, 200.00, 200.00, 400.00, 0, 1002, 1.25000, 0.75000, 1.10000, 0.90000, 23, 0, 0.00000, 0.00000, 0.0
1.00000, 0.000, 0.000, 100.00, 100.00, 100.00, 0, 0, 1.10000, 0.90000, 1.10000, 0.90000, 33, 0, 0.00000, 0.00000, 0.0
1.00000, 0.000, 0.000, 100.00, 100.00, 100.00, 0, 0, 1.10000, 0.90000, 1.10000, 0.90000, 33, 0, 0.00000, 0.00000, 0.0
1001,1002,1003,'B ',1,1,1, 0.00000, 0.00000,2,'T1 3W',1, 301,1.0000, 0,1.0000, 0,1.0000, 0,1.0000,' '
4.50000E-3,2.00000E-1, 100.00,7.00000E-4,3.00000E-1, 100.00,7.00000E-4,2.00000E-1, 100.00,1.00000, -5.00000
1.10000, 0.000, 0.000, 200.00, 200.00, 400.00, 0, 1002, 1.25000, 0.75000, 1.10000, 0.90000, 23, 0, 0.00000, 0.00000, 0.0
1.00000, 0.000, 0.000, 100.00, 100.00, 100.00, 0, 0, 1.10000, 0.90000, 1.10000, 0.90000, 33, 0, 0.00000, 0.00000, 0.0
1.00000, 0.000, 0.000, 100.00, 100.00, 100.00, 0, 0, 1.10000, 0.90000, 1.10000, 0.90000, 33, 0, 0.00000, 0.00000, 0.0
1001,1002,1003,'C ',1,1,1, 0.00000, 0.00000,2,'T1 3W',2, 301,1.0000, 0,1.0000, 0,1.0000, 0,1.0000,' '
4.50000E-3,2.00000E-1, 100.00,7.00000E-4,3.00000E-1, 100.00,7.00000E-4,2.00000E-1, 100.00,1.00000, -5.00000
1.10000, 0.000, 0.000, 200.00, 200.00, 400.00, 0, 1002, 1.25000, 0.75000, 1.10000, 0.90000, 23, 0, 0.00000, 0.00000, 0.0
1.00000, 0.000, 0.000, 100.00, 100.00, 100.00, 0, 0, 1.10000, 0.90000, 1.10000, 0.90000, 33, 0, 0.00000, 0.00000, 0.0
1.00000, 0.000, 0.000, 100.00, 100.00, 100.00, 0, 0, 1.10000, 0.90000, 1.10000, 0.90000, 33, 0, 0.00000, 0.00000, 0.0
1001,1002,1003,'D ',1,1,1, 0.00000, 0.00000,2,'T1 3W',3, 301,1.0000, 0,1.0000, 0,1.0000, 0,1.0000,' '
4.50000E-3,2.00000E-1, 100.00,7.00000E-4,3.00000E-1, 100.00,7.00000E-4,2.00000E-1, 100.00,1.00000, -5.00000
1.10000, 0.000, 0.000, 200.00, 200.00, 400.00, 0, 1002, 1.25000, 0.75000, 1.10000, 0.90000, 23, 0, 0.00000, 0.00000, 0.0
1.00000, 0.000, 0.000, 100.00, 100.00, 100.00, 0, 0, 1.10000, 0.90000, 1.10000, 0.90000, 33, 0, 0.00000, 0.00000, 0.0
1.00000, 0.000, 0.000, 100.00, 100.00, 100.00, 0, 0, 1.10000, 0.90000, 1.10000, 0.90000, 33, 0, 0.00000, 0.00000, 0.0
1001,1002,1003,'E ',1,1,1, 0.00000, 0.00000,2,'T1 3W',4, 301,1.0000, 0,1.0000, 0,1.0000, 0,1.0000,' '
4.50000E-3,2.00000E-1, 100.00,7.00000E-4,3.00000E-1, 100.00,7.00000E-4,2.00000E-1, 100.00,1.00000, -5.00000
1.10000, 0.000, 0.000, 200.00, 200.00, 400.00, 0, 1002, 1.25000, 0.75000, 1.10000, 0.90000, 23, 0, 0.00000, 0.00000, 0.0
1.00000, 0.000, 0.000, 100.00, 100.00, 100.00, 0, 0, 1.10000, 0.90000, 1.10000, 0.90000, 33, 0, 0.00000, 0.00000, 0.0
1.00000, 0.000, 0.000, 100.00, 100.00, 100.00, 0, 0, 1.10000, 0.90000, 1.10000, 0.90000, 33, 0, 0.00000, 0.00000, 0.0
0 / END OF TRANSFORMER DATA, BEGIN AREA DATA
0 / END OF AREA DATA, BEGIN TWO-TERMINAL DC DATA
0 / END OF TWO-TERMINAL DC DATA, BEGIN VOLTAGE SOURCE CONVERTER DATA
0 / END OF VOLTAGE SOURCE CONVERTER DATA, BEGIN IMPEDANCE CORRECTION DATA
0 / END OF IMPEDANCE CORRECTION DATA, BEGIN MULTI-TERMINAL DC DATA
0 / END OF MULTI-TERMINAL DC DATA, BEGIN MULTI-SECTION LINE DATA
0 / END OF MULTI-SECTION LINE DATA, BEGIN ZONE DATA
0 / END OF ZONE DATA, BEGIN INTER-AREA TRANSFER DATA
0 / END OF INTER-AREA TRANSFER DATA, BEGIN OWNER DATA
0 / END OF OWNER DATA, BEGIN FACTS CONTROL DEVICE DATA
0 / END OF FACTS CONTROL DEVICE DATA, BEGIN SWITCHED SHUNT DATA
0 /END OF SWITCHED SHUNT DATA, BEGIN GNE DEVICE DATA
0 /END OF GNE DEVICE DATA
Q
18 changes: 17 additions & 1 deletion test/test_parse_psse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ end

@testset "PSSE Component Parsing" begin
@info "Testing Load Parsing"
sys = build_system(PSYTestSystems, "psse_240_parsing_sys") # current/imedance_power read in natural units during parsing
sys = build_system(PSYTestSystems, "psse_240_parsing_sys") # current/impedance_power read in natural units during parsing
@test get_current_active_power(get_component(StandardLoad, sys, "load10021")) == 223.71
@test get_impedance_reactive_power(get_component(StandardLoad, sys, "load10021")) ==
583.546
Expand All @@ -38,6 +38,22 @@ end
@test get_status(get_component(ThermalStandard, sys, "generator-2438-EG")) == 1
@test get_available(get_component(ThermalStandard, sys, "generator-2438-EG")) == 1

sys3 = build_system(PSSEParsingTestSystems, "psse_ACTIVSg2000_sys")
sys4 = build_system(PSSEParsingTestSystems, "pti_frankenstein_70_sys")

base_dir = string(dirname(@__FILE__))
file_dir = joinpath(base_dir, "test_data", "5circuit_3w.raw")
sys5 = System(file_dir)

@info "Testing Three-Winding Transformer Parsing"
@test get_available(get_component(Transformer3W, sys3, "1")) == true
@test get_available(get_component(Transformer3W, sys5, "1")) == false
@test length(get_components(Transformer3W, sys5)) == 5

@info "Testing Switched Shunt Parsing"
@test get_status(get_component(SwitchedAdmittance, sys3, "1")) == 0
@test get_status(get_component(SwitchedAdmittance, sys4, "1")) == 1

@info "Testing Load Zone Formatter"
PSB.clear_serialized_systems("psse_Benchmark_4ger_33_2015_sys")
sys3 = build_system(
Expand Down

0 comments on commit 35a81c4

Please sign in to comment.