You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running DC loadflows, powsybl currently returns NaN for net.get_branches()["i1"] and net.get_buses()["v_mag"]
Describe the expected behavior
While it's correct that the DC loadflows don't return q values, v and i values are actually defined in the DC loadflow framework. v is defined to be just v_nominal and hence I can be computed through i = p / (sqrt(3) * v_nominal).
It would be nice if these values are returned, both for the normal loadflows and for the security analysis, as it makes comparing with current limits easier. Especially the i value is important there but logically the v_mag value could also be returned.
Describe the motivation
No response
Extra Information
A simple implementation in python could look like this
It makes sense since I is estimated in DC Security Analysis to compute volations.
However for consitency it should use the same formula as the one used in the ClosedBranchDcCurrent equation, that uses the DCPowerFactor parameter (definition at https://powsybl.readthedocs.io/projects/powsybl-core/en/latest/simulation/loadflow/configuration.html) - which 1 by default, by the way, and not sqrt(3) and accounts for some non null average reactive power.
Describe the current behavior
When running DC loadflows, powsybl currently returns NaN for
net.get_branches()["i1"]
andnet.get_buses()["v_mag"]
Describe the expected behavior
While it's correct that the DC loadflows don't return q values,
v
andi
values are actually defined in the DC loadflow framework.v
is defined to be justv_nominal
and henceI
can be computed throughi = p / (sqrt(3) * v_nominal)
.It would be nice if these values are returned, both for the normal loadflows and for the security analysis, as it makes comparing with current limits easier. Especially the
i
value is important there but logically the v_mag value could also be returned.Describe the motivation
No response
Extra Information
A simple implementation in python could look like this
and
The text was updated successfully, but these errors were encountered: