Skip to content

Harmonic Analysis #1292

@lthurner

Description

@lthurner

Thanks to @tomislavantic for implementing a harmonic analysis for pandapower! This is a great new function for pandapower networks. I have added al the code to the /harmonics branch: https://github.com/e2nIEE/pandapower/tree/harmonics

In order to integrate the developed functions smoothly into pandapower, I see a couple of that need improving:

Tests
The testcases are based on excel files that are not included in the repo. It would be best to either save the test grids directly as .jsons or create the networks in the code without external excel files
Furthermore, all test cases should be included in the test suite as executable pytest cases: https://github.com/e2nIEE/pandapower/tree/harmonics/pandapower/test

Validation
There are multiple tests, but I don't see any validation yet (correct me if I am wrong?). Do we have calculation results from any other source (examples from literature, standards or other software tools) that we can compare the results calculated with the new pandapower function? Compared to how it is done for power flow here: https://github.com/e2nIEE/pandapower/blob/develop/pandapower/test/loadflow/test_results.py

Result handling
In pandapower, we have the convention that all results are saved in res_ tables. Right now, all results are returned from the analysis function. Harmonics results should be written to result tables as well.

File Structure
Minor point, but I think the module names could be a little shorter. I would suggest pandapower/harmonics/balanced and pandapower/harmonics/unbalanced. Also, the module should be importable (needs an init.py file, see other modules).

In summary, the goal should be that the calculation can be called like this:

import pandapower.harmonics as harmonic
harmonic.balanced_thd_voltage(net)
print(net.res_bus_harmonics)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions