Thread-topic: [sumo-user] Battery and Power-train integration into SUMO
Dear Jakob,
Thank you very much for your suggestion. I am also curious if I can model my own Battery Models (like zeroth/first-order equivalent circuit model) to estimate the State of Charge of the battery pack, when it in electric mode. I understand that all this is possible
if I use Matlab and SIMULINK models for my vehicle powertrain and run SUMO as a co-simulator. However I am planning to do the same using Python on SUMO, so is the suggestion you gave me (using tarci.vehicle.setType) the only possible way to solve it, or is
there any other way to do this?
Thank you,
PSK
From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx> Sent: Monday, August 3, 2020 4:59 AM To: Sumo project User discussions <sumo-user@xxxxxxxxxxx> Subject: Re: [sumo-user] Battery and Power-train integration into SUMO
For electric/combustion hybrids there is currently no model. You could build your own via traci.vehicle.setType by switching the vehicle type between a combustion type and an electric type as desired.
However, apart from traci.vehicle.getParameter('V_main','device.battery.energyConsumed')
I also found another command - traci.vehicle.getElectricityConsumption('V_main') which gave me a close result to the first one, but not exactly the same. So, I am wondering why this difference is seen.
I have another query. So, when I noticed that the fuel consumed when the battery 'device' is used. Similarly when it is not used the electricity consumed is zero. This means adding battery is making the vehicle a Battery Electric Vehicle. I am just wondering
if there is any way to make the vehicle a Hybrid Electric Vehicle, which uses both battery and fuel?
Thank you for the resources. Looks like these have to be defined directly in the routes file. But is there any way to define these using TraCI commands, given a route file that does
not contain these definitions?