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

Generator is discarded from power Flow calculation if target P is unspecified leading to errors #473

Open
AnkurArohi opened this issue Mar 13, 2022 · 2 comments

Comments

@AnkurArohi
Copy link

AnkurArohi commented Mar 13, 2022

  • Do you want to request a feature or report a bug?
    Feature

  • What is the current behavior?
    If target P of Generator is unspecified the generator is discarded from LoadFlow calculation and if one tried to fix this value to another average value, the load Flow is not able to determine the correct P value / modify it after the iterations, Leading to non convergence

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

  • What is the expected behavior?
    The expected behavior is to let a random value/initial value be allowed for TargetP, and in each LU decomposition or Netwon Raphson iteration let this P value be variable till the Newton Raphson converges, variations could be +-10% after each unsuccessful result

  • What is the motivation / use case for changing the behavior?
    When the CGMES file does not provide a TargetP for generators the NR algorithmn just fails, leading to non convergence which should be avoided, also the current OLF is very strictly dependent on the TargetP values of the genarators, so if these values are erroneous, it also leads to false results/non convergence of OLF Load Flow algorithm.

  • Please tell us about your environment:

    • PowSyBl Version: 0.17.0
    • OS Version: ...
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, spectrum, etc)

(if a question doesn't apply, you can delete it)

@AnkurArohi AnkurArohi changed the title Generator is discarded from power Flow calculation if target P unspecified +leading to error Generator is discarded from power Flow calculation if target P is unspecified leading to errors Mar 13, 2022
@geofjamg
Copy link
Member

What do you mean by unspecified? zero?
Generator with a zero target p are not discarded from calculation but are discarded from slack distribution. So it means that even if network is not balanced, target will remain constante during calculation.
Are you asking to not discard from slack distribution, generators with a zero target P ?

@AnkurArohi
Copy link
Author

@geofjamg I understand your point but there are certain cases where the generator has zero target P value because it has to be calculated/estimated from power flow algorithm, as it has a potential to produce /have a target P but only that it is not defined in cgmes or so to say it is not specified before.

Hence these generators will take part also in slack distribution or active power distribution.

Hence this is an additional advanced feature, in which the generators which do not have a predefined target P in cgmes can have one after the calculation (like after OPF set points) and its output is written in SV file after power flow.

A suggestion of how it can be executed is also explained in the ticket , it is simply a statistical analysis

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

No branches or pull requests

2 participants