Hi Hriday,
 
you have to insert single vehicle in TraCI, as there is no option to 
manipulate flows there. The number of vehicles you can insert depends on 
the number of lanes, the chosen car-following parameters, the departure 
speed, the time step length, ... You can insert at most one vehicle per 
time step and lane. The road capacity is influenced  by the lane count, the 
vehicle length and the minimum distance between vehicles according to your 
car-following settings.
 
Best regards
Mirko
 
 
 
-----Original-Nachricht-----
Betreff: [sumo-user] Variable traffic flows, density and arrival times
Datum: 2024-01-06T13:13:39+0100
Von: "Hriday Sanghvi via sumo-user" <[email protected]>
An: "Sumo project User discussions" <[email protected]>
 
 
 
Hello,
 
I was trying to implement dynamic flows where I wanted to change the 
vehsPerHour mid-simulation.

Example flow:
<flow arrivalLane="current" arrivalPosLat="center" begin="0" 
departLane="random" departPosLat="center" departSpeed="max" id="flow_btt" 
number="100" route="bottom_to_top" type="veh" vehsPerHour="6000" />
 
I couldn't find a way to dynamically set/update flows using TraCI, so I 
assume I have to add vehicles using TraCI to simulate a particular type of 
flow?
 
1. So if I wanted to insert vehicles at a rate of 6000 vehs/Hour, I need to 
insert 6000 / (60 x 60) = 1.6667 vehs/Second or 2 vehs/Second? (assuming 1 
second = 1 TraCI simulationStep()?
 
2. There seem to be limitations to 1. For example, if there is a road with 
only a single lane, then there is a maximum vehicle flow that it can 
tolerate, beyond which there is no effect. Is that correct? So I would have 
to have multiple lanes to increase the flow?
 
3. Assuming 2 is correct, since 1 lane cannot have a flow higher than 1 
vehs/Second, I will need as many lanes 'x' to accommodate the desired flow 
[x] vehs/Second? If not, then what are the other ways apart from increasing 
number of lanes that can increase the capacity of the road to tolerate more 
vehsPerHour or flow?
 
Please advise.
 
Thank you,
Sincerely,
Hriday

_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to