18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-03 12:25:27 +01:00
Commit Graph

2 Commits

Author SHA1 Message Date
jerrrrycho 39f6566a5a feat(physics): calibrate the crush and the override against Szczekociny 2012
The head-on collision of Szczekociny re-created on td.scn derailed all 13
vehicles, tore all 11 couplings and crushed the locomotives by 0.37 m each.
In reality 7 of 13 derailed, the cabs and the machine room were destroyed
over several metres, and TLK coaches 3 to 7 and IR coaches 2 to 4 stayed
coupled on the rails.

- An end without a crash zone crushes for up to 4 m. The force packing down
  grows to at most twice the plateau (6 MN locomotive, 4 MN wagon or coach)
  and the crush goes on at it. Crash zones keep their 1.2 m. New optional
  key BuffCoupl FcrushMax (kN).
- The override no longer derails both alike vehicles at 0.6 m of crush of
  both ends. Past the buffer beams (0.35 m) the lighter one climbs (1.3
  times), or the higher one (40 mm, EN 15227). Without either, both leave
  the rails only once one end is crushed past its structure (its densify).
  A vehicle off the rails sits 0.15 m lower, unless it got off them
  climbing. An anticlimber works for its own end until its zone is spent.
- An end crushed back to its running gear (the outer axle) tears the body
  off its bogie and derails the vehicle.
- physics.derailment new: a vehicle that climbed is carried along the line
  while the pair still closes in faster than 0.5 m/s, so the ends crush on
  instead of meeting as rigid bodies off the track. A body off the track
  is shorter by the crush of its ends.

The couplings tore in every crushed interface because every interface
crushed (draw_gear_crush 0.15 m), not through a fault of their own. With
the cascade stopped the couplings behind the wreck hold.
2026-12-02 09:46:43 +01:00
Hirek 5a537e69f2 refactor(physics): McZapkie/ becomes physics/, its files get English names
The folder of the vehicle physics was named after the author of its first
version (2001). Its name now says what it holds, and so do its files:

  McZapkie/MOVER.h, Mover.cpp       -> physics/mover.h, mover.cpp
  McZapkie/hamulce.h, hamulce.cpp   -> physics/brakes.h, brakes.cpp
  McZapkie/Oerlikon_ESt.h, .cpp     -> physics/oerlikonest.h, .cpp
  friction, collision, couplerphysics, derailment: same names in physics/

Every include names the folder ("physics/mover.h"); the McZapkie include
directory is gone from CMakeLists.txt. The comments and documents that
named the old paths name the new ones. The credits to McZapkie stay.

Renames only: git sees every file as renamed (98-100%). 1142/1142 tests,
golden traces exact against staging 62f7a29b.
2026-11-27 17:11:46 +01:00