-
Notifications
You must be signed in to change notification settings - Fork 151
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
Fix PSSE raw import for gen_status at load buses #934
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #934 +/- ##
==========================================
- Coverage 94.06% 93.57% -0.50%
==========================================
Files 43 42 -1
Lines 9665 9627 -38
==========================================
- Hits 9091 9008 -83
- Misses 574 619 +45
... and 19 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@ccoffrin can you review this please? |
Sorry for the delay @KSepetanc. I have no way of verifying these semantics of PSSE. @jd-lara or @frederikgeth are you able to verify this behavior? @KSepetanc, before merging we will need to add a test for this behavior so that we don't have a future regression. |
not able to verify, sorry, but can confirm he actual status of a machine is determined both by its status flag and the bus type code. |
@ccoffrin I can not find any network in the PowerModels test/data/pti that has generator placed at load bus. I am not very comfortable modifying those frankenstein networks (presumably test construct should be something like this (in
|
I have modified Do you think we need to add memento log in |
@ccoffrin do you have someone else who can check this? I would like to close this issue soon. |
There is free trial version of PSSE with full computation support for up-to 50 buses. Can that help with the review? |
Is there any documentation that we can link to that confirms this is the expected behavior? Otherwise, @KSepetanc could you construct an example in PSSE that confirms the problem? (e.g., with screenshots?) |
Image below shows no power going out of generator 1 at the shown bus. Bus type is seen in the text on the left (type 1 which is load bus). Generator is active and set to produce 10 MW and 10 Mvar (but does not inject anything). Turning generator on or off has no effect on power flows. Generators at generator buses that have injections are shown in similar way as loads on the upper part of the image (loads at load buses are not ignored). I used psse 35.1. I also have v34 and the result is the same. I will accept proposed revision. Below is example where bus type is changed to type 2. Generator is now used by PSSE. |
Co-authored-by: Oscar Dowson <[email protected]>
Thanks. I don't have the domain expertise to know if this is correct, but it should help @ccoffrin review without needing to do work on his side. |
Fixes #932 .
PSSE ignores generators at load buses (bus type 1). It does not use this flag to determine if the generator is PV or PQ which is different from Matpower. Instead, it uses
Machine Control Mode
parameter found in panelMachine Data Record -> Wind Data -> Control Mode
or in theMachine
sheet.As such fix needs to be implemented only for PSSE and there are no changes for Matpower. Thus, the only change is in
src\io\psse.jl
.Consider adding
Memento
warning before merging.