Illuminator Models

class illuminator.models.Battery.battery_model.BatteryModel(initial_set: dict, battery_set: dict)
charge_battery(flow2b: int) dict

Charge the battery, calculate the state of charge and return parameter information

Parameters:

flow2b (int) – (???) in kW

Returns:

re_params – Collection of parameters and their respective values

Return type:

dict

discharge_battery(flow2b: int) dict

Discharge the battery, calculate the state of charge and return parameter information

Parameters:

flow2b (int) – (???) in kW

Returns:

re_params – Collection of parameters and their respective values

Return type:

dict

output_power(flow2b: int, soc: int) dict

Gives information depending on the current flow2b and soc value. If there is no power demand it gives in current battery state of charge information. If there is a negative demand for power then it discharged the battery. Alternatively it charges the battery.

Parameters:
  • flow2b (int) –

    ???

  • soc (int) – The current state of charge (SOC)

Returns:

re_params – Collection of parameters and their respective values

Return type:

dict