← All projectsGitHub
Digital twins & sim-to-real

How many solver iterations does a physics twin need to hold a stack of boxes still?

research/free-pgsstack

How many solver iterations does a physics twin need to hold a stack of boxes still? A projected Gauss-Seidel solver at 60 Hz needs 16 for 4 boxes, about 128 for 6 and over 2048 for 16 or more, and extra iterations do not reliably help.

7 tests

What it found

A from-scratch projected Gauss-Seidel (sequential-impulse) contact solver at 60 Hz on a 1-D stack of n unit boxes starting at rest, checked against the exact static contact impulses. The iterations per step needed to hold the stack (speed under 1 mm/s, total overlap under 0.1 mm, and for every larger count tried) grow faster than n: 1 at n = 2, 8 to 16 at n = 4, 64 to 128 at n = 6, 128 to 512 at n = 12, and over 2048 for n = 16 (bottom-up warm start) or n = 32 (every variant). Sixteen iterations hold at most 4 boxes. More iterations do not reliably help: at n = 16, 1024 holds and 2048 does not. Cold start needs more at small n and is mixed at large n; sweep order has no clean rule. One-dimensional, normal force only, one step size and Baumgarte factor, no real engine run; the cause of the non-monotone behaviour is not isolated.

A figure from its own output

Figure produced by research/free-pgsstack: iters_needed
free-pgsstack/experiments/iters_needed.svg, written by the project's own experiment code.

Paper, code and results

More in Digital twins & sim-to-real

All 164 Digital twins & sim-to-real projects →

Other research topics

Proper scoring & elicitation28Effort & peer prediction9Verification games & slashing19Detection & tolerances14Markets as routers13Prediction-market design9Paying contributors8Decentralised training systems23Digital twins & sim-to-real164LLM chip design loops40Robot manufacturing loops53Ambient AI assistant46Self-replicating manufacturing34Simulation-first design64Engineered clothing45Task-specific AI accelerators40Algorithmic chip-design loops42Open-source purpose-built robots44The software-engineering loop43Adversarial human imitation41Open-source residential construction41Autonomous multi-angle capture34Sensing, imaging and 3D31Energy supply and dense energy storage39Robot societies among people31Agentic co-design of low-cost robots27Laundry-hanging robots25Machine learning on qualitative data23Robots on the building site27Civilizations & group psychology1History & human sciences1

Produced with AI assistance (Claude). Results are from the code in this repository and are simulated or stylised unless the abstract says otherwise; nothing here implies affiliation with or endorsement by any lab, researcher or company cited. MIT licensed.