osier.StorageTechnology#

class osier.StorageTechnology(technology_type='storage', storage_duration=0, initial_storage=0, *args, **kwargs)[source]#

Bases: Technology

The StorageTechnology extends the Technology by adding storage parameters.

Parameters:
  • storage_duration (float or unyt.array.unyt_quantity) – The amount of time the battery could discharge continuously when full. Used to calculate the storage capacity.

  • initial_storage (float or unyt.array.unyt_quantity) – The initial stored energy. Cannot exceed storage_capacity.

Methods

charge(surplus[, time_delta])

Charges the battery if there is a surplus of energy.

discharge(demand[, time_delta])

Discharges the battery if there is a surplus of energy.

power_output(v[, time_delta])

Calculates the power output given a demand value.

reset_history()

Resets the technology's power history for a new simulation.