osier.StorageTechnology.charge#

StorageTechnology.charge(surplus, time_delta=unyt_quantity(1, 'hr'))[source]#

Charges the battery if there is a surplus of energy.

Parameters:
  • surplus (unyt.unyt_quantity) – Amount of surplus.

  • time_delta (unyt.unyt_quantity) – The real time passed between modeled timesteps.

Returns:

power_level – The current power level of the technology.

Return type:

unyt.unyt_quantity