18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-28 02:25:37 +01:00
Commit Graph

2 Commits

Author SHA1 Message Date
jerrrrycho
f1dd033f24 feat(physics): the damage flags of a track make the ride rougher, a derailed vehicle once stopped stays put
Found running line 107 with every train driven by the AI:

- a 401Ka wagon of a freight train overturned into a 282 m curve with a
  cant of 179 mm at 28 km/h: line 107 has damage 31 on every track, which
  scaled the whole lateral acceleration by 2.1, the cant too. The sceneries
  set the flags for the jolts of a worn track (thousands of tracks with 2,
  31, 4 or 16), so they now scale only the sway of the body and the short
  waves of the uneven track, and no longer take load off the wheels; the
  cross level of the uneven track still does
- the overturned wagon crept and stopped in turn in every step (the friction
  of the ballast against the pull of its train), which kept the physics of
  the whole train awake: the run went at half the speed after it. The
  friction now holds a stopped derailed vehicle until the forces on it are
  larger
- a vehicle without a mass got Y/Q 1e9 (no wheel load), now none
- the log of a derailment tells the mass, the centre of gravity, the forces
  of the couplings, the damage flags and the cross level as well
2026-11-15 11:40:56 +01:00
jerrrrycho
3360988144 feat(physics): criteria of derailment: overturning and flange climbing held over 2 m
McZapkie/derailment.{h,cpp} in eu07_core: plain functions of the vehicle and
the track under it, for the speed in a curve now and the collisions and the
buckled track later.

- overturning: the wheel unloading D = 2/s * a/g * (h + s0 (h - hc)) of the
  lateral acceleration the cant doesn't balance, v^2/R - g sin(cant), with the
  lean of the body on its suspension (s0 0.4, hc 0.5 m of the kinematic gauge),
  a lateral vibration of 0.05 g and the uneven track; over at D = 1
- flange climbing: Y/Q of the flanging wheel over 1.2 (Nadal, 70 degrees,
  friction 0.36). Y from the force the cant doesn't balance, the sideways part
  of the forces of the couplings in the curve and the guiding force of the
  leading axle; Q with the load the lateral forces move onto the wheel and the
  twist of the track takes off it
- either has to hold over 2 m of track (the window of EN 14363), so the
  decision doesn't depend on the step
- the centre of gravity of a vehicle from the height of its body, raised by
  the load; the friction of a vehicle sliding off the rails
2026-11-15 10:28:06 +01:00