Development · Research

TDC Simulator — Type VII Submarines

Web simulator for the torpedo fire control computer (TDC) of Type VII submarines.

1 star2026role: autor único (proyecto universitario)status: completado
procedural cover — real screenshots pendingProcedural cover for the project TDC Simulator — Type VII Submarines.

01 Summary

Educational simulator for the TVhRe C/37 and S3 torpedo pre-setting computer used in Kriegsmarine Type VII submarines. A FastAPI backend implements the trigonometric engine that solves the firing triangle (deflection angle or Vorhaltwinkel) using a quadratic intercept equation, along with calculating speed via ship-length timing and distance via stadiometer. The Next.js frontend offers two switchable views: a realistic mode with brass dials and a technical mode with a 2D vector diagram.

02 Results

Verifiable figures in the repository and its documentation:

3modos de cálculo (desviación, velocidad, distancia)

03 Highlights

  • Trigonometric engine that solves torpedo-target interception as a quadratic equation, handling degenerate and no-solution cases.
  • REST API built with FastAPI and Pydantic validation with field-bounded ranges.
  • Target speed calculation via ship-length timing and distance via masthead stadiometer, replicating periscope instruments.
  • Dual interface in Next.js: realistic mode with period-style instrumentation dials and technical mode with a top-down vector diagram.
  • README with comprehensive documentation of the mathematical model, endpoints, and deployment guides.

04 Screenshots