Skip to content

Update powsybl pf parameters to handle network files without single slack - #64

Open
tengxiangren wants to merge 4 commits into
gridfm:mainfrom
yemine0x01:fix-open-load-flow-parameters
Open

Update powsybl pf parameters to handle network files without single slack#64
tengxiangren wants to merge 4 commits into
gridfm:mainfrom
yemine0x01:fix-open-load-flow-parameters

Conversation

@tengxiangren

Copy link
Copy Markdown
Contributor

Update default powsybl power flow solver parameters to handle network files without specified single slack (e.g. network with distributed slack).

By default, when the slack distribution is deactivated and there is no specified slack, powsybl would select the most meshed bus as slack to ease branch-related convergence. It could be a bus without any generator.
GridFM's power flow data processing expects the slack to be associated with a generator, hence the choice of the bus with the largest generator as slack to avoid conflict.

The affected parameters:

  • read_slack = True : if a slack is specified, it will be used.
  • write_slack = True : if a slack is chosen by the solver, amend the network with it.
  • slackBusSelectionMode : 'Largest_Generator' : the bus with the largest generator will be selected as slack bus. Mode by default: MOST_MESHED

@tengxiangren
tengxiangren force-pushed the fix-open-load-flow-parameters branch from e197138 to 20bc7be Compare July 10, 2026 16:07
…ithout single slack

Signed-off-by: tren <tengxiang.ren@artelys.com>
Signed-off-by: tren <tengxiang.ren@artelys.com>
Signed-off-by: tren <tengxiang.ren@artelys.com>
@tengxiangren
tengxiangren force-pushed the fix-open-load-flow-parameters branch from ec0b6e8 to d6c0602 Compare July 17, 2026 14:24
@frmir
frmir self-requested a review July 17, 2026 14:48
@frmir frmir self-assigned this Jul 17, 2026
Signed-off-by: tren <tengxiang.ren@artelys.com>
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.

2 participants