Skip to content
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
16 changes: 9 additions & 7 deletions 118-Bus/data_118bus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,18 @@ for row in eachrow(line_params)
);
push!(lines, line)
else
local tline = Transformer2W(;
local tline = TwoWindingTransformer(;
name = "line$num",
available = true,
active_power_flow = 0.0,
reactive_power_flow = 0.0,
arc = Arc(; from = nodes[bus_from], to = nodes[bus_to]),
winding = TransformerWinding(;
arc = Arc(; from = nodes[bus_from], to = nodes[bus_to]),
available = true,
active_power_flow = 0.0,
reactive_power_flow = 0.0,
rating = row["Max Flow (MW)"]/100,
),
r = row["Resistance (p.u.)"],
x = row["Reactance (p.u.)"],
primary_shunt = 0.0,
rating = row["Max Flow (MW)"]/100,
magnetizing_shunt = 0.0,
);
push!(tlines, tline)
end
Expand Down
4,277 changes: 4,276 additions & 1 deletion psid_tests/data_tests/9BusSystem.json

Large diffs are not rendered by default.

87,803 changes: 87,802 additions & 1 deletion psid_tests/data_tests/WECC_240_dynamic.json

Large diffs are not rendered by default.

236 changes: 138 additions & 98 deletions psy_data/data_14bus_pu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -253,44 +253,59 @@ branches14_dc(nodes14) = [
1.14, # 69kV limit
1.04,
),
TapTransformer(
"Trans3",
true,
0.0,
0.0,
Arc(from = nodes14[4], to = nodes14[7]),
0.0,
0.20912,
0.0,
0.978,
20.0,
100.0,
),
TapTransformer(
"Trans1",
true,
0.0,
0.0,
Arc(from = nodes14[4], to = nodes14[9]),
0.0,
0.55618,
0.0,
0.969,
20.0,
100.0,
),
TapTransformer(
"Trans2",
true,
0.0,
0.0,
Arc(from = nodes14[5], to = nodes14[6]),
0.0,
0.25202,
0.0,
0.932,
20.0,
100.0,
TwoWindingTransformer(;
name = "Trans3",
winding = TransformerWinding(;
arc = Arc(from = nodes14[4], to = nodes14[7]),
tap = 0.978,
winding_group_number = WindingGroupNumber.UNDEFINED,
control = nothing,
available = true,
rating = 20.0,
active_power_flow = 0.0,
reactive_power_flow = 0.0,
base_power = 100.0,
base_voltage = get_base_voltage(nodes14[4]),
),
r = 0.0,
x = 0.20912,
magnetizing_shunt = 0.0,
),
TwoWindingTransformer(;
name = "Trans1",
winding = TransformerWinding(;
arc = Arc(from = nodes14[4], to = nodes14[9]),
tap = 0.969,
winding_group_number = WindingGroupNumber.UNDEFINED,
control = nothing,
available = true,
rating = 20.0,
active_power_flow = 0.0,
reactive_power_flow = 0.0,
base_power = 100.0,
base_voltage = get_base_voltage(nodes14[4]),
),
r = 0.0,
x = 0.55618,
magnetizing_shunt = 0.0,
),
TwoWindingTransformer(;
name = "Trans2",
winding = TransformerWinding(;
arc = Arc(from = nodes14[5], to = nodes14[6]),
tap = 0.932,
winding_group_number = WindingGroupNumber.UNDEFINED,
control = nothing,
available = true,
rating = 20.0,
active_power_flow = 0.0,
reactive_power_flow = 0.0,
base_power = 100.0,
base_voltage = get_base_voltage(nodes14[5]),
),
r = 0.0,
x = 0.25202,
magnetizing_shunt = 0.0,
),
Line(
"Line8",
Expand Down Expand Up @@ -328,17 +343,22 @@ branches14_dc(nodes14) = [
1.14, # 69kV limit
1.04,
),
Transformer2W(
"Trans4",
true,
0.0,
0.0,
Arc(from = nodes14[7], to = nodes14[8]),
0.0,
0.17615,
0.0,
20.0,
100.0,
TwoWindingTransformer(;
name = "Trans4",
winding = TransformerWinding(;
arc = Arc(from = nodes14[7], to = nodes14[8]),
winding_group_number = WindingGroupNumber.UNDEFINED,
control = nothing,
available = true,
rating = 20.0,
active_power_flow = 0.0,
reactive_power_flow = 0.0,
base_power = 100.0,
base_voltage = get_base_voltage(nodes14[7]),
),
r = 0.0,
x = 0.17615,
magnetizing_shunt = 0.0,
),
Line(
"Line16",
Expand Down Expand Up @@ -499,44 +519,59 @@ branches14(nodes14) = [
1.14, # 69kV limit
1.04,
),
TapTransformer(
"Trans3", # name
true, # available
0.0, # active power flow
0.0, # reactive power flow
Arc(from = nodes14[4], to = nodes14[7]),
0.0, # r
0.20912, # x
0.0, # primary shunt
0.978, # tap
20.0, # rating
100.0, # base power
),
TapTransformer(
"Trans1",
true,
0.0,
0.0,
Arc(from = nodes14[4], to = nodes14[9]),
0.0,
0.55618,
0.0,
0.969,
20.0,
100.0,
),
TapTransformer(
"Trans2",
true,
0.0,
0.0,
Arc(from = nodes14[5], to = nodes14[6]),
0.0,
0.25202,
0.0,
0.932,
20.0,
100.0,
TwoWindingTransformer(;
name = "Trans3",
winding = TransformerWinding(;
arc = Arc(from = nodes14[4], to = nodes14[7]),
tap = 0.978,
winding_group_number = WindingGroupNumber.UNDEFINED,
control = nothing,
available = true,
rating = 20.0,
active_power_flow = 0.0,
reactive_power_flow = 0.0,
base_power = 100.0,
base_voltage = get_base_voltage(nodes14[4]),
),
r = 0.0,
x = 0.20912,
magnetizing_shunt = 0.0,
),
TwoWindingTransformer(;
name = "Trans1",
winding = TransformerWinding(;
arc = Arc(from = nodes14[4], to = nodes14[9]),
tap = 0.969,
winding_group_number = WindingGroupNumber.UNDEFINED,
control = nothing,
available = true,
rating = 20.0,
active_power_flow = 0.0,
reactive_power_flow = 0.0,
base_power = 100.0,
base_voltage = get_base_voltage(nodes14[4]),
),
r = 0.0,
x = 0.55618,
magnetizing_shunt = 0.0,
),
TwoWindingTransformer(;
name = "Trans2",
winding = TransformerWinding(;
arc = Arc(from = nodes14[5], to = nodes14[6]),
tap = 0.932,
winding_group_number = WindingGroupNumber.UNDEFINED,
control = nothing,
available = true,
rating = 20.0,
active_power_flow = 0.0,
reactive_power_flow = 0.0,
base_power = 100.0,
base_voltage = get_base_voltage(nodes14[5]),
),
r = 0.0,
x = 0.25202,
magnetizing_shunt = 0.0,
),
Line(
"Line8",
Expand Down Expand Up @@ -574,17 +609,22 @@ branches14(nodes14) = [
1.14, # 69kV limit
1.04,
),
Transformer2W(
"Trans4",
true,
0.0,
0.0,
Arc(from = nodes14[7], to = nodes14[8]),
0.0,
0.17615,
0.0,
20.0,
100.0,
TwoWindingTransformer(;
name = "Trans4",
winding = TransformerWinding(;
arc = Arc(from = nodes14[7], to = nodes14[8]),
winding_group_number = WindingGroupNumber.UNDEFINED,
control = nothing,
available = true,
rating = 20.0,
active_power_flow = 0.0,
reactive_power_flow = 0.0,
base_power = 100.0,
base_voltage = get_base_voltage(nodes14[7]),
),
r = 0.0,
x = 0.17615,
magnetizing_shunt = 0.0,
),
Line(
"Line16",
Expand Down