pypsa-meets-earth / pypsa-earth-sec

GNU General Public License v3.0
19 stars 16 forks source link

Adaptation of H2 network options as per paper #283

Closed Eddy-JV closed 2 months ago

Eddy-JV commented 4 months ago

Closes # (if applicable).

Changes proposed in this Pull Request

The user now has now the option to choose the following in the config.yaml file:

  1. Greenfield:

    • Only electrical transmission lines as routing for new H2 pipelines.
    • No repurposing.
    • By setting the following:
      • ["sector"]["hydrogen"]["network_routes"]: "greenfield"
      • ["sector"]["hydrogen"]["gas_network_repurposing"]: false
  2. Only New H2 pipelines following gas network:

    • Gas network as a routing for new H2 pipelines.
    • No repurposing.
    • By setting the following:
      • ["sector"]["hydrogen"]["network_routes"]: "gas"
      • ["sector"]["hydrogen"]["gas_network_repurposing"]: false
  3. New H2 pipelines following gas network + Repurposing:

    • Gas network as a routing for new H2 pipelines.
    • Repurposing of existing gas network.
    • By setting the following:
      • ["sector"]["hydrogen"]["network_routes"]: "gas"
      • ["sector"]["hydrogen"]["gas_network_repurposing"]: true
  4. New H2 pipelines following electrical transmission lines + Repurposing:

    • Electrical transmission lines as a proxy for new H2 pipelines.
    • Repurposing of existing gas network.
    • By setting the following:
      • ["sector"]["hydrogen"]["network_routes"]: "greenfield"
      • ["sector"]["hydrogen"]["gas_network_repurposing"]: true

Checklist

Eddy-JV commented 3 months ago

Great @Eddy-JV :D I don't go into the functionality as I know you discussed with hazem and tested.

I dropped few comments for possibly improving the code, but I'd be eager to hear your feedback.

Hi @davide-f , sorry for the late reply. I have updated the PR including your very helpful comments. Thanks for taking the time to check it.

I guess now, the problem faced by @doneachh is solved. The problem was that some countries do not have any existing gas infra and this resulted in empty dataframes as well as its corresponding error.

But now the solution is: For countries/bus_regions that do not have existing gas infra, New H2 pipelines following electrical transmission lines is used.

Please check the solution if you have some time and give me a feedback. This way we can already merge the PR.

hazemakhalek commented 2 months ago

@davide-f I'd like to merge this, please let me know if you have any final comments