suboptimumg.vehicle.accumulator.accumulator#

class suboptimumg.vehicle.accumulator.accumulator.Accumulator(vehicle_model)[source]#

Bases: object

Parameters:

vehicle_model (VehicleModel)

apply_pack_weight(new_pack_weight)[source]#

Resize the pack, updating vehicle mass and capacity to match.

Parameters:

new_pack_weight (float) – Battery pack weight to install (kg).

Returns:

The resulting pack capacity (kWh).

Return type:

float