bus¶
The central module containing all code dealing with the hydrogen buses
In this module, the functions allowing to create the H2 buses in Germany
for eTraGo are to be found.
The H2 buses in the neighbouring countries (only present in eGon100RE)
are defined in pypsaeursec
.
In both scenarios, there are two types of H2 buses in Germany:
- H2_grid buses: defined in
insert_H2_buses_from_CH4_grid()
; these buses are located at the places of the CH4 buses.- H2_saltcavern buses: defined in
insert_H2_buses_from_saltcavern()
; these buses are located at the intersection of AC buses and potential H2 saltcaverns.
-
insert_H2_buses_from_CH4_grid
(gdf, carrier, target, scn_name)[source]¶ Insert the H2 buses based on CH4 grid into the database.
At each CH4 location, respectively at each intersection of the CH4 grid, a H2 bus is created.
Parameters: - gdf (geopandas.GeoDataFrame) – GeoDataFrame containing the empty bus data.
- carrier (str) – Name of the carrier.
- target (dict) – Target schema and table information.
- scn_name (str) – Name of the scenario.
Returns: None
-
insert_H2_buses_from_saltcavern
(gdf, carrier, sources, target, scn_name)[source]¶ Insert the H2 buses based on saltcavern locations into the database.
These buses are located at the intersection of AC buses and potential H2 saltcaverns.
Parameters: - gdf (geopandas.GeoDataFrame) – GeoDataFrame containing the empty bus data.
- carrier (str) – Name of the carrier.
- sources (dict) – Sources schema and table information.
- target (dict) – Target schema and table information.
- scn_name (str) – Name of the scenario.
Returns: None
-
insert_hydrogen_buses
(scenario='eGon2035')[source]¶ Insert hydrogen buses into the database (in etrago table)
- Hydrogen buses are inserted into the database using the functions:
insert_H2_buses_from_CH4_grid()
for H2_grid busesinsert_H2_buses_from_saltcavern()
for the H2_saltcavern buses
Parameters: scenario (str, optional) – Name of the scenario, the default is ‘eGon2035’. Returns: None