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

Include interest area in AC clustering #662

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

Include interest area in AC clustering #662

wants to merge 71 commits into from

Conversation

CarlosEpia
Copy link
Contributor

@CarlosEpia CarlosEpia commented Sep 21, 2023

Solves the AC and associated sectors of #661. The areas can be supplied by path to shapefiles or list of nuts names e.g., ["Cuxhaven", "Bremerhaven", "Wesermarsch", "Osterholz", "Bremen"].

@CarlosEpia CarlosEpia marked this pull request as draft September 21, 2023 09:06
@CarlosEpia CarlosEpia changed the title Include exclusion area in clustering Include exclusion area in AC clustering Sep 21, 2023
@CarlosEpia CarlosEpia marked this pull request as draft October 23, 2023 10:52
@CarlosEpia CarlosEpia removed the request for review from ClaraBuettner October 23, 2023 10:52
@CarlosEpia
Copy link
Contributor Author

Hi @ulfmueller this PR is ready for review. According to our agreement with @birgits and David, now it is possible to use also the eHV clustering while keeping the buses inside the interest area. It means that there are no 110kV lines or buses outside the provided area, therefore it is very important to define carefully the shapes since it could lead to 110kV isolated buses.

@CarlosEpia CarlosEpia marked this pull request as ready for review April 23, 2024 05:08
@CarlosEpia
Copy link
Contributor Author

Regarding the definition of the Interest area, I think that it makes sense to provide a better explanation.

  • Well defined interest areas should not contain dead ends in 110kV, since the eHV clustering eliminates all the connections in that voltage that are not completely contained in the interest area. For example, when selecting Bremen, Bremerhafen and Cuxhaven, sections of the network like the one shown below will create problems. Additionally, I would try to avoid interest areas composed of geographically separated areas when using eHV.
    Bremen, Bremerhafen and Cuxhaven

@CarlosEpia
Copy link
Contributor Author

As examples of well-defined areas, we can take the two shapefiles created and shared by @ulfmueller (Fokusregion.zip), where the network topology is taken into account and no stubs can be found. Using the mentioned areas, the clustering process runs as expected.

@birgits
Copy link
Contributor

birgits commented May 5, 2024

@CarlosEpia I added the option, to plot the nodes inside the interest area differently from the other nodes. You can remove it if it's not helpful or anything. I just added it as a suggestion as I implemented it for myself anyway.

area_network = network_based_on_buses(etrago.network, buses_area)

elif apply_on == "market_model":
elec_network_buses = etrago.network_tsa.buses[
Copy link
Contributor

Choose a reason for hiding this comment

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

@CarlosEpia or @ClaraBuettner, I discovered that n_clusters is not assigned in this elif. Not sure if this was done in this branch or not, so maybe it's not an issue that should be fixed here.

Copy link
Contributor

Choose a reason for hiding this comment

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

This function is defined in cluster.electrical.py on dev. In that function, n_clusters is defined for all settings and the clustering works fine. So I guess it is related to this branch. Could you have a look at it @CarlosEpia?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@birgits good catch! Thanks for the warning. Problem solved in cec6836.

ClaraBuettner and others added 7 commits August 19, 2024 17:49
When scn_extension is selected, some HV buses are connected to more than one eHV bus.
This leads to duplicated indices in the path matrix. To avoid this, each HV bus is
only considered once using transformers.bus1.unique().
This is needed when some e-Mobility buses are not clustered.
In some cases, the driving load is not high enough to match
the e_min_pu limits of the ev stores.
Add option for negative load shedding at e-Mobility buses
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.

3 participants