-
Notifications
You must be signed in to change notification settings - Fork 8
Save and restore only active power changes in Fast DC Security Analysis #1205
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
Conversation
This PR should be merged only after #1192. |
Signed-off-by: p-arvy <[email protected]>
Signed-off-by: p-arvy <[email protected]>
Signed-off-by: p-arvy <[email protected]>
Signed-off-by: p-arvy <[email protected]>
Signed-off-by: p-arvy <[email protected]>
Signed-off-by: p-arvy <[email protected]>
Signed-off-by: Hadrien <[email protected]>
Signed-off-by: Hadrien <[email protected]>
Signed-off-by: p-arvy <[email protected]>
…Results Signed-off-by: Hadrien <[email protected]>
Signed-off-by: p-arvy <[email protected]>
Signed-off-by: p-arvy <[email protected]>
Signed-off-by: p-arvy <[email protected]>
Signed-off-by: p-arvy <[email protected]>
Signed-off-by: p-arvy <[email protected]>
Signed-off-by: p-arvy <[email protected]>
7dcc81f
to
33f85f8
Compare
Signed-off-by: Hadrien <[email protected]>
/** | ||
* Process the power shifts due to the loss of loads, generators, and HVDCs. | ||
* @param balanceType the property defining how to manage active distribution. | ||
* @param updateAcParameters a boolean to indicate if voltage/reactive dependent parameters should be updated or not. |
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 name updateAcParameters is confusing. Parameters usually refers to parameters that alter the simulator behaviour.
Why not updateAcQuantities ?
(the comment applies to all similar uses of the term parameter in this file (in comments for example)
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 agree
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.
Applied. Thanks for the suggestion.
Signed-off-by: p-arvy <[email protected]>
Signed-off-by: p-arvy <[email protected]>
|
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
No, but the development is based on the collaborative work of #1169, aiming to improve the performance of the fast DC SA.
What kind of change does this PR introduce?
In fast DC SA, the application of
LfContingency
in cases where a load/generator is lost, preceding the calculation of the right-hand side override (before computing post-contingency states withWoodburyEngine
) has been modified for better performance.What is the current behavior?
In the current state of fast DC SA, when a contingency causes the loss of a generator/load, the associated
LfContingency
is applied before computing the right-hand side override (preceding the post-contingency state calculations).To avoid disrupting subsequent computations, a


NetworkState
is saved before the application and restored afterward. This is done for each contingency. On an IGM FR with approximately 600 generator contingencies, this accounts for around 30% of the computation time.What is the new behavior (if this is a feature change)?
Only DC values related to generators, loads, and HVDCs need to be modified, and therefore saved and restored. The saving/restoring of a
NetworkState
is replaced by saving/restoringBusDcStates
. The application of theLfContingency
is also modified to change only these values.Comparing against the same case, the post-contingency state computation time is reduced of ~20%.

Does this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps)
Other information: