railtoolkit / TrainRuns.jl

TrainRun.jl will take a user-defined train and a path as an input for a train run calculation. It can calculate the train run as a time-efficient or energy-efficient operation mode. The results can then be used within the Julia environment.
https://railtoolkit.org/projects/trainruns.jl
ISC License
5 stars 2 forks source link

Behaviour at start of track #58

Closed apriljunge closed 4 months ago

apriljunge commented 4 months ago

When calculating with outputDetail=:data_points the start of the track is heavily dependent on the stepSize. With stepsize=20 (default) its like this:

driving_mode s
1 "breakFree" 0.0
2 "accelerating" 20.0

With stepsize=1 its like this:

driving_mode s
1 "breakFree" 0.0
2 "accelerating" 1.0
Wouldnt it be correct to accelerate always at the start? Like this: driving_mode s
1 "breakFree" 0.0
2 "accelerating" 0.0
kaat0 commented 4 months ago

"breakFree" is the first iteration of the calculation and therefore already an acceleration. Hence the next entry depends on the stepsize. "breakFree" is handled like an acceleration and serves as a reminder that the first iteration is somehow special concerning the values of the calculation.

To my knowledge, there is currently no proven and, therefore, correct way to calculate the "breakFree" phase of trains. Nonetheless, the "breakFree" phase does exist physically and is somehow "magic", depending on the age of the train, the bearings, the length, the weather, the slope, the skill of the driver, etc. It is the first resistance to overcome.