Energy System

In pandaprosumer, energy systems allow to combine prosumers, pandapower electrical networks, and pandapipes fluid network in one multi-energy system

Create Function

An empty energy system is created with this function:

pandaprosumer.energy_system.create_energy_system.create_empty_energy_system(name='my_energy_system')[source]

This function initializes the energy system datastructure.

Parameters:

name (string (default "my_energy_system")) – Name for the energy system

Returns:

EnergySystem with empty tables

Return type:

EnergySystem

Example:
>>> mn = create_empty_energy_system("my_first_energy_system")

An existing pandapipes fluid net or pandapower net can be added with this function:

pandaprosumer.energy_system.create_energy_system.add_net_to_energy_system(energy_system, net, net_name='my_network', overwrite=False)[source]

Add a pandapipes or pandapower net to the energy system structure.

Parameters:
  • energy_system (pandaprosumer.EnergySystem) – energy system to which a pandapipes/pandapower net will be added

  • net (pandapowerNet or pandapipesNet) – pandapipes or pandapower net that will be added to the energy system

  • net_name (str) – unique name for the added net, e.g. ‘power’, ‘gas’, or ‘power_net1’

  • overwrite (bool) – whether a net should be overwritten if it has the same net_name

Default:

‘my_network’

Returns:

net reference is added inplace to the energy system (in energy_system[‘nets’])

Return type:

None

The nets are stored with a unique key in a dictionary in energy_system[‘nets’].

An existing pandaprosumer prosumer can be added with this function:

pandaprosumer.energy_system.create_energy_system.add_pandaprosumer_to_energy_system(energy_system, pandaprosumer, pandaprosumer_name='my_prosumer', overwrite=False)[source]

Add a pandaprosumer to the energy system structure.

Parameters:
  • energy_system (pandaprosumer.EnergySystem) – energy system to which a pandaprosumer will be added

  • net (pandaprosumerContainer) – pandaprosumer that will be added to the energy system

  • net_name (str) – unique name for the added pandaprosumer

  • overwrite (bool) – whether a pandaprosumer should be overwritten if it has the same pandaprosumer_name

Default:

‘my_prosumer’

Returns:

pandaprosumer reference is added inplace to the energy system (in energy system[‘nets’])

Return type:

None

The prosumers are stored with a unique key in a dictionary in energy_system[‘prosumer’].