powsybl / powsybl-open-loadflow

An open source loadflow based on PowSyBl
Mozilla Public License 2.0
45 stars 7 forks source link

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

Open AnkurArohi opened 2 years ago

AnkurArohi commented 2 years ago

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

geofjamg commented 2 years ago

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 commented 2 years ago

@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