The train's desired speed is calculated as:
It is a calculation that does the job by taking the square root of the remaining distance minus the current speed. That function is mixing up the units and must be fixed.
Acceleration of trains are described by the speed-time curve:
- Initially, the acceleration is constant
- As the air resistance is increasing, the acceleration reduces and the train reaches its maximum speed.
I'll approximate the acceleration with a function:
- A is the rate of acceleration for speeds below C (0.7 m/s2 in the example above)
- B is the rate of decline of acceleration (0.02 m/s3 in the example)
- C is the speed at which the decline starts (23 m/s in the example)
Retardation is harder to approximate, so I'll assume a constant retardation here.
With a constant rate of acceleration when braking, the braking distance is proportional to the speed squared:
D is a constant with a typical value of 2.
No comments:
Post a Comment