-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add properties to get the line series and shunt currents
Fixes #99 The `Line` class gained two new properties: 1. `res_series_currents`: An array of currents in the series components of the line 2. `res_shunt_currents`: A 2-tuple of arrays of currents in the shunt components from each side of the line The `ElectricalNetwork` now has a `res_lines` property that replaces `res_lines_losses`. The new property contains all columns from `res_branches` in addition to the columns `series_losses` and `series_current`. The columns `shunt_losses` and `total_losses` have been removed but can be easily computed. ```py df = en.res_lines total_losses = df["power1"] + df["power2"] shunt_losses = total_losses - df["series_losses"] ``` In addition, the shunt currents can be computed with: ```py shunt_currents1 = df["current1"] - df["series_current"] shunt_currents2 = df["series_current"] + df["current2"] ``` The detailed shunt losses/currents always remain accessible on the line element itself.
- Loading branch information
Showing
10 changed files
with
1,021 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.