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

PowerFlows.jl unified develop branch #53

Merged
merged 140 commits into from
Feb 5, 2025
Merged

Conversation

GabrielKS
Copy link
Contributor

@GabrielKS GabrielKS commented Nov 5, 2024

The hrgks/psse_exporter_psy4 branch has become a unified develop-type branch for lots of new PowerFlows.jl functionality. It now contains the PSS/E exporter implementation as well as some new power flow implementations from @rbolgaryn. Pull requests include:

  1. PSSE Exporter Part 1: Add Tests and Formalize Exporter Implementation #42
  2. PSSE Exporter Part 2: Integrate with PowerSimulations #48
  3. Feature/nr_pf_solver #54
  4. Fix bug 74: enforcing reactive power limits for AC power flow #76
  5. Modify PowerFlowData fields for multi-period AC PF #78
  6. Implement power flow-specific (re)active power limits proxies #79

plus some more commits only in this branch.

HaleyRoss and others added 30 commits August 13, 2024 10:58
src/newton_ac_powerflow.jl Outdated Show resolved Hide resolved
src/newton_ac_powerflow.jl Outdated Show resolved Hide resolved
src/newton_ac_powerflow.jl Outdated Show resolved Hide resolved
src/newton_ac_powerflow.jl Outdated Show resolved Hide resolved
src/post_processing.jl Outdated Show resolved Hide resolved
src/newton_ac_powerflow.jl Outdated Show resolved Hide resolved
src/post_processing.jl Outdated Show resolved Hide resolved
src/post_processing.jl Outdated Show resolved Hide resolved
get_converged(pfd::PowerFlowData) = pfd.converged
get_solver_data(pfd::PowerFlowData) = pfd.solver_data

function clear_injection_data!(pfd::PowerFlowData)
Copy link
Member

Choose a reason for hiding this comment

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

@GabrielKS should we have a clear method that clears all fields?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is used in the power flow in the loop to set all bus injections to zero specifically to enable us to loop over generators and +=. I don't think that's relevant for any other fields, so I wouldn't say that's a priority.

get_active_power_limits_for_power_flow(gen::PSY.RenewableDispatch) =
(min = 0.0, max = PSY.get_rating(gen))

# TODO verify whether this is the correct behavior for Storage, (a) for redistribution and (b) for exporting
Copy link
Member

Choose a reason for hiding this comment

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

open an issue for this. We don't know what the correct approach is yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

-> #88

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.

overall the PR looks good, lets fix the minor comments I left and merge to release this.

end

function load_test_system()
# TODO commit to either providing this file or not requiring it
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that much of the testing here depends on this system_240[32].json file that's not in the case builder. I believe there are plans to eventually put it there, so for now I am gracefully skipping those tests if the file doesn't exist for a given setup — do reviewers (@jd-lara) have input on that?

@rbolgaryn rbolgaryn requested a review from jd-lara February 5, 2025 15:37
@jd-lara jd-lara merged commit 5ecdc6d into main Feb 5, 2025
3 of 6 checks passed
@jd-lara jd-lara mentioned this pull request Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance Improvements PSSe Exporter
5 participants