openego / ego.powerflow

A power flow app to solve AC and DC powerflow problems using PyPSA
GNU Affero General Public License v3.0
5 stars 3 forks source link

Output to oedb #36

Closed ulfmueller closed 6 years ago

ulfmueller commented 7 years ago

In order to save the powerflow results in the oedb an sqla interface has to be created. A corresponding structure on the oedb has to be developed.

@gplssm is interested in this topic as well.

@mariusves Have you created a branch already? Is there a first draft for the structure in the oedb already existing?

mariusves commented 7 years ago

The branch is created. Here are the ToDos:

mariusves commented 7 years ago

The existing exporter is now expended to contain all of the pypsa outputs. The branches needed are: https://github.com/openego/ego.io/tree/features/add-pf-result-tables https://github.com/openego/ego.powerflow/tree/features/add-export2db https://github.com/openego/data_processing/tree/features/add-pf-result2db

The result tables are so far only created for HV. There is a result meta table containing the following data

@gplssm As you can see, I've changed the existing export function a little bit. Since the original function was created quite a while back: is it still being used? If you want, I could easily adapt the hv structure for the mv level as well.

gplssm commented 7 years ago

Thanks for keeping me up-to-date!

Currently, we're not using that much of ego.powerflow, because we bypass the OEDB when running power flow calculations in Dingo. The same for eDisGo (the tool for actual MV/LV grid analyses we're currently developing) will bypass the OEDB for power flow, but we are interested to export grid topologies in general. For example, we would like to export grid topologies resulting from Dingo. Therefore, we'll be inspired by your work! Regarding changes in this file, feel free and do it :+1:

mariusves commented 6 years ago

Feature is currently implemented. Improvements will be handled in eTraGo.