-
Notifications
You must be signed in to change notification settings - Fork 88
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
Add LCC and VSC models with PSS/E Parser #1267
Conversation
Co-authored-by: mcllerena <[email protected]>
Co-authored-by: mcllerena <[email protected]>
Co-authored-by: mcllerena <[email protected]>
Co-authored-by: mcllerena <[email protected]>
Co-authored-by: mcllerena <[email protected]>
Co-authored-by: mcllerena <[email protected]>
Co-authored-by: mcllerena <[email protected]>
Co-authored-by: mcllerena <[email protected]>
src/PowerSystems.jl
Outdated
@@ -34,7 +34,8 @@ export Line | |||
export MonitoredLine | |||
export DCBranch | |||
export TwoTerminalHVDCLine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export TwoTerminalHVDCLine | |
export TwoTerminalGenericHVDCLine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM I suggested a small name change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor comments.
function make_dcline(name::String, d::Dict, bus_f::ACBus, bus_t::ACBus) | ||
return TwoTerminalHVDCLine(; | ||
function make_dcline(name::String, d::Dict, bus_f::ACBus, bus_t::ACBus, source_type::String) | ||
if source_type == "pti" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use Val
to dispatch on source_type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's possible but an overkill IMO, so we should be fine
active_power_flow = get(d, "pf", 0.0), | ||
r = d["r"], | ||
transfer_setpoint = d["transfer_setpoint"], | ||
scheduled_dc_voltage = d["scheduled_dc_voltage"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could do some kwargs...
splatting to streamline this arguments list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... maybe next time?
@@ -789,6 +789,7 @@ function read_dcline!( | |||
bus_number_to_bus::Dict{Int, ACBus}; | |||
kwargs..., | |||
) | |||
# TODO: We should be able to get this PowerFlowData LCC lines working in future work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an issue for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added #1272
test/test_data/lcc_test.raw
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this exists as two-terminal-hvdc_test.raw
in PowerSystemsTestData, can we use that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Co-authored-by: mcllerena <[email protected]>
Co-authored-by: <[email protected]>
Updated with the new name, and also added deprecation for older name so we don't need to update TestData or CaseBuilder for now. |
Tests are passing locally, but they are failing in some obscure I think we should merge to 3WTransformer, update everything there, and merge to psy5 asap. |
New PR that superseedes #1205. Too many conflicts with psy5 branch