h2_grid
The central module containing all code dealing with the H2 grid in eGon100RE
- calculate_H2_capacity(pressure, diameter)[source]
Method for calculagting capacity of pipelines based on data input from FNB Gas
- Parameters:
pressure (float) – input for pressure of pipeline
diameter (float) – input for diameter of pipeline
column_to_match (str) – matching column
treshhold (float) – matching percentage for succesfull comparison
- Returns:
energy_flow (float) – transmission capacity of pipeline
- connect_h2_grid_to_neighbour_countries(scn_name)[source]
Connect germand H2_grid with neighbour countries. All german H2-Buses wich were planned as connection points for Import/Export of Hydrogen to corresponding neighbours country, are based on Publication of FNB-GAS (https://fnb-gas.de/wasserstoffnetz-wasserstoff-kernnetz/).
- Returns:
None
- connect_saltcavern_to_h2_grid(scn_name)[source]
Connect each saltcavern with nearest H2-Bus of the H2-Grid and insert the links into the database
- Returns:
None
- download_h2_grid_data()[source]
Download Input data for H2_grid from FNB-Gas (https://fnb-gas.de/wasserstoffnetz-wasserstoff-kernnetz/)
The following data for H2 are downloaded into the folder ./datasets/h2_data:
- Links (file Anlage_3_Wasserstoffkernnetz_Neubau.xlsx,
Anlage_4_Wasserstoffkernnetz_Umstellung.xlsx, Anlage_2_Wasserstoffkernetz_weitere_Leitungen.xlsx)
- Returns:
None
- fix_h2_grid_infrastructure(df)[source]
Manuell adjustments for more accurate grid topology based on Detailmaßnahmenkarte der FNB-Gas [https://fnb-gas.de/wasserstoffnetz-wasserstoff-kernnetz/]
- Returns:
df (<class ‘pandas.core.frame.DataFrame’>)
- fuzzy_match(df1, df2, column_to_match, threshold=80)[source]
Method for matching input data of H2_grid with georeferenced data (even if the strings are not exact the same)
- Parameters:
df1 (pandas.core.frame.DataFrame) – Input dataframe
df2 (pandas.core.frame.DataFrame) – georeferenced dataframe with h2_buses
column_to_match (str) – matching column
treshhold (float) – matching percentage for succesfull comparison
- Returns:
matched (list) – list with all matched location names
- read_h2_excel_sheets()[source]
Read downloaded excel files with location names for future h2-pipelines
- Returns:
df_Neu (<class ‘pandas.core.frame.DataFrame’>)
df_Um (<class ‘pandas.core.frame.DataFrame’>)
df_Erw (<class ‘pandas.core.frame.DataFrame’>)
- replace_pipeline(df, start, end, intermediate)[source]
Method for adjusting pipelines manually by splittiing pipeline with an intermediate point.
- Parameters:
df (pandas.core.frame.DataFrame) – dataframe to be adjusted
start (str) – startpoint of pipeline
end (str) – endpoint of pipeline
intermediate (str) – new intermediate point for splitting given pipeline
- Returns:
df (<class ‘pandas.core.frame.DataFrame’>) – adjusted dataframe