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

Add LCC and VSC models with PSS/E Parser #1267

Merged
merged 25 commits into from
Jan 31, 2025

Conversation

rodrigomha
Copy link
Contributor

New PR that superseedes #1205. Too many conflicts with psy5 branch

@rodrigomha rodrigomha marked this pull request as ready for review January 29, 2025 00:18
@@ -34,7 +34,8 @@ export Line
export MonitoredLine
export DCBranch
export TwoTerminalHVDCLine
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export TwoTerminalHVDCLine
export TwoTerminalGenericHVDCLine

Copy link
Member

@jd-lara jd-lara left a 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

Copy link
Collaborator

@GabrielKS GabrielKS left a 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"
Copy link
Collaborator

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

Copy link
Contributor Author

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"],
Copy link
Collaborator

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

Copy link
Contributor Author

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.
Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added #1272

Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@rodrigomha
Copy link
Contributor Author

LGTM I suggested a small name change

Updated with the new name, and also added deprecation for older name so we don't need to update TestData or CaseBuilder for now.

@rodrigomha
Copy link
Contributor Author

Tests are passing locally, but they are failing in some obscure ext thing in 2w transformers.

I think we should merge to 3WTransformer, update everything there, and merge to psy5 asap.

@rodrigomha rodrigomha merged commit 74dfefa into 3WTransformer Jan 31, 2025
1 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants