predict_service_battery_flows¶
-
predict_service_battery_flows
(service_battery_model, times, motive_powers, accelerations, on_engine, starter_currents)[source]¶ Predict the service battery currents flows.
Parameters: - service_battery_model (ServiceBatteryModel) – Service battery model.
- times (numpy.array) – Time vector [s].
- motive_powers (numpy.array) – Motive power [kW].
- accelerations (numpy.array) – Acceleration [m/s2].
- on_engine (numpy.array) – If the engine is on [-].
- starter_currents (numpy.array) – Starter currents [A].
Returns: - State of charge of the service battery [%].
- Service battery charging statuses (0: Discharge, 1: Charging, 2: BERS, 3: Initialization) [-].
- DC/DC converter currents [A].
- Alternator currents [A].
Return type: numpy.array