feature: implemented 3w > 3x2w trafo workaround for contingencies and…#49
Open
feature: implemented 3w > 3x2w trafo workaround for contingencies and…#49
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feature for 3w > 3x2w trafo workaround implementation. IF handler has 3w trafo workaround enabled, the context manager flag for setting the 3w transformer workaround gets set to True. CRAC builder has default workflow on building contingencies/CNECs/RAs, after building the CRAC file it is appended depending on workaround context manager flag. If the workaround is enabled, contingency ID gets re-mapped to contain all the replaced 3W trafo legs (if the contingency is a 3w trafo). The script looks up replaced 3w trafos and replaces grid element IDs with correctly mapped 3w transformer legs (the LV side leg is omitted as it is not important for RAO). The limits get updated for flowcnecs, slight workaround for the 3w trafos limits is implemented as only the HV side limit is correctly mapped, so MV side leg limit gets recalculated depending on voltage level of the MV side. This voltage level difference correlates with higher amp limit that gets defined for the lower voltage leg, as amp limit directly depends on transformer S, so MV leg limit can be calculated quite accurately by scaling amp limit according to lower voltage value.
Limited testing performed. needs further work on replacing RA IDs in CRAC file also.