nrel.hive.model.vehicle.mechatronics.powercurve.powercurve_ops

Module Contents

Functions

time_to_full(→ nrel.hive.util.Seconds)

fills an imaginary vehicle in order to determine the estimated time to charge

Attributes

log

nrel.hive.model.vehicle.mechatronics.powercurve.powercurve_ops.log[source]
nrel.hive.model.vehicle.mechatronics.powercurve.powercurve_ops.time_to_full(vehicle: nrel.hive.model.vehicle.vehicle.Vehicle, mechatronics: nrel.hive.model.vehicle.mechatronics.MechatronicsInterface, charger: nrel.hive.model.energy.charger.Charger, target_soc: nrel.hive.util.Ratio, sim_timestep_duration_seconds: nrel.hive.util.Seconds, min_delta_energy_change: nrel.hive.util.Ratio, max_iterations: int = 100000) nrel.hive.util.Seconds[source]

fills an imaginary vehicle in order to determine the estimated time to charge Calculating a delta because vehicles take a long time to reach a value of 100%

Parameters:
  • vehicle – a vehicle to estimate

  • mechatronics – the physics of this vehicle

  • charger – the charger used

  • target_soc – the stopping condition, a target vehicle State of Charge percentage

  • sim_timestep_duration_seconds – the stride, in seconds, of the simulation

  • min_delta_energy_change – minimum change in vehicle energy before breaking loop and charging stopped

Returns:

the time to charge

#TODO: to deal with the grid throttle scenario, what might be a good thing in the future would be to pass #some max charge time argument. that at least can be set to #int((sim.end_time - sim.sim_time) / sim.timestep_duration_seconds) .