-
Notifications
You must be signed in to change notification settings - Fork 9
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
P_from_to
and P_to_from
are erroneously zero in DC power flow
#41
Comments
I'm confused about this implementation. Here is the code that writes this in the DataFrame: PowerFlows.jl/src/post_processing.jl Line 491 in 558a337
Based on this implementation, if the solution is positive for the branch, it assigns the proper value to the from_to (probably correct). However if the solution is negative, it's assigned the same value to the
so the flows are always positive with the correct direction. |
If we want to add both directions, doing this:
will suffice |
Yeah, it seems this the post processing code isn't implemented correctly. |
Let's resolve it to have the P_from_to = -P_to_from and report it like that. |
Closed via #45 |
In a power flow output,
P_from_to
is the active power flowing through the line at itsfrom
bus andP_to_from
is the active power flowing through the line at itsto
bus. These are not necessarily the same magnitude due to line losses, but they should at least be comparable in magnitude. In the results of an AC power flow, this holds:but in the results of a DC power flow, one of the
P
values for each row seems to be zero:The text was updated successfully, but these errors were encountered: