mirror of
https://github.com/db9979/uconsole_asw_game.git
synced 2026-12-06 12:54: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>
32 lines
892 B
JSON
32 lines
892 B
JSON
{
|
|
"version": 1,
|
|
"note": "Fictional gameplay frigate; physically consistent, not a real ship.",
|
|
"displacement_t": 3600.0,
|
|
"length_m": 118.0,
|
|
"beam_m": 14.0,
|
|
"draft_m": 7.5,
|
|
"block_coefficient": 0.48,
|
|
"waterplane_coefficient": 0.75,
|
|
"max_brake_power_kw": 30000.0,
|
|
"propulsive_efficiency": 0.65,
|
|
"propeller_diameter_m": 4.2,
|
|
"propeller_zero_thrust_advance_ratio": 1.4,
|
|
"flank_advance_ratio": 1.26,
|
|
"shaft_immersion_m": 5.5,
|
|
"idle_rpm": 20.0,
|
|
"metacentric_height_m": 1.2,
|
|
"turn_heel_lever_m": 2.0,
|
|
"roll_period_s": 10.0,
|
|
"roll_damping_ratio": 0.06,
|
|
"stabilizer_damping_ratio": 0.2,
|
|
"stabilizer_full_speed_kn": 18.0,
|
|
"pitch_period_s": 5.5,
|
|
"pitch_damping_ratio": 0.3,
|
|
"flood_mass_t_per_percent": 2.5,
|
|
"brake_thrust_limit_fraction": 0.6,
|
|
"wake_sample_s": 10.0,
|
|
"wake_max_points": 48,
|
|
"wake_decay_s": 180.0,
|
|
"surge_added_mass_ratio": 0.08
|
|
}
|