Skip to content

PSS/E export fails to export all existing buses in Node Breaker voltage level #3638

@rolnico

Description

@rolnico

Describe the current behavior

When exporting a network in PSS/E format, the buses in node-breaker voltage levels are detected by first lsiting all the sets of nodes connected by either a switch or an internal connection. However, in the current version, there is no condition on the state of the switch, meaning that two nodes with a switch in-between will be considered connected, even if that switch is open. The result is that there are less buses than expected in the exported file.

Describe the expected behavior

The number of exported switches should be consistent with the network.

Describe the steps

The two files exported by this code should have more differences than what is currently present:

    @Test
    void tempTest() {
        // Create the network
        Network network = FourSubstationsNodeBreakerFactory.create();

        // Set the IIDM export version
        Properties properties = new Properties();
        properties.put(XMLExporter.VERSION, IidmVersion.V_1_13.toString("."));

        // Export the network in PSS/E
        DataSource dataSource1 = new DirectoryDataSource(Path.of("."), "issue_network_switch_closed");
        new PsseExporter().export(network, null, dataSource1);

        // Open a switch
        network.getSwitch("S1VL2_COUPLER").setOpen(true);

        // Export the network in PSS/E
        DataSource dataSource2 = new DirectoryDataSource(Path.of("."), "issue_network_switch_open");
        new PsseExporter().export(network, null, dataSource2);
    }

Environment

  • PowSyBl core v7.0.1
  • OS: any

Relevant Log Output

No response

Extra Information

There might be more issues, yet to be identified, in the exporter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions