Skip to content
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

Features/#766 develop h2 grid clustering #775

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from

Conversation

ClaraBuettner
Copy link
Contributor

Fixes #766

@CarlosEpia
Copy link
Contributor

So far, this branch is not dealing with buses with carrier "H2" or "H2_saltcavern".

@CarlosEpia
Copy link
Contributor

Since @ClaraBuettner can not be assigned like reviewer, is it OK for you @lenzim97 to review and approve this PR?

@ClaraBuettner
Copy link
Contributor Author

Sorry, I thought I can create a PR and ask myself to review it. I can still do this and either accept that I just leave a comment as an approval or we close this PR and @CarlosEpia creates a new one I can review "officially"

@CarlosEpia
Copy link
Contributor

I like the first option better. @ClaraBuettner it is ok for me to receive the approval via comment and merge it when you say it.

@@ -166,7 +166,7 @@ def find_de_closest(network, bus_ne):
"H2_saltcavern": "power_to_H2",
"dsm": "dsm",
"Li ion": "BEV charger",
"Li_ion": "BEV_charger",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Li_ion is the carrier that is used in eGon2035 (and we also just changed it in eGon100RE), so it should not be deleted here

@@ -166,7 +166,7 @@ def find_de_closest(network, bus_ne):
"H2_saltcavern": "power_to_H2",
"dsm": "dsm",
"Li ion": "BEV charger",
"Li_ion": "BEV_charger",
"O2": "power_to_O2",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you agree on this with @lenzim97?
As far as I know there will be no "power_to_O2" link anymore.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes correct, i changed the carrier for the O2-links to "PtH2_O2", so there is no more "power_to_O2"-links

ch4_network, weight_ch4, n_clusters_ch4 = preprocessing(
self, "CH4"
)
if scn not in ["eGon2035", "status2019"]:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think there is a more generic way for this, like checking if there are H2-pipelines?
If it stays like this we have to check for each new scenario if it is correct.

@@ -124,6 +124,7 @@
"cluster_foreign_AC": False, # take foreign AC buses into account, True or False
"method_gas": "kmedoids-dijkstra", # choose clustering method: kmeans or kmedoids-dijkstra
"n_clusters_gas": 14, # total number of resulting CH4 nodes (DE+foreign)
"n_clusters_h2": 14, # total number of resulting H2 nodes (DE+foreign)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be changed in the args.json as well

@@ -124,6 +124,7 @@
"cluster_foreign_AC": False, # take foreign AC buses into account, True or False
"method_gas": "kmedoids-dijkstra", # choose clustering method: kmeans or kmedoids-dijkstra
"n_clusters_gas": 14, # total number of resulting CH4 nodes (DE+foreign)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I always need at least 15 gas and H2 buses. Is that correct? If yes, I would change the default value here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Develop H2 grid clustering
3 participants