Why this simulator uses real compute power, and what your system should provide
Spinning Magnets Lab is not a static visualization or a precomputed animation. It is a deterministic physics engine that evaluates magnetic fields, flux integration, electrical response, and electromechanical coupling in real time.
Each frame of the simulation performs a full physical evaluation chain:
geometry placement → magnetic field evaluation (per sample point) → coil surface integration (numerical quadrature) → flux linkage history → induced voltage → current (RL model or load model) → electromagnetic torque → power and energy tracking
Many of these steps involve hundreds to thousands of field evaluations per frame, especially when overlays like heatmaps, vector fields, or flux lines are enabled.
This is fundamentally different from a game or animation. It behaves more like a numerical instrument.
The simulator follows a strict one-way pipeline:
project state → normalized inputs → physics engine → derived outputs → rendering
No UI shortcuts are allowed. All displayed values originate from the engine, not from approximations or cached visuals.
This principle is also enforced at system level: the UI never performs physics calculations.
| Component | Minimum |
|---|---|
| CPU | Dual-core (Intel i3 / Ryzen 3 or equivalent) |
| RAM | 4 GB |
| GPU | Integrated graphics (WebGL capable) |
| Browser | Modern Chromium / Firefox |
| Resolution | 1366×768 |
This configuration allows basic simulation and simple setups, but performance may degrade when enabling advanced overlays.
| Component | Recommended |
|---|---|
| CPU | 4–8 cores (Ryzen 5 / i5 or better) |
| RAM | 8–16 GB |
| GPU | Dedicated GPU or strong integrated GPU |
| Browser | Latest Chrome / Chromium |
| Display | 1920×1080 or higher |
For large experiments, high-resolution overlays, and complex machines:
This is especially important when:
Simulation cost grows with:
Example:
heatmap 42×42 → 1764 field samples heatmap 120×120 → 14400 field samples
Each sample requires a full magnetic field evaluation.
Heavy calculations are executed in a dedicated worker thread.
This keeps the UI responsive while physics is computed in the background.
The worker performs:
Most tools:
This simulator:
That is why it behaves more like a measurement instrument than a typical web app.
The computational cost is not a limitation — it is a direct consequence of physical correctness.
You are effectively running a real-time electromagnetic simulation engine inside your browser.