-
Notifications
You must be signed in to change notification settings - Fork 11
Run load flow with main synchronous component mode #1292
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
base: ci/core-7.1.0-SNAPSHOT
Are you sure you want to change the base?
Conversation
Signed-off-by: Clement Philipot <[email protected]>
Signed-off-by: Clement Philipot <[email protected]>
Signed-off-by: PRABAKARAN Sylvestre <[email protected]>
Signed-off-by: PRABAKARAN Sylvestre <[email protected]>
Signed-off-by: PRABAKARAN Sylvestre <[email protected]>
bf25059 to
a00e87b
Compare
Signed-off-by: Didier Vidal <[email protected]>
| .setBreakers(breakers) | ||
| .setPlausibleActivePowerLimit(lfParametersExt.getPlausibleActivePowerLimit()) | ||
| .setComputeMainConnectedComponentOnly(true) | ||
| .setComponentMode(lfParameters.getComponentMode()) |
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.
Did you change the behaviour on purpose ?
Per line 404 (in analyze) the DC sensitivity analysis seems to only run analysis on the main synchronous in reality.
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.
No this is indeed a mistake to be fixed, thanks.
| Network network = HvdcNetworkFactory.createVsc(); | ||
| LoadFlow.Runner loadFlowRunner = new LoadFlow.Runner(new OpenLoadFlowProvider(new DenseMatrixFactory())); | ||
| LoadFlowParameters parameters = new LoadFlowParameters(); | ||
|
|
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.
The test would provide more coverage if there was a disconnected component (ALL_COMPONENTS != MAIN_CONNECTED)
| assertEquals(4, lfResultMainConnected.getComponentResults().size()); // 4 SCs | ||
| assertEquals(1, lfResultMainSynchronous.getComponentResults().size()); // 1 SC | ||
|
|
||
| var saResultMainSynchronous = runSecurityAnalysis(network, Collections.emptyList(), createNetworkMonitors(network), lfParametersMainConnected); |
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.
Did you intend to run the test with lfParametersMainConnected although the result is called main Synchronous ?
Also, in addition to checking the result count, can you get at Bus result with a bus name that nelongs to the expected component, to be sure the computation occured on the expected component ?
vidaldid-rte
left a comment
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.
Few minor changes (on DC sensi, and on tests).
Will need the RC available, and Sonar and coverage result for final approval.
This PR cannot be merged before #1286 (Change of parameter name in core connectedComponentMode -> componentMode)
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
#1279 (powsybl-open-loadflow)
powsybl/powsybl-core#3577 (powsybl-core)
What kind of change does this PR introduce?
This PR support the new introduced mode componentMode=MAIN_SYNCHRONOUS
What is the current behavior?
Only MAIN_CONNECTED and ALL_CONNECTED are supported. But for a main connected component that has multiple synchronous components, it is not possible to compute only the main synchronous component.
What is the new behavior (if this is a feature change)?
MAIN_CONNECTED, ALL_CONNECTED and MAIN_SYNCHRONOUS are supported
Does this PR introduce a breaking change or deprecate an API?