Skip to content
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

CGMES reference priority bad conversion #2747

Closed
annetill opened this issue Oct 17, 2023 · 0 comments
Closed

CGMES reference priority bad conversion #2747

annetill opened this issue Oct 17, 2023 · 0 comments
Assignees
Labels

Comments

@annetill
Copy link
Member

Describe the current behavior

This is the current conversion of referencePriority in CGMES:

        if (p.asInt("referencePriority", 0) > 0) {
            // We could find multiple generators with the same priority,
            // we will only change the terminal of the slack extension if the previous was not connected
            SlackTerminal st = g.getTerminal().getVoltageLevel().getExtension(SlackTerminal.class);
            if (st == null) {
                SlackTerminal.reset(g.getTerminal().getVoltageLevel(), g.getTerminal());
            } else if (!st.getTerminal().isConnected()) {
                st.setTerminal(g.getTerminal());
            }
        }

But it is a bad interpretation. The slack terminal defines the bus to handle renaming active power slack in a power flow engine. But we also have in a power flow engine a bus to define the angle reference, and it could be different from the slack bus. The reference priority refers to the angle reference bus in CGMES.

Describe the expected behavior

We have to create a specific extension for the angle reference terminal, the same way we have a slack terminal extension. And fix the CGMES conversion.

Describe the steps

No response

Environment

No response

Relevant Log Output

No response

Extra Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants