Skip to content

feature: implemented 3w > 3x2w trafo workaround for contingencies and…#49

Open
LNavick wants to merge 1 commit intomainfrom
LN_3w_workaround
Open

feature: implemented 3w > 3x2w trafo workaround for contingencies and…#49
LNavick wants to merge 1 commit intomainfrom
LN_3w_workaround

Conversation

@LNavick
Copy link
Copy Markdown
Member

@LNavick LNavick commented Feb 20, 2026

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.

@LNavick LNavick requested a review from m-karo February 20, 2026 14:08
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.

1 participant