calculate_service_battery_state_of_charges

calculate_service_battery_state_of_charges(service_battery_capacity, initial_service_battery_state_of_charge, times, service_battery_currents)[source]

Calculates the state of charge of the service battery [%].

Parameters:
  • service_battery_capacity (float) – Service battery capacity [Ah].
  • initial_service_battery_state_of_charge (float) – Initial state of charge of the service battery [%].
  • times (numpy.array) – Time vector [s].
  • service_battery_currents (numpy.array) – Service battery current vector [A].
Returns:

State of charge of the service battery [%].

Return type:

numpy.array