edisgo.network.grids.Grid ========================= .. py:class:: edisgo.network.grids.Grid(**kwargs) Bases: :py:obj:`abc.ABC` .. autoapi-inheritance-diagram:: edisgo.network.grids.Grid :parts: 1 Defines a basic grid in eDisGo. :param edisgo_obj: :type edisgo_obj: :class:`~.EDisGo` :param id: Identifier :type id: str or int, optional .. py:property:: id ID of the grid. .. py:property:: edisgo_obj EDisGo object the grid is stored in. .. py:property:: nominal_voltage Nominal voltage of network in kV. :param nominal_voltage: :type nominal_voltage: float :returns: Nominal voltage of network in kV. :rtype: float .. py:property:: graph Graph representation of the grid. :returns: Graph representation of the grid as networkx Ordered Graph, where lines are represented by edges in the graph, and buses and transformers are represented by nodes. :rtype: :networkx:`networkx.Graph<>` .. py:property:: geopandas Returns components as :geopandas:`GeoDataFrame`\ s. Returns container with :geopandas:`GeoDataFrame`\ s containing all georeferenced components within the grid. :returns: Data container with GeoDataFrames containing all georeferenced components within the grid. :rtype: :class:`~.tools.geopandas_helper.GeoPandasGridContainer` .. py:property:: station DataFrame with form of buses_df with only grid's station's secondary side bus information. .. py:property:: station_name Name of station to the overlying voltage level. Name of station is composed of grid name with the extension '_station'. .. py:property:: generators_df Connected generators within the network. :returns: Dataframe with all generators in topology. For more information on the dataframe see :attr:`~.network.topology.Topology.generators_df`. :rtype: :pandas:`pandas.DataFrame` .. py:property:: generators Connected generators within the network. :returns: List of generators within the network. :rtype: list(:class:`~.network.components.Generator`) .. py:property:: loads_df Connected loads within the network. :returns: Dataframe with all loads in topology. For more information on the dataframe see :attr:`~.network.topology.Topology.loads_df`. :rtype: :pandas:`pandas.DataFrame` .. py:property:: loads Connected loads within the network. :returns: List of loads within the network. :rtype: list(:class:`~.network.components.Load`) .. py:property:: storage_units_df Connected storage units within the network. :returns: Dataframe with all storage units in topology. For more information on the dataframe see :attr:`~.network.topology.Topology.storage_units_df`. :rtype: :pandas:`pandas.DataFrame` .. py:property:: charging_points_df Connected charging points within the network. :returns: Dataframe with all charging points in topology. For more information on the dataframe see :attr:`~.network.topology.Topology.loads_df`. :rtype: :pandas:`pandas.DataFrame` .. py:property:: switch_disconnectors_df Switch disconnectors in network. Switch disconnectors are points where rings are split under normal operating conditions. :returns: Dataframe with all switch disconnectors in network. For more information on the dataframe see :attr:`~.network.topology.Topology.switches_df`. :rtype: :pandas:`pandas.DataFrame` .. py:property:: switch_disconnectors Switch disconnectors within the network. :returns: List of switch disconnectory within the network. :rtype: list(:class:`~.network.components.Switch`) .. py:property:: lines_df Lines within the network. :returns: Dataframe with all buses in topology. For more information on the dataframe see :attr:`~.network.topology.Topology.lines_df`. :rtype: :pandas:`pandas.DataFrame` .. py:property:: buses_df :abstractmethod: Buses within the network. :returns: Dataframe with all buses in topology. For more information on the dataframe see :attr:`~.network.topology.Topology.buses_df`. :rtype: :pandas:`pandas.DataFrame` .. py:property:: weather_cells Weather cells in network. :returns: List of weather cell IDs in network. :rtype: list(int) .. py:property:: peak_generation_capacity Cumulative peak generation capacity of generators in the network in MW. :returns: Cumulative peak generation capacity of generators in the network in MW. :rtype: float .. py:property:: peak_generation_capacity_per_technology Cumulative peak generation capacity of generators in the network per technology type in MW. :returns: Cumulative peak generation capacity of generators in the network per technology type in MW. :rtype: :pandas:`pandas.DataFrame` .. py:property:: p_set Cumulative peak load of loads in the network in MW. :returns: Cumulative peak load of loads in the network in MW. :rtype: float .. py:property:: p_set_per_sector Cumulative peak load of loads in the network per sector in MW. :returns: Cumulative peak load of loads in the network per sector in MW. :rtype: :pandas:`pandas.DataFrame` .. py:method:: assign_length_to_grid_station() Assign length in km from each bus in the grid to the grid's station. The length is written to column 'length_to_grid_station' in :attr:`~.network.topology.Topology.buses_df`. .. py:method:: assign_grid_feeder(mode = 'grid_feeder') Assigns MV or LV feeder to each bus and line, depending on the `mode`. See :attr:`~.network.topology.Topology.assign_feeders` for more information. :param mode: Specifies whether to assign MV or grid feeder. If mode is "mv_feeder" the MV feeder the buses and lines are in are determined. If mode is "grid_feeder" LV buses and lines are assigned the LV feeder they are in and MV buses and lines are assigned the MV feeder they are in. Default: "grid_feeder". :type mode: str .. py:method:: get_feeder_stats() Generate statistics of the grid's feeders. So far, only the feeder length is determined. :returns: Dataframe with feeder name in index and column 'length' containing the respective feeder length in km. :rtype: :pandas:`pandas.DataFrame`