home_batteries

Home Battery allocation to buildings

Main module for allocation of home batteries onto buildings and sizing them depending on pv rooftop system size.

Contents of this module * Creation of DB tables * Allocate given home battery capacity per mv grid to buildings with pv rooftop

systems. The sizing of the home battery system depends on the size of the pv rooftop system and can be set within the datasets.yml. Default sizing is 1:1 between the pv rooftop capacity (kWp) and the battery capacity (kWh).
  • Write results to DB

Configuration

The config of this dataset can be found in datasets.yml in section home_batteries.

Scenarios and variations

Assumptions can be changed within the datasets.yml.

Only buildings with a pv rooftop systems are considered within the allocation process. The default sizing of home batteries is 1:1 between the pv rooftop capacity (kWp) and the battery capacity (kWh). Reaching the exact value of the allocation of battery capacities per grid area leads to slight deviations from this specification.

## Methodology

The selection of buildings is done randomly until a result is reached which is close to achieving the sizing specification.

class EgonHomeBatteries(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

building_id
bus_id
capacity
index
p_nom
scenario
targets = {'home_batteries': {'schema': 'supply', 'table': 'egon_home_batteries'}}
allocate_home_batteries_to_buildings()[source]

Allocate home battery storage systems to buildings with pv rooftop systems

create_table(df)[source]

Create mapping table home battery <-> building id

get_cbat_pbat_ratio()[source]

Mean ratio between the storage capacity and the power of the pv rooftop system

Returns:int – Mean ratio between the storage capacity and the power of the pv rooftop system