[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Enquiry about charging stations and stationfinder device
|
Regarding your other questions:
- Some time ago parameters were renamed. "device.battery.capacity" is the nominal maximum battery capacity whereas "device.battery.chargeLevel" is the current state of charge. The other two are the old names which may still work though.
- No need to add rerouting because this is handled internally by the stationfinder device
- Actually charging stations with (close to) zero power should already be excluded from the station search. Can you confirm power=0 when inspecting the charging station in sumo-gui (right mouse click > context menu > Show Parameters)?
Best regards,
Mirko
-----Original-Nachricht-----
Betreff: Re: [sumo-user] Enquiry about charging stations and stationfinder device
Datum: 2024-10-28T12:09:02+0100
Von: "The div via sumo-user" <sumo-user@xxxxxxxxxxx>
An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>
Have you tried looking at the chargingstations-output file?
see:
you can use tools/xml/xml2csv.py to transform this into a csv file
Note that summing the energy received by the vehicle will only equate to that used by the charging station if the efficiency is 1.0
On Monday, 28 October 2024 at 08:33, Rehab Shahin via sumo-user <sumo-user@xxxxxxxxxxx> wrote:
Hi,
Is there any chance of getting some help with this question?
Thanks in advance
Hello,
I'm using libsumo in a project that requires collecting some statistics about charging stations. These statistics include the amount of energy consumed from a station during a time interval.
I couldn't find a function to do this directly. Therefore, I do the following in every simulation step and calculate the sum over the user-defined interval:
1- get the vehicle IDs currently stopping at the station
vehicle_ids = libsumo.chargingstation.getVehicleIDs(cs_id)
2- loop over the list to calculate the sum of energy transferred into the vehicle at the current simulation step
for vehicle in vehicle_ids:
total_energy += float(libsumo.vehicle.getParameter(vehicle, "device.battery.energyCharged"))
3- repeat this until the end of the interval and calculate the sum
My questions are:
1- is there an alternative function to directly retrieve the total energy consumed by a station?
2- Is the parameter "device.battery.energyCharged" the correct one to read the energy transferred from the charging station to the vehicle at the current time step?
3- I'm confused about the following charging station parameters:
- libsumo.vehicle.getParameter(vehicle, "device.battery.actualBatteryCapacity")
- libsumo.vehicle.getParameter(vehicle,"device.battery.capacity")
- device.battery.chargeLevel
- device.battery.maximumBatteryCapacity
I can't figure out which parameter is used to get/set the current battery level? the max battery capacity in both libsumo and route files.
The scenario also requires that vehicles are equipped with a stationfinder device. Some charging stations will be set as out-of-service; which means that vehicles equipped with a stationfinder device should choose an alternative station. my questions here are:
1- should I enable rerouting so that vehicle routes to the nearest station once it needs charging?
2- what is the parameter I can use to set the station as out of service and prevent the car from routing to it? I set the max power to zero but apparently this will not prevent the car from going there. Is there a specific configuration (maybe in the target function?) to let the vehicles avoid specific stations with specific attributes?
Thanks