This page is a visualization of a toy example for the article Time-dependent metrics and connections.
The trajectories of masses in a double pendulum are described by the geodesics of the metric defined by the kinetic energy.
In the case of the time-dependent masses, the associated masses become also time-dependent.
In our work we define the notion of geodesics of a time-dependent metrics, and we see that the equations given by those geodesics (plus the potential energy) give the actual trajectories of the system, in a similar fashion time-dependent metrics do.
Technicalities
For this visualization, in addition to JS for the input/output bindings, the actual realtime computations are provided by the system's driver which programmed in C. I ported it to web using WebAssembly.
For the integrator, I used GSL which at some point I compiled to WASM. Concretely, it uses the implementation of the Runge-Kutta-Fehlberg (4, 5) method.