mirror of
https://github.com/db9979/uconsole_asw_game.git
synced 2026-12-06 04:44:18 +01:00
Add src/physics/ship_dynamics.py with hull/propeller data in data/loadouts/ownship_hull.json, calibrated at load time against the 1.0.0 references (top speed, 92 s to 90 % of FULL, 92 s stop, 1.2 deg/s at FULL, cavitation at 15 kn, cubic fuel law): - Surge from propeller thrust (linear K_T(J)) against quadratic resistance and added resistance in waves; three exactly integrable regimes (load-up programme, governed, reverse-pitch braking) keep the result independent of the step size. - Cavitation from the cavitation number at the screw depth (earlier when pitching lifts the stern); physical shaft rpm; fuel from shaft power. - First-order Nomoto steering (turn circle ~0.4 NM at all speeds). - 1-DOF roll/pitch driven by a Pierson-Moskowitz wave slope, turn heel, list and speed-dependent fin stabilizers. - Displacement from fuel and floodwater; hydrostatic draft plus Barrass squat feed swept grounding. - Jammed rudder when the aft steering-gear room is destroyed, stabilizers lost with a destroyed hull compartment. - Saved wake ring with bubble decay for later sensor/weapon phases. Deviations (rpm display values, HALF turn rate) are recorded in tests/calibration/deviations.json. Manual EN/DE updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>