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

[FEATURE] Use more numerically stable method to calculate source injection in power flow #458

Closed
TonyXiang8787 opened this issue Jan 3, 2024 · 0 comments · Fixed by #666
Labels
feature New feature or request

Comments

@TonyXiang8787
Copy link
Member

TonyXiang8787 commented Jan 3, 2024

Background

The current implementation of power flow treats each source as a Thévenin's equivalence with an ideal voltage source and an internal impedance. The size of the impedance depends on the short circuit power of the source. In this way, we can cope with multiple sources within one interconnected grid. The contribution of each source is determined by their reference voltage and internal impedance.

Problem

You do not get the same voltage at the node as the reference voltage of the source, due to the voltage drop in the internal impedance. Users who wish to match the reference voltage exactly need to specify a large short circuit power (sk). However, this might cause numerical stability issue.

Experiment

We have conducted an experiment to see the effect of large sk for source. We have drawn the following conclusions.

  • A high short circuit power sk in sources will force the node voltage to approach to the source u_ref. The calculation itself will not have numerical stability issue.
  • The current way of calculating source injection power does suffer from numerical instability. The votlage difference between source node and source u_ref is too close.
  • We need to use the node admittance matrix to help with calculation of source injection.

Proposal

As the conclusion of the experiment, we need to use node admittance matrix to calculation source injection, as described below in the conclusion chapter of the experiment.

@TonyXiang8787 TonyXiang8787 added the feature New feature or request label Jan 3, 2024
@TonyXiang8787 TonyXiang8787 moved this to In Discussion for future planning in Power Grid Model Jan 3, 2024
@TonyXiang8787 TonyXiang8787 changed the title [FEATURE] Add option to allow source to be ideal voltage source in power flow [FEATURE] Use more numerically stable method to calculate source injection in power flow May 21, 2024
@mgovers mgovers mentioned this issue Nov 8, 2024
27 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant