Post · 19 min read· pp. 420–438

Single Node Sector Coupling

In [2]:

Copied! diagram

ipynb
import matplotlib.pyplot as plt
import pandas as pd

import pypsa

plt.style.use("bmh")

import matplotlib.pyplot as plt import pandas as pd import pypsa plt.style.use("bmh")

Previous Capacity Expansion Model

To explore sector-coupling options with PyPSA, let's load the capacity expansion model we built for the electricity system and add sector-coupling technologies and demands on top. This example has single node for Germany and 4-hourly temporal resolution for a year. It has wind and solar solar generation, an OCGT generator as well as battery and hydrogen storage to supply a fixed electricity demand.

Some sector-coupling technologies have multiple ouputs (e.g. CHP plants producing heat and power). PyPSA can automatically handle links have more than one input (bus0) and/or output (i.e. bus1, bus2, bus3) with a given efficieny (efficiency, efficiency2, efficiency3).

Alternatively, such multi-port components can also be modelled with the Process component, which uses rate0, rate1, rate2, ... instead of efficiency, efficiency2, ... to determine the energy flow at each port. The sign convention is: negative rates consume, positive rates produce. Setting a rate to 1 or -1 defines the reference bus. See the Process documentation for details.

In [3]:

Copied! diagram

ipynb
n = pypsa.Network(
    "https://tubcloud.tu-berlin.de/s/pzytNg9gtkgPpXc/download/network-cem.nc"
)
n

n = pypsa.Network( "https://tubcloud.tu-berlin.de/s/pzytNg9gtkgPpXc/download/network-cem.nc" ) n

text
/tmp/ipykernel_8737/3484870699.py:1: PyPSA2Warning: pandas reads strings as `str` dtype since 3.0. PyPSA converts them back to object dtype on import, but keeps `str` from PyPSA 2.0 on. Set `pypsa.options.future.string_dtype` to True to opt in now or to False to keep the current behaviour.
  n = pypsa.Network(
INFO:pypsa.network.io:Retrieving network data from https://tubcloud.tu-berlin.de/s/pzytNg9gtkgPpXc/download/network-cem.nc.
text
WARNING:pypsa.network.io:Importing network from PyPSA version v0.27.1 while current version is v1.4.0. Read the release notes at `https://go.pypsa.org/release-notes` to prepare your network for import.
text
INFO:pypsa.network.io:Imported network '' has buses, carriers, generators, global_constraints, loads, storage_units

Out[3]:

text
PyPSA Network ''
----------------
Components:
 - Bus: 1
 - Carrier: 6
 - Generator: 4
 - GlobalConstraint: 1
 - Load: 1
 - StorageUnit: 2
Snapshots: 2190

Hydrogen Production

The following example shows how to model the components of hydrogen storage separately, i.e. electrolysis, fuel cell and storage.

First, let's remove the simplified hydrogen storage representation:

In [4]:

Copied! diagram

ipynb
n.remove("StorageUnit", "hydrogen storage underground")

n.remove("StorageUnit", "hydrogen storage underground")

Add a separate Bus for the hydrogen energy carrier:

In [5]:

Copied! diagram

ipynb
n.add("Bus", "hydrogen")

n.add("Bus", "hydrogen")

Add a Link for the hydrogen electrolysis (Process equivalent: rate0=-1, rate1=0.7):

In [6]:

Copied! diagram

ipynb
n.add(
    "Link",
    "electrolysis",
    bus0="electricity",
    bus1="hydrogen",
    carrier="electrolysis",
    p_nom_extendable=True,
    efficiency=0.7,
    capital_cost=50e3,  # €/MW/a
)

n.add( "Link", "electrolysis", bus0="electricity", bus1="hydrogen", carrier="electrolysis", p_nom_extendable=True, efficiency=0.7, capital_cost=50e3, # €/MW/a )

Add a Link for the fuel cell which reconverts hydrogen to electricity (Process equivalent: rate0=-1, rate1=0.5):

In [7]:

Copied! diagram

ipynb
n.add(
    "Link",
    "fuel cell",
    bus0="hydrogen",
    bus1="electricity",
    carrier="fuel cell",
    p_nom_extendable=True,
    efficiency=0.5,
    capital_cost=120e3,  # €/MW/a
)

n.add( "Link", "fuel cell", bus0="hydrogen", bus1="electricity", carrier="fuel cell", p_nom_extendable=True, efficiency=0.5, capital_cost=120e3, # €/MW/a )

Add a Store for the hydrogen storage:

In [8]:

Copied! diagram

ipynb
n.add(
    "Store",
    "hydrogen storage",
    bus="hydrogen",
    carrier="hydrogen storage",
    capital_cost=140,  # €/MWh/a
    e_nom_extendable=True,
    e_cyclic=True,  # cyclic state of charge
)

n.add( "Store", "hydrogen storage", bus="hydrogen", carrier="hydrogen storage", capital_cost=140, # €/MWh/a e_nom_extendable=True, e_cyclic=True, # cyclic state of charge )

We can also add a hydrogen demand to the hydrogen bus.

In the example below, we add a constant hydrogen demand the size of the electricity demand.

In [9]:

Copied! diagram

ipynb
p_set = n.loads_t.p_set["demand"].mean()

n.add("Load", "hydrogen demand", bus="hydrogen", carrier="hydrogen", p_set=p_set)  # MW

p_set

p_set = n.loads_t.p_set["demand"].mean() n.add("Load", "hydrogen demand", bus="hydrogen", carrier="hydrogen", p_set=p_set) # MW p_set

Out[9]:

text
np.float64(54671.88812785388)

Heat Demand

For the heat demand, we create another bus and connect a load with the heat demand time series to it:

In [10]:

Copied! diagram

ipynb
n.add("Bus", "heat")

url = "https://tubcloud.tu-berlin.de/s/mSkHERH8fJCKNXx/download/heat-load-example.csv"
p_set = pd.read_csv(url, index_col=0, parse_dates=True).squeeze()

n.add("Load", "heat demand", carrier="heat", bus="heat", p_set=p_set)

n.loads_t.p_set.div(1e3).plot(figsize=(12, 4), ylabel="GW")

n.add("Bus", "heat") url = "https://tubcloud.tu-berlin.de/s/mSkHERH8fJCKNXx/download/heat-load-example.csv" p_set = pd.read_csv(url, index_col=0, parse_dates=True).squeeze() n.add("Load", "heat demand", carrier="heat", bus="heat", p_set=p_set) n.loads_t.p_set.div(1e3).plot(figsize=(12, 4), ylabel="GW")

Out[10]:

text
<Axes: xlabel='snapshot', ylabel='GW'>

No description has been provided for this image

Heat pumps

To model heat pumps, first we have to calculate the coefficient of performance (COP) profile based on the temperature profile of the heat source.

In the example below, we calculate the COP for an air-sourced heat pump with a sink temperature of 55° C and a population-weighted ambient temperature profile for Germany.

The heat pump performance is given by the following function:

COP(ΔT)=6.81−0.121ΔT+0.00063ΔT2COP(\Delta T) = 6.81 - 0.121 \Delta T + 0.00063^\Delta T^2

where ΔT=Tsink−Tsource\Delta T = T_{sink} - T_{source}.

In [11]:

Copied! diagram

ipynb
def cop(t_source, t_sink=55):
    delta_t = t_sink - t_source
    return 6.81 - 0.121 * delta_t + 0.000630 * delta_t**2


url = "https://tubcloud.tu-berlin.de/s/S4jRAQMP5Te96jW/download/ninja_weather_country_DE_merra-2_population_weighted.csv"
temp = pd.read_csv(url, skiprows=2, index_col=0, parse_dates=True).loc[
    "2015", "temperature"
][::4]

cop(temp).plot(figsize=(10, 2), ylabel="COP");

def cop(t_source, t_sink=55): delta_t = t_sink - t_source return 6.81 - 0.121 * delta_t + 0.000630 * delta_t**2 url = "https://tubcloud.tu-berlin.de/s/S4jRAQMP5Te96jW/download/ninja\_weather\_country\_DE\_merra-2\_population\_weighted.csv" temp = pd.read_csv(url, skiprows=2, index_col=0, parse_dates=True).loc[ "2015", "temperature" ][::4] cop(temp).plot(figsize=(10, 2), ylabel="COP");

No description has been provided for this image

In [12]:

Copied! diagram

ipynb
plt.scatter(temp, cop(temp))
plt.xlabel("temperature [°C]")
plt.ylabel("COP [-]")

plt.scatter(temp, cop(temp)) plt.xlabel("temperature [°C]") plt.ylabel("COP [-]")

Out[12]:

text
Text(0, 0.5, 'COP [-]')

No description has been provided for this image

Once we have calculated the heat pump coefficient of performance, we can add the heat pump to the network as a Link. We use the parameter efficiency to incorporate the COP (Process equivalent: rate0=-1, rate1=cop(temp)).

In [13]:

Copied! diagram

ipynb
n.add(
    "Link",
    "heat pump",
    carrier="heat pump",
    bus0="electricity",
    bus1="heat",
    efficiency=cop(temp),
    p_nom_extendable=True,
    capital_cost=3e5,  # €/MWe/a
)

n.add( "Link", "heat pump", carrier="heat pump", bus0="electricity", bus1="heat", efficiency=cop(temp), p_nom_extendable=True, capital_cost=3e5, # €/MWe/a )

Let's also add a resistive heater as backup technology (Process equivalent: rate0=-1, rate1=0.9):

In [14]:

Copied! diagram

ipynb
n.add(
    "Link",
    "resistive heater",
    carrier="resistive heater",
    bus0="electricity",
    bus1="heat",
    efficiency=0.9,
    capital_cost=1e4,  # €/MWe/a
    p_nom_extendable=True,
)

n.add( "Link", "resistive heater", carrier="resistive heater", bus0="electricity", bus1="heat", efficiency=0.9, capital_cost=1e4, # €/MWe/a p_nom_extendable=True, )

Combined Heat-and-Power (CHP)

In the following, we are going to add gas-fired combined heat-and-power plants (CHPs). Today, these would use fossil gas, but in the example below we assume green methane with relatively high marginal costs. Since we have no other net emission technology, we can remove the CO2_2 limit.

In [15]:

Copied! diagram

ipynb
n.remove("GlobalConstraint", "CO2Limit")

n.remove("GlobalConstraint", "CO2Limit")

Then, we explicitly represent the energy carrier gas:

In [16]:

Copied! diagram

ipynb
n.add("Bus", "gas", carrier="gas")

n.add("Bus", "gas", carrier="gas")

And add a Store of gas, which can be depleted (up to 100 TWh) with fuel costs of 150 €/MWh.

In [17]:

Copied! diagram

ipynb
n.add(
    "Store",
    "gas storage",
    carrier="gas storage",
    e_initial=100e6,  # MWh
    e_nom=100e6,  # MWh
    bus="gas",
    marginal_cost=150,  # €/MWh_th
)

n.add( "Store", "gas storage", carrier="gas storage", e_initial=100e6, # MWh e_nom=100e6, # MWh bus="gas", marginal_cost=150, # €/MWh_th )

When we do this, we have to model the OCGT power plant as link which converts gas to electricity, not as generator (Process equivalent: rate0=-1, rate1=0.4).

In [18]:

Copied! diagram

ipynb
n.remove("Generator", "OCGT")

n.remove("Generator", "OCGT")

In [19]:

Copied! diagram

ipynb
n.add(
    "Link",
    "OCGT",
    bus0="gas",
    bus1="electricity",
    carrier="OCGT",
    p_nom_extendable=True,
    capital_cost=20000,  # €/MW/a
    efficiency=0.4,
)

n.add( "Link", "OCGT", bus0="gas", bus1="electricity", carrier="OCGT", p_nom_extendable=True, capital_cost=20000, # €/MW/a efficiency=0.4, )

Next, we are going to add a combined heat-and-power (CHP) plant with fixed heat-power ratio (i.e. backpressure operation).

In [20]:

Copied! diagram

ipynb
n.add(
    "Link",
    "CHP",
    bus0="gas",
    bus1="electricity",
    bus2="heat",
    carrier="CHP",
    p_nom_extendable=True,
    capital_cost=40000,
    efficiency=0.4,
    efficiency2=0.4,
)

n.add( "Link", "CHP", bus0="gas", bus1="electricity", bus2="heat", carrier="CHP", p_nom_extendable=True, capital_cost=40000, efficiency=0.4, efficiency2=0.4, )

Electric Vehicles

To model electric vehicles, we first create another bus for the electric vehicles.

In [21]:

Copied! diagram

ipynb
n.add("Bus", "EV", carrier="EV")

n.add("Bus", "EV", carrier="EV")

Then, we can attach the electricity consumption of electric vehicles to this bus:

In [22]:

Copied! diagram

ipynb
url = "https://tubcloud.tu-berlin.de/s/9r5bMSbzzQiqG7H/download/electric-vehicle-profile-example.csv"
p_set = pd.read_csv(url, index_col=0, parse_dates=True).squeeze()

n.add("Load", "EVa demand", bus="EV", carrier="EV demand", p_set=p_set)

p_set.loc["2015-01-01"].div(1e3).plot(figsize=(4, 4), ylabel="GW")

url = "https://tubcloud.tu-berlin.de/s/9r5bMSbzzQiqG7H/download/electric-vehicle-profile-example.csv" p_set = pd.read_csv(url, index_col=0, parse_dates=True).squeeze() n.add("Load", "EVa demand", bus="EV", carrier="EV demand", p_set=p_set) p_set.loc["2015-01-01"].div(1e3).plot(figsize=(4, 4), ylabel="GW")

Out[22]:

text
<Axes: xlabel='snapshot', ylabel='GW'>

No description has been provided for this image

Let's have a quick look at how the heat, electricity, constant hydrogen and electric vehicle demands relate to each other:

In [23]:

Copied! diagram

ipynb
n.loads_t.p_set.div(1e3).plot(figsize=(10, 3), ylabel="GW")
plt.axhline(
    n.loads.loc["hydrogen demand", "p_set"] / 1e3, label="hydrogen demand", color="m"
)
plt.legend()

n.loads_t.p_set.div(1e3).plot(figsize=(10, 3), ylabel="GW") plt.axhline( n.loads.loc["hydrogen demand", "p_set"] / 1e3, label="hydrogen demand", color="m" ) plt.legend()

Out[23]:

text
<matplotlib.legend.Legend at 0x732a87fe8b90>

No description has been provided for this image

The electric vehicles can only be charged when they are plugged-in. Below we load an availability profile telling us what share of electric vehicles is plugged-in at home -- we only assume home charging in this example.

In [24]:

Copied! diagram

ipynb
url = "https://tubcloud.tu-berlin.de/s/E3PBWPfYaWwCq7a/download/electric-vehicle-availability-example.csv"
availability_profile = pd.read_csv(url, index_col=0, parse_dates=True).squeeze()

availability_profile.loc["2015-01-01"].plot(ylim=(0, 1))

url = "https://tubcloud.tu-berlin.de/s/E3PBWPfYaWwCq7a/download/electric-vehicle-availability-example.csv" availability_profile = pd.read_csv(url, index_col=0, parse_dates=True).squeeze() availability_profile.loc["2015-01-01"].plot(ylim=(0, 1))

Out[24]:

text
<Axes: xlabel='snapshot'>

No description has been provided for this image

Then, we can add a link for the electric vehicle charger using assumption about the number of EVs and their charging rates.

In [25]:

Copied! diagram

ipynb
number_cars = 40e6  #  number of EV cars
bev_charger_rate = 0.011  # 3-phase EV charger with 11 kW
p_nom = number_cars * bev_charger_rate

n.add(
    "Link",
    "EV charger",
    bus0="electricity",
    bus1="EV",
    p_nom=p_nom,
    carrier="EV charger",
    p_max_pu=availability_profile,
    efficiency=0.9,
)

number_cars = 40e6 # number of EV cars bev_charger_rate = 0.011 # 3-phase EV charger with 11 kW p_nom = number_cars * bev_charger_rate n.add( "Link", "EV charger", bus0="electricity", bus1="EV", p_nom=p_nom, carrier="EV charger", p_max_pu=availability_profile, efficiency=0.9, )

We can also allow vehicle-to-grid operation (i.e. electric vehicles inject power into the grid):

In [26]:

Copied! diagram

ipynb
n.add(
    "Link",
    "V2G",
    bus0="EV",
    bus1="electricity",
    p_nom=p_nom,
    carrier="V2G",
    p_max_pu=availability_profile,
    efficiency=0.9,
)

n.add( "Link", "V2G", bus0="EV", bus1="electricity", p_nom=p_nom, carrier="V2G", p_max_pu=availability_profile, efficiency=0.9, )

The demand-side management potential we model as a store. This is not unlike a battery storage, but we impose additional constraints on when the store needs to be charged to a certain level (e.g. 75% full every morning).

In [27]:

Copied! diagram

ipynb
bev_energy = 0.05  # average battery size of EV in MWh
bev_dsm_participants = 0.5  # share of cars that do smart charging

e_nom = number_cars * bev_energy * bev_dsm_participants

url = "https://tubcloud.tu-berlin.de/s/K62yACBRTrxLTia/download/dsm-profile-example.csv"
dsm_profile = (
    pd.read_csv(url, index_col=0, parse_dates=True).squeeze().shift(2, fill_value=0)
)

dsm_profile.loc["2015-01-01"].plot(figsize=(5, 2), ylim=(0, 1))

bev_energy = 0.05 # average battery size of EV in MWh bev_dsm_participants = 0.5 # share of cars that do smart charging e_nom = number_cars * bev_energy * bev_dsm_participants url = "https://tubcloud.tu-berlin.de/s/K62yACBRTrxLTia/download/dsm-profile-example.csv" dsm_profile = ( pd.read_csv(url, index_col=0, parse_dates=True).squeeze().shift(2, fill_value=0) ) dsm_profile.loc["2015-01-01"].plot(figsize=(5, 2), ylim=(0, 1))

Out[27]:

text
<Axes: xlabel='snapshot'>

No description has been provided for this image

In [28]:

Copied! diagram

ipynb
n.add(
    "Store",
    "EV DSM",
    bus="EV",
    carrier="EV battery",
    e_cyclic=True,  # state of charge at beginning = state of charge at the end
    e_nom=e_nom,
    e_min_pu=dsm_profile.loc[n.snapshots],
)

n.add( "Store", "EV DSM", bus="EV", carrier="EV battery", e_cyclic=True, # state of charge at beginning = state of charge at the end e_nom=e_nom, e_min_pu=dsm_profile.loc[n.snapshots], )

Then, we can solve the fully sector-coupled model altogether including electricity, passenger transport, hydrogen and heating.

In [29]:

hide-output

Copied! diagram

ipynb
n.optimize()

n.optimize()

text
/tmp/ipykernel_8737/1261279110.py:1: PyPSA2Warning: From PyPSA 2.0 on, the objective leaves out the capital costs of existing capacity on extendable assets, which improves LP conditioning. Pass `include_objective_constant` to `n.optimize` to choose per call. Set `pypsa.options.future.exclude_objective_constant` to True to opt in now or to False to keep the current behaviour.
  n.optimize()
WARNING:pypsa.consistency:The following buses have carriers which are not defined. Run n.sanitize() to add them. Components with undefined carriers:
Index(['electricity', 'hydrogen', 'heat', 'gas', 'EV'], dtype='object', name='name')
text
WARNING:pypsa.consistency:The following loads have carriers which are not defined. Run n.sanitize() to add them. Components with undefined carriers:
Index(['hydrogen demand', 'heat demand', 'EVa demand'], dtype='object', name='name')
text
WARNING:pypsa.consistency:The following links have carriers which are not defined. Run n.sanitize() to add them. Components with undefined carriers:
Index(['electrolysis', 'fuel cell', 'heat pump', 'resistive heater', 'CHP',
       'EV charger', 'V2G'],
      dtype='object', name='name')
text
WARNING:pypsa.consistency:The following stores have carriers which are not defined. Run n.sanitize() to add them. Components with undefined carriers:
Index(['hydrogen storage', 'gas storage', 'EV DSM'], dtype='object', name='name')
text
INFO:linopy.model: Solve problem using Gurobi solver
text
INFO:linopy.model:Solver options:
 - log_to_console: False
text
INFO:linopy.io:Writing objective.
text
Writing constraints.:   0%|          | 0/31 [00:00<?, ?it/s]
text
Writing constraints.:  77%|███████▋  | 24/31 [00:00<00:00, 231.25it/s]
text
Writing constraints.: 100%|██████████| 31/31 [00:00<00:00, 206.57it/s]
text
text
Writing continuous variables.:   0%|          | 0/12 [00:00<?, ?it/s]
text
Writing continuous variables.: 100%|██████████| 12/12 [00:00<00:00, 364.20it/s]
text
INFO:linopy.io: Writing time: 0.21s
text
Set parameter WLSAccessID
text
Set parameter WLSSecret
text
Set parameter LicenseID to value 2537914
text
Academic license 2537914 - for non-commercial use only - registered to l.___@tu-berlin.de
text
Read LP format model from file /tmp/linopy-problem-pfzi66bu.lp
text
Reading time = 0.13 seconds
text
obj: 107321 rows, 50381 columns, 198250 nonzeros
text
Set parameter LogToConsole to value 0
text
INFO:linopy.constants: Optimization successful: 
Status: ok
Termination condition: optimal
Solution: 50381 primals, 120461 duals
Objective: 1.43e+11
Solver: gurobi
Runtime: 2.08s
Dual bound: 1.43e+11
Solver model: available
Solver message: 2
text
INFO:pypsa.optimization.optimize:The shadow-prices of the constraints Generator-ext-p-lower, Generator-ext-p-upper, Link-fix-p-lower, Link-fix-p-upper, Link-ext-p-lower, Link-ext-p-upper, Store-fix-e-lower, Store-fix-e-upper, Store-ext-e-lower, Store-ext-e-upper, Store-fix-p-lower, Store-fix-p-upper, Store-ext-p-lower, Store-ext-p-upper, Store-fix-p_store-lower, Store-fix-p_store-upper, Store-ext-p_store-lower, Store-ext-p_store-upper, StorageUnit-ext-p_dispatch-lower, StorageUnit-ext-p_dispatch-upper, StorageUnit-ext-p_store-lower, StorageUnit-ext-p_store-upper, StorageUnit-ext-state_of_charge-lower, StorageUnit-ext-state_of_charge-upper, StorageUnit-energy_balance, Store-energy_balance were not assigned to the network.

Out[29]:

text
('ok', 'optimal')

In [30]:

Copied! diagram

ipynb
n.statistics()

n.statistics()

Out[30]:

Optimal CapacityInstalled CapacitySupplyWithdrawalEnergy BalanceTransmissionCapacity FactorCurtailmentCapital ExpenditureOperational ExpenditureRevenueMarket Value
Generatoroffwind2.815849e+050.08.833137e+080.000000e+008.833137e+080.000000e+000.3580981.157736e+074.915240e+101.872625e+074.917112e+1055.666663
onwind1.027945e+050.01.417214e+080.000000e+001.417214e+080.000000e+000.1573844.354569e+071.044846e+102.024632e+081.065092e+1075.153954
solar4.778360e+050.05.198227e+080.000000e+005.198227e+080.000000e+000.1241860.000000e+002.453537e+105.510121e+062.454088e+1047.210086
LinkCHP2.070308e+050.00.000000e+001.000000e+08-1.000000e+081.000000e+080.0551391.713590e+098.281231e+090.000000e+00-2.471433e+10-247.143278
EV charger4.400000e+05440000.00.000000e+002.292063e+08-2.292063e+080.000000e+000.0594662.849877e+090.000000e+000.000000e+00-1.503501e+10-65.595969
OCGT0.000000e+000.00.000000e+000.000000e+000.000000e+000.000000e+000.0000000.000000e+000.000000e+000.000000e+000.000000e+00NaN
V2G4.400000e+05440000.00.000000e+008.200809e+07-8.200809e+070.000000e+000.0212762.997075e+090.000000e+000.000000e+00-8.165188e+09-99.565638
electrolysis1.770623e+050.00.000000e+007.069242e+08-7.069242e+087.069242e+080.4557678.441412e+088.853113e+090.000000e+00-1.701664e+10-24.071372
fuel cell1.372234e+040.00.000000e+001.592122e+07-1.592122e+071.592122e+070.1324481.042864e+081.646680e+090.000000e+00-1.862079e+09-116.955792
heat pump5.393521e+040.00.000000e+002.201725e+08-2.201725e+082.201725e+080.4660012.522999e+081.618056e+100.000000e+00-3.124643e+10-141.917945
resistive heater7.600678e+040.00.000000e+003.139689e+07-3.139689e+073.139689e+070.0471556.344225e+087.600678e+080.000000e+00-4.647582e+09-148.026822
Load-0.000000e+000.00.000000e+004.789257e+08-4.789257e+080.000000e+00NaN0.000000e+000.000000e+000.000000e+00-4.851206e+10-101.293486
EV demand0.000000e+000.00.000000e+001.242776e+08-1.242776e+080.000000e+00NaN0.000000e+000.000000e+000.000000e+00-1.249521e+10-100.542711
heat0.000000e+000.00.000000e+005.936692e+08-5.936692e+080.000000e+00NaN0.000000e+000.000000e+000.000000e+00-6.540936e+10-110.178112
hydrogen0.000000e+000.00.000000e+004.789257e+08-4.789257e+080.000000e+00NaN0.000000e+000.000000e+000.000000e+00-3.174707e+10-66.288091
StorageUnitbattery storage0.000000e+000.00.000000e+000.000000e+000.000000e+000.000000e+000.0000000.000000e+000.000000e+000.000000e+000.000000e+00NaN
StoreEV battery1.000000e+061000000.01.492545e+081.492545e+080.000000e+000.000000e+000.6196880.000000e+000.000000e+000.000000e+005.625384e+091.036275
gas storage1.000000e+08100000000.01.000000e+080.000000e+001.000000e+080.000000e+000.2661410.000000e+000.000000e+001.500000e+102.471433e+100.106007
hydrogen storage5.528145e+070.02.218431e+082.218431e+080.000000e+000.000000e+000.5121660.000000e+007.739403e+090.000000e+007.739403e+090.031204

In [31]:

Copied! diagram

ipynb
n.statistics.capex().div(1e9).sort_values().dropna().plot.bar(
    ylabel="bn€/a", cmap="tab20c", figsize=(7, 3)
)

n.statistics.capex().div(1e9).sort_values().dropna().plot.bar( ylabel="bn€/a", cmap="tab20c", figsize=(7, 3) )

Out[31]:

text
<Axes: xlabel='component,carrier', ylabel='bn€/a'>

No description has been provided for this image

diagram 2026-11-05

diagram 2024-05-27