Skip to content

Storage

Objects for representing electricity storage units and aggregates within the grid.

EnergyStorage

An object representing the aggregate storage capaciticies of a single kind of storage.

name property

Return the storage aggregate's textual identifier.

output property

Return the current power output in MW. Negative if charging, positive if discharging.

remaining_capacity property

Return the amount of remaining energy storage capacity in MWh.

__init__(name, nominal, max_storage, efficiency=1.0)

Parameters:

Name Type Description Default
name str

Short textual identifier of the storage aggregate, e.g. "p2g" or "pumped".

required
nominal Power

Nominal (installed) capacity of the storage unit in MW.

required
max_storage Energy

Maximum stored energy in MWh.

required
efficiency float

Efficiency of conversion during charging, a number in the interval (0.0, 1.0]. In the current implementation, this is the same as the round-trip efficiency.

1.0

charge_at(power)

Try charging the storage unit with up to power MW.

Parameters:

Name Type Description Default
power Power

Power that is available for charging in MW.

required

Returns:

Type Description
Power

Effective charging power in MW.

discharge_at(power)

Try discharging the storage unit up to required MW.

Parameters:

Name Type Description Default
power Power

Power that is requested to be discharged in MW.

required

Returns:

Type Description
Power

Effective discharging power in MW.