Weather & sonar analysis (key 0, uConsole full screen and every Remote
Crew station): own-ship atmosphere derived from the weather system
(barometer leading the sea with WMO tendency and storm warning, air
temperature with cold outbreaks, snow and icing, gusts, Beaufort, cloud
ceiling, twilight from sun elevation, moon phase), weather effects, and a
helicopter flight decision (CLEAR/LIMITED/NO-GO; gusts, ceiling and icing
now limit launch and dipping, light icing costs fuel). The ocean profile
(layer, sound-speed curve, SOFAR axis, rays and shadow zone) appears only
after a sonar bathythermograph measurement and is always that
measurement. Rain freshens a surface lens in the Mackenzie sound speed;
ray profiles and the BT continue to the seabed (to 1500 m) so a deep
sound channel can form. New common v2 block `weather_station`, browser
validator and dialog, protocol docs, manual EN/DE.
Also included from the parallel session: selectable 30/60 FPS frame-rate
preference with bounded catch-up of slow frames, elastic sonar audio
buffering (local mixer and AudioWorklet), and a German presentation of
the simulation under docs/presentation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add src/sonar/raytrace.py: a vectorized 48-ray Snell fan through the
Mackenzie sound-speed profile with turning points, rough-surface
(Beckmann-Spizzichino) and lossy Rayleigh bottom reflections (complex
sediment index), summed incoherently into TL(range, depth) tables for the
four bands. Tables are pure functions of a quantized environment key
(sensor depth, mixed layer, SST, water depth, sediment, wind) behind a
bounded LRU, so the cache never affects results or save/load continuation.
Surface duct, shadow zone, bottom bounce and deep-water convergence emerge
from the profile. Own, dipping and NPC passive sonars use the ray excess
(reciprocity: sensor is the source), anchored at a reference environment so
the 20 NM reference range holds. Cross-layer and cavitating-speed range
deviations are recorded with their physical reasons. Manual EN/DE updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add src/sonar/equation.py and route own-ship, dipping and NPC sonars
through it, calibrated so the 1.0.0 detection ranges hold:
- Passive SE = SL - TL - NL + DI - DT per band: source level from target
quietness, spherical spreading plus path excess and Francois-Garrison
absorption, Wenz/Knudsen wind, shipping (nearby merchants) and rain
noise power-summed with a hull self-noise floor and the speed/cavitation
self noise; own wake astern masks the hull array.
- Active SE with aspect/length target strength, bottom (sediment Lambert),
surface and volume reverberation, CW Doppler rejection growing with
radial speed, LFM processing gain, Cramer-Rao range accuracy.
- Selectable CW/LFM pulse (W, saved); charted wrecks return unassociated
echoes (saved pending clutter).
- NPC passive sonars hear louder targets farther and use their catalog
receiver sensitivity.
Sea-state deviations at cavitating own speed are recorded with reasons.
Manual EN/DE and help updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
- Bump the save format to v12 (u-jagd-save-v12); every v11 save is rejected
without migration. Remove the same-version v10/v11 upgrader chain, the
legacy ESM v1/v2 and two-channel ECM restore paths.
- Declare exact save key sets in src/core/save_schema.py.
- Persist Sub._active_ping_cd and SurfaceShip torpedo-evasion state, which
were silently reset on load and broke deterministic continuation.
- Validate the damage block exactly (keys, teams, bounded flood/fire).
- Add a simulated own-ship AIS receiver (ITU-R M.1371 class-A cadence,
VHF line of sight). Radar observations of civilians no longer carry the
true name and course (observation-boundary leak).
- Add src/core/detrand.py for stateless deterministic draws.
- Add tools/calibrate.py with golden 1.0.0 gameplay metrics and a test that
keeps later physics phases within tolerance.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>