Dynamic Relaxation: Letting a Cable Net Settle by Itself, and the Time-Step Limit That Keeps It Honest
Continuing A.15: the same 30 m model net is found a second way, by giving every knot a fictitious mass, letting the net swing and removing its energy until it stops. The result matches the direct solve (centre sag 1.974 m), and a closed-form limit, 0.2264 s at q = 10 kN/m and m = 1 t, says how large the time step may be.
Why it matters
Relaxing the net is like rolling a ball down into a bowl: the ball overshoots and rocks from side to side until friction wins. Here the bowl is the net's stored energy, and because waiting for friction to stop the swing can take many steps, the method adds its own, stopping the ball each time it reaches its top speed.
Conceptual Vision Plate A.16-V (Imagining What It Would Look Like) · AI-generated illustration of a settling pale filament canopy between dark masts at blue hour: a loose, futuristic picture of dynamic relaxation toward static equilibrium. It is not a physical load test or an engineering design.
About this illustrationThis AI-generated illustration is imagining what the concept would look like: an artistic impression, not a measured structure or specification. Exact geometry, specifications and governing equations are kept strictly intact with zero artistic interpretation in deterministic Plate A.16-A and Plate A.16-B below.Sinopsis Ejecutiva en Español · Folio A.16
Actos I y II — Historia, ley gobernante e intuición cotidiana:Relajación dinámica: dejar que una red de cables se acomode sola, y el límite del paso de tiempo que la mantiene honesta — Continuación de A.15: la misma red modelo de 30 m se encuentra de otra manera, dándole a cada nudo una masa ficticia, dejando que la red oscile y quitándole energía hasta que se detiene. El resultado coincide con la solución directa (flecha central de 1.974 m), y un límite en forma cerrada, 0.2264 s con q = 10 kN/m y m = 1 t, dice qué tan grande puede ser el paso de tiempo. Este monográfico interactivo verifica la ley gobernante m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward). Por qué importa en la vida real: Relajar la red se parece a dejar rodar una bola hacia el fondo de un tazón: la bola se pasa, se mece de un lado a otro hasta que la fricción gana. Aquí el tazón es la energía almacenada de la red, y como la fricción real tardaría demasiados pasos, el método agrega la suya: detiene la bola cada vez que alcanza su máxima velocidad.
En Palabras Sencillas (Explicación Accesible): Imaginen el mismo marco cuadrado con ligas y una canica en cada cruce, pero ahora todas las canicas se sueltan a la vez. Se suelta la red, y cada vez que va más rápido, se detiene en seco y se vuelve a soltar. Cada alto quita la energía que la mantendría oscilando, y después de unas decenas de altos la red queda quieta. La forma en que queda es la que dieron las ecuaciones lineales del Folio A.15. Hay una regla que respetar: si se suelta en pasos demasiado grandes, la imagen se desmorona y la red sale volando. Este folio es una explicación de un método, no un método de diseño, y ninguno de sus números debe usarse en una estructura real.
Mecanismo Técnico, Fuerzas en Competencia y Umbral Crítico: La relajación dinámica con amortiguamiento cinético es el tema de Barnes (1999), citado aquí solo por su tema; la regla de actualización, el regreso a la posición donde empezó el paso más rápido y todas las cifras son propias de este folio. Con la fuerza desbalanceada R = w a² − D z y una masa ficticia m en cada nudo, la actualización explícita v ← v + (Δt / m) R, z ← z + Δt v es estable sin amortiguamiento solo si Δt < 2 √(m / λ_max), con λ_max = 4 q (1 + cos(π / N)) = 78.042 kN/m: 0.2264 s con m = 1 t. Con Δt = 0.10 s (0.44 del límite), el amortiguamiento cinético llega a un residuo menor que 1e-9 kN en 231 pasos con 30 regresos a la posición guardada, y la flecha coincide con la solución directa de A.15 (1.974 m en el centro, 1/15.2 del claro). Un factor viscoso constante, buscado de 0.01 a 0.99 en pasos de 0.01, necesitó 187 pasos con 0.22, elegido con un barrido que necesita la respuesta de antemano (el amortiguamiento cinético no necesitó ajuste); con Δt = 0.15 s y 0.20 s ambos por debajo del límite, el amortiguamiento cinético no llegó a la tolerancia en 5,000 pasos en esta implementación. El modelo es lineal, así que la solución directa es más barata; no incluye el estiramiento de los cables, viento, nieve, encharcamiento, conexiones ni apoyos: es una explicación, no un método de diseño, y sus números no deben usarse en una estructura real.
Acto III — Laboratorio interactivo: los deslizadores en tiempo real y las cuatro lentes del observatorio (superficie 3D, retrato de fase, listón de conservación y radar polar) permiten explorar los umbrales críticos directamente en el navegador.
Actos IV y V — Descubrimiento y fuentes: la narrativa completa y las fuentes primarias siguen abajo (en inglés). Investigación científica y educativa abierta, no consejo médico.
Act I — A Net That Is Let Go Will Find Its Own Shape
Hold a fishing net by its edges, put a weight on every knot and let go. The net swings, overshoots, swings back, and if there is any friction in the air it slowly comes to rest in the one shape where every knot is in balance. Nobody solved anything: the net simply kept moving until nothing pushed it any more. Dynamic relaxation uses that picture to find the shape of a cable net on a computer. This folio works it through on the model net of Folio A.15, where the answer is already known from one set of linear equations, so every step can be checked. It is an explanation of a method, not a design method, and none of its numbers may be used on a real structure.
In Plain Words · Extra-Easy Explanation
Picture the same square frame strung with rubber bands and a marble on every crossing, but now imagine the marbles are all let go at once. Let the net swing, and each time it is moving fastest, stop it dead and let it go again. Each stop takes away the energy that would keep it swinging, and after a few dozen stops the net hangs still. The shape it hangs in is the shape the straight-line equations of Folio A.15 gave. There is one rule of thumb to respect: if you let go in steps that are too big, the picture falls apart and the net flies off the page.
Barnes (1999, DOI 10.1260/0266351991494722[Scite ↗]) describes numerical procedures based on the method of dynamic relaxation with kinetic damping for the form finding, analysis and fabrication patterning of cable nets and grid shells; the abstract also says the historical development of the method is reviewed. Veenendaal and Block (2012, DOI 10.1016/j.ijsolstr.2012.08.008[Scite ↗]) give an overview and comparison of structural form-finding methods for general networks, and Schek (1974, DOI 10.1016/0045-7825(74)90045-0[Scite ↗]) is the force density method that Folio A.15 used. This run could read the index record and, for Barnes, the abstract, but not the full texts, so the folio cites these papers for their subject only. The update rule, the way the peak is restored, the time-step limit and every number below are the folio's own, written out from first principles and recomputed by its verifier.
The model on this page is linear, so one direct solve is cheaper than any relaxation at this size, and the page says so. Its steps need no matrix inverse, and the abstract of Barnes (1999) says the procedures allow for gross geometrical and material non-linearities. This folio shows only the linear case, because that is where the answer can be checked. It says nothing about whether real cables, clamps, masts or foundations could carry the forces, how cables stretch, or how wind, snow or ponding water would move a net. Those questions belong to engineers working with codes and tested materials.
Every enduring equation begins as a human question—an act of patient curiosity by investigators who refused to accept an opaque boundary as the final word. Tracing the intellectual arc of Folio A.16 from its earliest formulation in 1974 (Schek publishes The force density method for form finding and computation of general networks in Computer Methods in Applied Mechanics and Engineering 3 (DOI 10.1016/0045-7825(74)90045-0[Scite ↗]).) to its modern resolution in 2026 (This folio relaxes the A.15 model net two ways and checks both against the direct solve (skills/architecture/a16/verify_a16_dynamic_relaxation.py).) reveals why un-coupled classical approximations repeatedly stalled at a hard analytical barrier. Whenever investigators attempted to treat the governing relation m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward) as a purely local or linearized perturbation, higher-order coupling terms across the kernel triad (Residual R = w a² − D z · Explicit Velocity–Position Update · Kinetic-Energy Peak Restore · Eigenvalue Time-Step Limit) amplified truncation error rather than damping it. What appeared for decades to be an intractable computational or experimental pathology was, in reality, a structural phase boundary embedded in the operator domain itself.
Resolving that impasse required shifting from ad-hoc empirical curve fitting to a rigorous, multi-stage operator formulation anchored in Model values (not measurements): L = 30.0 m · 10 × 10 bays (a = 3.0 m) · q = 10 kN/m · w = 0.30 kN/m² · m = 1 t per knot · Δt = 0.10 s · limit 0.2264 s · centre sag 1.974 m · 231 steps with 30 restores · best viscous factor 0.22 needs 187 steps. Specifically, the system’s trajectory is governed by control parameter P_1 (Force Density in Every Bar (q)) spanning the admissible interval [5.0, 30.0] with step resolution Δ = 1.0 and reference operating point 10.0 kN/m; control parameter P_2 (Fictitious Mass at Each Knot (m)) spanning the admissible interval [0.25, 4.0] with step resolution Δ = 0.25 and reference operating point 1.0 t. Within this state space, any valid proof or physical design must simultaneously satisfy local conservation laws, global boundary conditions, and strict asymptotic scaling—setting the stage for the four-chapter formal derivation in Act II.
"A net that is let go, and stopped each time it moves fastest, settles into the same shape the equations give."
§ I.2 · Historical Turning Points
Year
Milestone
1974
Schek publishes The force density method for form finding and computation of general networks in Computer Methods in Applied Mechanics and Engineering 3 (DOI 10.1016/0045-7825(74)90045-0[Scite ↗]).
1999
Barnes publishes Form finding and analysis of tension structures by dynamic relaxation in the International Journal of Space Structures 14(2) (DOI 10.1260/0266351991494722[Scite ↗]).
2012
Veenendaal and Block publish an overview and comparison of structural form-finding methods for general networks in the International Journal of Solids and Structures 49 (DOI 10.1016/j.ijsolstr.2012.08.008[Scite ↗]).
2026
This folio relaxes the A.15 model net two ways and checks both against the direct solve (skills/architecture/a16/verify_a16_dynamic_relaxation.py).
Act II — Cross-Field Intuition: A Ball Rolling Into a Bowl, With Friction Added by Hand
Everyday Analogy & Interactive Controls Primer
Everyday Analogy: Relaxing the net is like rolling a ball down into a bowl: the ball overshoots and rocks from side to side until friction wins. Here the bowl is the net's stored energy, and because waiting for friction to stop the swing can take many steps, the method adds its own, stopping the ball each time it reaches its top speed.
How the Two Sliders Work in Plain Words: Use the two sliders to change the model net. The first sets the force density q from 5 to 30 kN/m. The second sets the fictitious mass m at each knot from 0.25 to 4 t. Watch the first readout, the time-step limit. A stiffer net (larger q) lowers the limit, and a heavier fictitious mass raises it. The second readout compares a fixed step of 0.10 s with that limit and says Stable or Unstable. The third readout is the converged sag, the same as the A.15 answer for that q, so it does not move when you change m. The fourth readout, the step count, is fixed text: it was measured at the reference values only. All values are model values, not measurements.
1 · EVERYDAY ANALOGY (A.16)
A Ball Stopped at Its Top Speed
Removing the swing's energy by hand lets the net settle after about 30 stops (231 steps)
Slider 1: Force Density in Every Bar
Slider 2: Fictitious Mass at Each Knot
➜
2 · TWO COMPETING FORCES
▲ Force Density (q)
A stiffer net has a faster highest mode and so a smaller safe time step
▼ Fictitious Mass (m)
Heavier imagined knots move more slowly and allow a larger step; the final shape does not change
Δt above the limit: the update grows without bound and the net flies apart
PLATE A.16-D · VISUAL INTUITION BRIDGE → GOVERNING OPERATOR: m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward)
Plate A.16-D · Visual Intuition Bridge: Before diving into the formal equations, follow how the everyday physical analogy (left) sets two competing mechanisms in tension (center) around a sharp tipping point (right) that you can test directly with the two sliders in Act III.
Take the sag z of the free knots, measured downward. Its out-of-balance force at one knot is R = w a² − q (4 z − sum of the four neighbours), the load minus what the four bars hold up. Collect the bar terms in the matrix D, so R = w a² − D z; the shape in equilibrium has R = 0, which is the A.15 equation. Now give every knot a fictitious mass m and let the knots move: m dv/dt = R. The folio updates the velocity first, v ← v + (Δt / m) R, then the position, z ← z + Δt v. Each mode of the net then oscillates at its own frequency, and the highest one has λ_max = 4 q (1 + cos(π / N)) for an N × N bay net, which is 78.042 kN/m at q = 10 kN/m and N = 10. The update is stable for the undamped net only while Δt < 2 √(m / λ_max), which is 0.2264 s at m = 1 t. The slowest mode has λ_min = 4 q (1 − cos(π / N)) = 1.958 kN/m, so the ratio of the two, 39.9, is the condition number of D. Live parameter coupling: Force Density in Every Bar = 10.0 kN/m under governing law
— in plain words: letting a net swing and removing its energy each time it moves fastest brings it to the same shape the equations give, as long as each time step stays below a limit set by the stiffest mode.
On this net the verifier relaxes from a flat start with m = 1 t and Δt = 0.10 s, which is 0.44 of the limit. With no damping the net had not settled after 3,000 steps. Kinetic damping tracks the total kinetic energy; when it has passed a peak, the folio's version goes back to the position it had when the fastest step began, sets all velocities to zero and starts again. It reached a largest residual under 1e-9 kN in 231 steps with 30 restores, and its sag field differs from the dense direct solve by less than 1e-6 m, a centre sag of 1.974 m (1/15.2 of the span). A constant viscous factor, scanned from 0.01 to 0.99 in steps of 0.01, did better at this step: 0.22 reached the same tolerance in 187 steps. The scan needs the answer in hand to pick the factor, while kinetic damping needed no tuning, and at Δt = 0.05 s the order flips (357 steps for kinetic damping, 364 for the best viscous factor). Kinetic damping also has a weakness in this implementation: at Δt = 0.12 s it took 196 steps, but at 0.15 s and 0.20 s, both below the 0.2264 s limit, it did not reach the tolerance in 5,000 steps, going back to the saved position more than a thousand times. The limit above is for the undamped update; it does not promise that every damping rule converges below it.
m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward)
Kernels: Residual R = w a² − D z · Explicit Velocity–Position Update · Kinetic-Energy Peak Restore · Eigenvalue Time-Step Limit · Benchmarks: Model values (not measurements): L = 30.0 m · 10 × 10 bays (a = 3.0 m) · q = 10 kN/m · w = 0.30 kN/m² · m = 1 t per knot · Δt = 0.10 s · limit 0.2264 s · centre sag 1.974 m · 231 steps with 30 restores · best viscous factor 0.22 needs 187 steps · Primary Anchor:DOI 10.1260/0266351991494722
To elevate Folio A.16 (Dynamic Relaxation: Letting a Cable Net Settle by Itself, and the Time-Step Limit That Keeps It Honest) from a qualitative summary to an executable mathematical and physical treatise, we first define the exact state-space manifold on which the operator m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward) acts. Let the system state be parameterized by control parameter P_1 (Force Density in Every Bar (q)) spanning the admissible interval [5.0, 30.0] with step resolution Δ = 1.0 and reference operating point 10.0 kN/m; control parameter P_2 (Fictitious Mass at Each Knot (m)) spanning the admissible interval [0.25, 4.0] with step resolution Δ = 0.25 and reference operating point 1.0 t. Over this bounded domain, the coupled kernels (Residual R = w a² − D z · Explicit Velocity–Position Update · Kinetic-Energy Peak Restore · Eigenvalue Time-Step Limit) map every admissible input configuration to a unique, deterministic equilibrium or deductive fixed point recomputed by skills/architecture/a16/verify_a16_dynamic_relaxation.py.
Crucially, well-posedness across the Model values (not measurements): L = 30.0 m · 10 × 10 bays (a = 3.0 m) · q = 10 kN/m · w = 0.30 kN/m² · m = 1 t per knot · Δt = 0.10 s · limit 0.2264 s · centre sag 1.974 m · 231 steps with 30 restores · best viscous factor 0.22 needs 187 steps regime requires that the governing operator preserve dimensional homogeneity, non-negativity of physical energy/entropy functionals, and strict monotony along the primary reaction or proof coordinate. Whenever a simplified model omits one of the coupled terms in m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward), the resulting approximation violates boundary compatibility and diverges from the primary peer-reviewed evidence (Scite index entry for Barnes, Form finding and analysis of tension structures by dynamic relaxation (International Journal of Space Structures 14(2), 89–104, 1999, DOI 10.1260/0266351991494722), checked 2026-11-29: 485 citing publications; 220 citation statements in the index, 212 of them classified as mentioning, none as supporting or contrasting; no retraction notice. Counts describe that paper, not this folio's model.).
Rather than treating m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward) as an opaque black-box formula, we decompose the proof and physical mechanism of Folio A.16 into four clear, verifiable stages. True scientific tools do not ask for blind trust; they invite inspection. Each stage represents a rigorous transformation of the state vector—corresponding one-to-one with the 4-stage interactive stepper in Act III and the standalone verifier in skills/architecture/a16/verify_a16_dynamic_relaxation.py:
Stage 1 Derivation & State Transition
Formal Stage Mechanism: Stage 1 (Settling Instead of Solving): Folio A.15 found the net's shape by solving linear equations. Dynamic relaxation finds the same shape by letting an imagined dynamic system move: each knot gets a fictitious mass, the out-of-balance force accelerates it, and energy is removed until nothing moves. Barnes (1999, DOI 10.1260/0266351991494722[Scite ↗]) describes numerical procedures based on dynamic relaxation with kinetic damping for the form finding and analysis of cable nets and grid shells; Veenendaal and Block (2012, DOI 10.1016/j.ijsolstr.2012.08.008[Scite ↗]) compare form-finding methods for general networks.
Operator Coupling & Invariant Closure: At Stage 1 of the Folio A.16 derivation chain, the intermediate state maps directly onto the governing law m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward) under benchmark regime Model values (not measurements): L = 30.0 m · 10 × 10 bays (a = 3.0 m) · q = 10 kN/m · w = 0.30 kN/m² · m = 1 t per knot · Δt = 0.10 s · limit 0.2264 s · centre sag 1.974 m · 231 steps with 30 restores · best viscous factor 0.22 needs 187 steps. To ensure that deductive or physical flux is conserved without unverified hand-waving as the system advances from Stage 1 toward terminal convergence, the transition operator enforces the companion verification constraint: This is an explanation of a solution method, not a design method; none of its numbers may be used on a real structure. Every numerical trajectory and geometric projection in Plate A.16-A and Plate A.16-B below evaluates this exact stage transfer function in real time.
Stage 2 Derivation & State Transition
Formal Stage Mechanism: Stage 2 (The Update and Its Speed Limit): For the sag z of each free knot, the out-of-balance force is R = w a² − q (4 z − sum of the four neighbours). The folio's own explicit update is v ← v + (Δt / m) R, then z ← z + Δt v. The matrix D = q (4 I − neighbour sum) has largest eigenvalue λ_max = 4 q (1 + cos(π / 10)) = 78.042 kN/m for the model net, and the undamped update stays bounded only below Δt_max = 2 √(m / λ_max) = 0.2264 s for m = 1 t. The verifier finds λ_max by power iteration, matches the closed form, and shows growth at 1.02 times the limit.
Operator Coupling & Invariant Closure: At Stage 2 of the Folio A.16 derivation chain, the intermediate state maps directly onto the governing law m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward) under benchmark regime Model values (not measurements): L = 30.0 m · 10 × 10 bays (a = 3.0 m) · q = 10 kN/m · w = 0.30 kN/m² · m = 1 t per knot · Δt = 0.10 s · limit 0.2264 s · centre sag 1.974 m · 231 steps with 30 restores · best viscous factor 0.22 needs 187 steps. To ensure that deductive or physical flux is conserved without unverified hand-waving as the system advances from Stage 2 toward terminal convergence, the transition operator enforces the companion verification constraint: Compute the out-of-balance force R at every free node, update v ← v + (Δt / m) R and z ← z + Δt v, and keep Δt below 2 √(m / λ_max) where λ_max is the largest eigenvalue of the force density matrix. Every numerical trajectory and geometric projection in Plate A.16-A and Plate A.16-B below evaluates this exact stage transfer function in real time.
Stage 3 Derivation & State Transition
Formal Stage Mechanism: Stage 3 (Stopping the Swing): With no energy removed, the net keeps swinging: the undamped run in the verifier had not settled after 3,000 steps. Kinetic damping watches the total kinetic energy; when it passes a peak, the folio's version goes back to the position where the fastest step began, sets every velocity to zero and lets go again. At Δt = 0.10 s this reaches a largest residual under 1e-9 kN in 231 steps with 30 restores, and the sag matches the A.15 solve to better than 1e-6 m (1.974 m at the centre).
Operator Coupling & Invariant Closure: At Stage 3 of the Folio A.16 derivation chain, the intermediate state maps directly onto the governing law m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward) under benchmark regime Model values (not measurements): L = 30.0 m · 10 × 10 bays (a = 3.0 m) · q = 10 kN/m · w = 0.30 kN/m² · m = 1 t per knot · Δt = 0.10 s · limit 0.2264 s · centre sag 1.974 m · 231 steps with 30 restores · best viscous factor 0.22 needs 187 steps. To ensure that deductive or physical flux is conserved without unverified hand-waving as the system advances from Stage 3 toward terminal convergence, the transition operator enforces the companion verification constraint: Remove energy with kinetic damping (go back to the position where the fastest step began and zero the velocities) or a tuned viscous factor, and say which was used and how many steps it needed. Every numerical trajectory and geometric projection in Plate A.16-A and Plate A.16-B below evaluates this exact stage transfer function in real time.
Stage 4 Derivation & State Transition
Formal Stage Mechanism: Stage 4 (What the Model Does Not Say): A viscous factor scanned in steps of 0.01 does better here: 0.22 needs 187 steps, but only because the scan was run; kinetic damping needed no tuning. Some larger kinetic steps fail in this implementation: Δt = 0.12 s still converges in 196 steps, but at 0.15 s and 0.20 s it did not reach the tolerance in 5,000 steps. The model is linear, so the direct solve is cheaper at this size. It leaves out cable stretch, wind, snow, ponding, connections and supports.
Operator Coupling & Invariant Closure: At Stage 4 of the Folio A.16 derivation chain, the intermediate state maps directly onto the governing law m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward) under benchmark regime Model values (not measurements): L = 30.0 m · 10 × 10 bays (a = 3.0 m) · q = 10 kN/m · w = 0.30 kN/m² · m = 1 t per knot · Δt = 0.10 s · limit 0.2264 s · centre sag 1.974 m · 231 steps with 30 restores · best viscous factor 0.22 needs 187 steps. To ensure that deductive or physical flux is conserved without unverified hand-waving as the system advances from Stage 4 toward terminal convergence, the transition operator enforces the companion verification constraint: Check the relaxed shape against a direct solve of the same equations, check the residual at every free node, and state any time step at which the method failed to converge. Every numerical trajectory and geometric projection in Plate A.16-A and Plate A.16-B below evaluates this exact stage transfer function in real time.
Every quantitative claim in Folio A.16 is tied to four falsification rules listed in dynamic-relaxation-cable-net-SKILL.md and executed by skills/architecture/a16/verify_a16_dynamic_relaxation.py:
Invariant A.16-R1: This is an explanation of a solution method, not a design method; none of its numbers may be used on a real structure.
Recomputed offline by skills/architecture/a16/verify_a16_dynamic_relaxation.py; primary anchor DOI 10.1260/0266351991494722.
Invariant A.16-R2: Compute the out-of-balance force R at every free node, update v ← v + (Δt / m) R and z ← z + Δt v, and keep Δt below 2 √(m / λ_max) where λ_max is the largest eigenvalue of the force density matrix.
Recomputed offline by skills/architecture/a16/verify_a16_dynamic_relaxation.py; primary anchor DOI 10.1260/0266351991494722.
Invariant A.16-R3: Remove energy with kinetic damping (go back to the position where the fastest step began and zero the velocities) or a tuned viscous factor, and say which was used and how many steps it needed.
Recomputed offline by skills/architecture/a16/verify_a16_dynamic_relaxation.py; primary anchor DOI 10.1260/0266351991494722.
Invariant A.16-R4: Check the relaxed shape against a direct solve of the same equations, check the residual at every free node, and state any time step at which the method failed to converge.
Recomputed offline by skills/architecture/a16/verify_a16_dynamic_relaxation.py; primary anchor DOI 10.1260/0266351991494722.
Together, Invariants A.16-R1 through A.16-R4 close the epistemic loop between symbolic derivation and numerical execution. If a code edit violates these bounds, the verifier fails.
Primary Counterfactual Knockout (SIDENOTE A.16-A · WHAT THE MASS IS FOR): The fictitious mass has no physical meaning: no real knot weighs 1 t in this model. It only sets how fast the imagined net responds. Doubling m raises the time-step limit by √2 (0.2264 s to 0.3202 s) and leaves the final shape untouched, because at rest the motion terms vanish and only w a² − D z = 0 is left.
Secondary Coupling & Regime Boundary (SIDENOTE A.16-B · WHERE THE METHOD IS PUBLISHED): Barnes's 1999 paper in the International Journal of Space Structures is titled Form finding and analysis of tension structures by dynamic relaxation (DOI 10.1260/0266351991494722[Scite ↗]); its abstract describes procedures based on dynamic relaxation with kinetic damping for cable nets and grid shells. This folio cites it for that subject only: the update rule, the restore-to-peak detail and every number on this page are the folio's own and are recomputed by its verifier.
Mathematical & Physical Necessity of the Full Operator: Testing a theorem or physical law by knocking out its core hypothesis is one of the sharpest ways a human mind builds intuition. This counterfactual analysis shows why every coupling term in m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward) is indispensable: When the primary control parameter is dragged to its degenerate boundary in the Act III observatory below, the stabilizing restorative term vanishes, reproducing the classical collapse predicted by theory and illustrating that our solver is an interactive computational model rather than a static animation.
Act III — Interactive Laboratory & Worked Numerical Verification
§ III.1 · Three Guided Experiments to Try
Experiment 1 (A Stiffer Net Needs a Smaller Step): Leave m at 1 t and raise q from 10 to 20 kN/m. The first readout falls from 0.2264 s to 0.1601 s, a factor of √2. The reference step of 0.10 s is now 0.62 of the limit, still stable.
Experiment 2 (A Heavier Mass Allows a Bigger Step): Return q to 10 kN/m and raise m to 4 t. The limit rises to 0.4528 s, twice the m = 1 t value, because it grows with √m. The converged sag stays at 1.974 m.
Experiment 3 (Cross the Limit): Set q = 30 kN/m and m = 0.25 t. The limit drops to 0.0654 s, and the 0.10 s step is 1.53 times the limit, so the second readout says Unstable. The converged sag falls to 0.658 m, the A.15 value for q = 30 kN/m, but that step is above the limit, where the undamped update grows instead of settling.
Plate A.16-A & A.16-B · Residual R = w a² − D z · Explicit Velocity–Position Update · Kinetic-Energy Peak Restore · Eigenvalue Time-Step Limit
Stage 1 (Settling Instead of Solving): Folio A.15 found the net's shape by solving linear equations. Dynamic relaxation finds the same shape by letting an imagined dynamic system move: each knot gets a fictitious mass, the out-of-balance force accelerates it, and energy is removed until nothing moves. Barnes (1999, DOI 10.1260/0266351991494722) describes numerical procedures based on dynamic relaxation with kinetic damping for the form finding and analysis of cable nets and grid shells; Veenendaal and Block (2012, DOI 10.1016/j.ijsolstr.2012.08.008) compare form-finding methods for general networks.
§ III.2 · Worked Numerical Verification & Reference Telemetry Benchmark
To verify the interactive observatory above by hand or inside an independent computational notebook, we evaluate the governing law m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward) at the canonical benchmark configuration (Model values (not measurements): L = 30.0 m · 10 × 10 bays (a = 3.0 m) · q = 10 kN/m · w = 0.30 kN/m² · m = 1 t per knot · Δt = 0.10 s · limit 0.2264 s · centre sag 1.974 m · 231 steps with 30 restores · best viscous factor 0.22 needs 187 steps). Substituting control parameter P_1 (Force Density in Every Bar (q)) spanning the admissible interval [5.0, 30.0] with step resolution Δ = 1.0 and reference operating point 10.0 kN/m; control parameter P_2 (Fictitious Mass at Each Knot (m)) spanning the admissible interval [0.25, 4.0] with step resolution Δ = 0.25 and reference operating point 1.0 t into the coupled Stage 1–4 equations yields the reference values recomputed by the verifier: Time-Step Limit (Δt_max) converges to 0.2264 s (Δt_max = 2 √(m / λ_max)); Reference Step Δt = 0.10 s converges to 0.44 × the Limit · Stable; Converged Centre Sag (Same as A.15) converges to 1.974 m (Sag / Span 1/15.2); Kinetic-Damping Steps (Fixed Text) converges to 231 steps (30 Restores · q = 10 kN/m · m = 1 t · Δt = 0.10 s).
Running python skills/architecture/a16/verify_a16_dynamic_relaxation.py from the repository root recomputes these values, and its planted-defect mode must fail.
Act IV — From a Settling Net to the Questions It Leaves Open
A relaxation is easy to hand to software and easy to check against something else. The verifier for this folio uses only the Python standard library: it relaxes the net twice with two damping rules, solves the same equations directly by dense elimination, finds the largest eigenvalue by power iteration and compares it with the closed form, and shows that the undamped update grows just above the limit. Its planted-defect modes take a step 5 percent above the limit, or skip the restore at the energy peak, and must fail, so a passing run means the checks can catch both errors.
The answer to "which damping is better" is not one word: tuned viscous damping was faster at the reference step, kinetic damping needed no tuning, and the order changed with the step. What this page cannot say is how either behaves on a net whose forces depend on its shape or whose cables stretch, the non-linear cases the abstract of Barnes (1999) says its procedures allow for. It also leaves out wind, snow, ponding water, edge cables, masts and connections. Those are the open questions this folio points to, and they need engineering analysis well beyond a page like this one.
Frontier discovery
Let the Net Go, Stop It at Its Fastest, and It Settles Where the Equations Say
On the 30 m square model net of Folio A.16, kinetic damping reaches the direct solve (centre sag 1.974 m) in 231 steps at Δt = 0.10 s, below the closed-form limit of 0.2264 s. A tuned viscous factor needed 187 steps. Model values only, not measurements, and not a design method.
§ IV.3 · Cross-Disciplinary Continuum & Systems Transfer
Structural & Mathematical Isomorphism (Continues A.15 · A solution method for the same linear model, not a design method): One of the defining principles of Informatico.ai is that deep governing operators transcend disciplinary silos. The exact mathematical structure of Folio A.16 (m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward)) reappears across coupled multiscale systems.
Living Edition & Revision Provenance (REV 1.0): REV 1.0 (Published 2026-11-29): Volume VII Architecture folio continuing A.15 with dynamic relaxation and kinetic damping on the same 10 × 10 bay model net, a closed-form time-step limit, and a comparison with tuned viscous damping. Independent verification: the cited DOI 10.1260/0266351991494722[Scite ↗] was matched to its title, author, journal and year through the Scite index on 2026-11-29 (no retraction notices; the abstract was read, the full text was not available to this run, so it is cited for its subject only), and every number on the page is recomputed offline by skills/architecture/a16/verify_a16_dynamic_relaxation.py (with --planted-defect). By pairing multi-chapter mathematical and physical derivations with interactive WebGL2/SVG observatories and downloadable SKILL.md companions, Folio A.16 equips engineers, mathematicians, physicists, and AI agents with a permanent, falsifiable building block for frontier discovery.
Act V — Sources
Barnes, M. R. (1999). Form finding and analysis of tension structures by dynamic relaxation. International Journal of Space Structures, 14(2), 89–104. DOI 10.1260/0266351991494722[Scite ↗].
Veenendaal, D., & Block, P. (2012). An overview and comparison of structural form finding methods for general networks. International Journal of Solids and Structures, 49, 3741–3753. DOI 10.1016/j.ijsolstr.2012.08.008[Scite ↗].
Schek, H.-J. (1974). The force density method for form finding and computation of general networks. Computer Methods in Applied Mechanics and Engineering, 3, 115–134. DOI 10.1016/0045-7825(74)90045-0[Scite ↗].
Nicholson, J. M., et al. (2021). scite: A smart citation index that displays the context of citations and classifies their intent using deep learning (https://scite.ai). Quantitative Science Studies, 2(3), 882–898. DOI 10.1162/qss_a_00146[Scite ↗].
Inspired by classic broadsheet crosswords: test your command of A.16’s governing laws and historical turning points. Switch to ES-MX in the masthead to unlock a completely independent Spanish crossword with its own grid and scientific vocabulary.
EN · INDEPENDENT ENGLISH EDITION (10×10)
0 / 64 Folios Sealed (EN: 0 · ES-MX: 0)
1 ACROSSSelect any cell or clue below to begin solving.
Across
Down
Select any cell or clue and type A–Z. Space toggles Across/Down; progress auto-saves to localStorage.
KernelsResidual R = w a² − D z · Explicit Velocity–Position Update · Kinetic-Energy Peak Restore · Eigenvalue Time-Step Limit
BenchmarksModel values (not measurements): L = 30.0 m · 10 × 10 bays (a = 3.0 m) · q = 10 kN/m · w = 0.30 kN/m² · m = 1 t per knot · Δt = 0.10 s · limit 0.2264 s · centre sag 1.974 m · 231 steps with 30 restores · best viscous factor 0.22 needs 187 steps
Scite index entry for Barnes, Form finding and analysis of tension structures by dynamic relaxation (International Journal of Space Structures 14(2), 89–104, 1999, DOI 10.1260/0266351991494722), checked 2026-11-29: 485 citing publications; 220 citation statements in the index, 212 of them classified as mentioning, none as supporting or contrasting; no retraction notice. Counts describe that paper, not this folio's model.
Give any AI agent or engineering pipeline the governing equations of Folio A.16: a portable SKILL.md, a zero-dependency Python verifier (verify_a16_dynamic_relaxation.py), or the live telemetry as JSON.
Show the SKILL.md source
---
name: dynamic-relaxation-cable-net
description: AI-agnostic skill for dynamic relaxation with kinetic damping on a cable net: fictitious masses, an explicit update, a closed-form time-step limit from the largest eigenvalue, and a check against a direct solve. An explanation, not a design method.
license: MIT
compatibility: Claude Code, GitHub Copilot, Cursor, Google Antigravity, OpenAI Codex, Ollama (Qwen 3.8 / Gemma 4)
---
# Dynamic Relaxation: Letting a Cable Net Settle by Itself, and the Time-Step Limit That Keeps It Honest (Folio A.16)
A plain-text companion to the essay at https://informatico.ai/architecture/a16/ (`A.16 · Dynamic Relaxation & Kinetic Damping · REV 1.0`, `REV 1.0`, redated `2026-11-29`).
## The governing relation
`m dv/dt = R(z) = w a² − D z · Δt < Δt_max = 2 √(m / λ_max) · λ_max = 4 q (1 + cos(π / N)) (z = sag measured downward)`
## Rules the essay derives
1. This is an explanation of a solution method, not a design method; none of its numbers may be used on a real structure.
2. Compute the out-of-balance force R at every free node, update v ← v + (Δt / m) R and z ← z + Δt v, and keep Δt below 2 √(m / λ_max) where λ_max is the largest eigenvalue of the force density matrix.
3. Remove energy with kinetic damping (go back to the position where the fastest step began and zero the velocities) or a tuned viscous factor, and say which was used and how many steps it needed.
4. Check the relaxed shape against a direct solve of the same equations, check the residual at every free node, and state any time step at which the method failed to converge.
## How it works, in four stages
- Stage 1 (Settling Instead of Solving): Folio A.15 found the net's shape by solving linear equations. Dynamic relaxation finds the same shape by letting an imagined dynamic system move: each knot gets a fictitious mass, the out-of-balance force accelerates it, and energy is removed until nothing moves. Barnes (1999, DOI 10.1260/0266351991494722) describes numerical procedures based on dynamic relaxation with kinetic damping for the form finding and analysis of cable nets and grid shells; Veenendaal and Block (2012, DOI 10.1016/j.ijsolstr.2012.08.008) compare form-finding methods for general networks.
- Stage 2 (The Update and Its Speed Limit): For the sag z of each free knot, the out-of-balance force is R = w a² − q (4 z − sum of the four neighbours). The folio's own explicit update is v ← v + (Δt / m) R, then z ← z + Δt v. The matrix D = q (4 I − neighbour sum) has largest eigenvalue λ_max = 4 q (1 + cos(π / 10)) = 78.042 kN/m for the model net, and the undamped update stays bounded only below Δt_max = 2 √(m / λ_max) = 0.2264 s for m = 1 t. The verifier finds λ_max by power iteration, matches the closed form, and shows growth at 1.02 times the limit.
- Stage 3 (Stopping the Swing): With no energy removed, the net keeps swinging: the undamped run in the verifier had not settled after 3,000 steps. Kinetic damping watches the total kinetic energy; when it passes a peak, the folio's version goes back to the position where the fastest step began, sets every velocity to zero and lets go again. At Δt = 0.10 s this reaches a largest residual under 1e-9 kN in 231 steps with 30 restores, and the sag matches the A.15 solve to better than 1e-6 m (1.974 m at the centre).
- Stage 4 (What the Model Does Not Say): A viscous factor scanned in steps of 0.01 does better here: 0.22 needs 187 steps, but only because the scan was run; kinetic damping needed no tuning. Some larger kinetic steps fail in this implementation: Δt = 0.12 s still converges in 196 steps, but at 0.15 s and 0.20 s it did not reach the tolerance in 5,000 steps. The model is linear, so the direct solve is cheaper at this size. It leaves out cable stretch, wind, snow, ponding, connections and supports.
## Reference values stated in the essay
- **Time-Step Limit (Δt_max)**: `0.2264 s (Δt_max = 2 √(m / λ_max))`
- **Reference Step Δt = 0.10 s**: `0.44 × the Limit · Stable`
- **Converged Centre Sag (Same as A.15)**: `1.974 m (Sag / Span 1/15.2)`
- **Kinetic-Damping Steps (Fixed Text)**: `231 steps (30 Restores · q = 10 kN/m · m = 1 t · Δt = 0.10 s)`
## Check it yourself
This skill ships a verifier that recomputes its values. Its planted-defect mode must fail:
```
python skills/architecture/a16/verify_a16_dynamic_relaxation.py
python skills/architecture/a16/verify_a16_dynamic_relaxation.py --planted-defect
```
## Primary source
- https://doi.org/10.1260/0266351991494722 (Scite report: https://scite.ai/reports/10.1260/0266351991494722)
- What the essay compares against: Model values (not measurements): L = 30.0 m · 10 × 10 bays (a = 3.0 m) · q = 10 kN/m · w = 0.30 kN/m² · m = 1 t per knot · Δt = 0.10 s · limit 0.2264 s · centre sag 1.974 m · 231 steps with 30 restores · best viscous factor 0.22 needs 187 steps
## Recent research context
- **Let the Net Go, Stop It at Its Fastest, and It Settles Where the Equations Say**: On the 30 m square model net of Folio A.16, kinetic damping reaches the direct solve (centre sag 1.974 m) in 231 steps at Δt = 0.10 s, below the closed-form limit of 0.2264 s. A tuned viscous factor needed 187 steps. Model values only, not measurements, and not a design method.
#!/usr/bin/env python3
"""Independent offline verifier for Folio A.16 (Dynamic Relaxation with Kinetic Damping on a Cable Net).
Standard library only. It rebuilds the A.15 model net (30.0 m square, 10 x 10 bays, edge nodes fixed, one
force density q in every bar, a uniform load w lumped at the free nodes) and finds its sag a second way: by
letting a fictitious dynamic system move until it stops. For the vertical sag z (measured downward) of free
node i the residual is
R_i = w a^2 - q (4 z_i - sum of the four neighbouring z) (neighbours on the edge have z = 0)
and each free node is given a fictitious mass m. The explicit (leapfrog) update with time step dt is
v <- v + (dt / m) R ; z <- z + dt v
Without damping that system oscillates forever, so energy has to be removed. Two ways are compared:
* kinetic damping: when the kinetic energy passes a peak, go back to the position where the fastest step began
(the position before the previous update), set every velocity to zero and carry on;
* viscous damping: a constant factor on the velocity, found here by scanning 0.01 to 0.99 in steps of 0.01 for
the fewest steps to the tolerance.
It checks:
* the converged sag equals the direct force density solve (the dense elimination below, which repeats the
A.15 solve) to better than 1e-6 m, and every free-node residual falls under 1e-9 kN;
* the largest eigenvalue of D = q * (4 I - neighbour sum), found by power iteration, equals the closed form
4 q (1 + cos(pi / N)), and the explicit scheme is stable below dt_max = 2 sqrt(m / lambda_max) and blows up
just above it;
* how many steps each damping rule needs (the counts printed on the page);
* that the published pages print the same numbers.
Usage:
python skills/architecture/a16/verify_a16_dynamic_relaxation.py
python skills/architecture/a16/verify_a16_dynamic_relaxation.py --planted-defect
python skills/architecture/a16/verify_a16_dynamic_relaxation.py --planted-defect=no-reset
Model values for an idealized, weightless, inextensible-geometry cable net under a uniform vertical load,
with fictitious masses that have no physical meaning. This is an explanation of a solution method, not a
design method: none of its numbers may be used on a real structure.
"""
from __future__ import annotations
import json
import math
import re
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[3]
PAGES = (
ROOT / "src" / "architecture" / "a16" / "index.html",
ROOT / "src" / "es-mx" / "architecture" / "a16" / "index.html",
)
_DEFECT_ARG = next((a for a in sys.argv[1:] if a.startswith("--planted-defect")), "")
DEFECT = (_DEFECT_ARG.split("=", 1)[1] if "=" in _DEFECT_ARG else "step-over-limit") if _DEFECT_ARG else ""
VALID_DEFECTS = {"", "step-over-limit", "no-reset"}
# Reference net (the A.15 model net; model values, not a real roof).
L_M = 30.0
N_BAYS = 10
Q_KN_M = 10.0
W_KN_M2 = 0.30
MASS_T = 1.0 # fictitious nodal mass in tonnes (kN s^2 / m): it has no physical meaning
DT_S = 0.10 # reference time step in seconds
TOL_KN = 1e-9
def _solve_dense(a: list[list[float]], b: list[float]) -> list[float]:
n = len(b)
m = [row[:] + [b[i]] for i, row in enumerate(a)]
for col in range(n):
piv = max(range(col, n), key=lambda r: abs(m[r][col]))
if abs(m[piv][col]) < 1e-14:
raise ValueError("Force density matrix is singular")
m[col], m[piv] = m[piv], m[col]
inv = 1.0 / m[col][col]
for r in range(col + 1, n):
f = m[r][col] * inv
if f:
row_r, row_c = m[r], m[col]
for c in range(col, n + 1):
row_r[c] -= f * row_c[c]
x = [0.0] * n
for r in range(n - 1, -1, -1):
s = m[r][n] - sum(m[r][c] * x[c] for c in range(r + 1, n))
x[r] = s / m[r][r]
return x
def direct_sag(n_bays: int = N_BAYS, side_m: float = L_M, q: float = Q_KN_M, w: float = W_KN_M2) -> list[float]:
"""The A.15 force density solve for the sag: q (4 z_i - sum of neighbours) = w a^2, dense elimination."""
a = side_m / n_bays
m = n_bays - 1
d = [[0.0] * (m * m) for _ in range(m * m)]
for j in range(m):
for i in range(m):
k = j * m + i
d[k][k] = 4.0 * q
if i > 0:
d[k][k - 1] = -q
if i < m - 1:
d[k][k + 1] = -q
if j > 0:
d[k][k - m] = -q
if j < m - 1:
d[k][k + m] = -q
return _solve_dense(d, [w * a * a] * (m * m))
def residual(z: list[float], n_bays: int, side_m: float, q: float, w: float) -> list[float]:
a = side_m / n_bays
m = n_bays - 1
out = [0.0] * (m * m)
for j in range(m):
for i in range(m):
k = j * m + i
s = 4.0 * z[k]
if i > 0:
s -= z[k - 1]
if i < m - 1:
s -= z[k + 1]
if j > 0:
s -= z[k - m]
if j < m - 1:
s -= z[k + m]
out[k] = w * a * a - q * s
return out
def lambda_max_power(n_bays: int = N_BAYS, q: float = Q_KN_M, iters: int = 4000) -> float:
"""Largest eigenvalue of D = q (4 I - neighbour sum) on the free nodes, by power iteration."""
m = n_bays - 1
# Start from a checkerboard-like vector: it overlaps the highest mode.
x = [1.0 if (i + j) % 2 == 0 else -1.0 for j in range(m) for i in range(m)]
x = [v + 0.01 * math.sin(0.7 * k + 1.0) for k, v in enumerate(x)]
lam = 0.0
for _ in range(iters):
y = [-r for r in residual(x, n_bays, 0.0 + 1.0, q, 0.0)] # w = 0: D x = -R
lam_new = sum(a * b for a, b in zip(x, y)) / sum(a * a for a in x)
norm = math.sqrt(sum(v * v for v in y))
x = [v / norm for v in y]
if abs(lam_new - lam) < 1e-13:
lam = lam_new
break
lam = lam_new
return lam
def lambda_range_closed_form(n_bays: int = N_BAYS, q: float = Q_KN_M) -> tuple[float, float]:
c = math.cos(math.pi / n_bays)
return 4.0 * q * (1.0 - c), 4.0 * q * (1.0 + c)
def relax(
mode: str,
*,
dt: float = DT_S,
mass: float = MASS_T,
damping: float = 0.0,
n_bays: int = N_BAYS,
side_m: float = L_M,
q: float = Q_KN_M,
w: float = W_KN_M2,
max_steps: int = 5000,
tol: float = TOL_KN,
planted_defect: str = "",
) -> dict[str, float | int | bool | list[float]]:
"""Explicit dynamic relaxation of the sag; returns the final sag field and step counts.
mode = "kinetic": reset the velocities to zero at each kinetic-energy peak.
mode = "viscous": multiply the velocity by (1 - damping) every step.
"""
if mode not in ("kinetic", "viscous"):
raise ValueError("Damping mode must be 'kinetic' or 'viscous'")
if dt <= 0.0 or mass <= 0.0:
raise ValueError("Time step and mass must be positive")
m = n_bays - 1
n = m * m
z = [0.0] * n
z_prev = z[:]
v = [0.0] * n
ke_prev = 0.0
ke_prev2 = 0.0
resets = 0
for step in range(1, max_steps + 1):
r = residual(z, n_bays, side_m, q, w)
if max(abs(e) for e in r) < tol:
return {
"diverged": False,
"converged": True,
"steps": step - 1,
"resets": resets,
"z": z,
"residual_kn": max(abs(e) for e in r),
"centre_sag_m": z[(m // 2) * m + (m // 2)],
}
# Explicit update: velocity first, then position.
v = [vi + (dt / mass) * ri for vi, ri in zip(v, r)]
if mode == "viscous":
v = [vi * (1.0 - damping) for vi in v]
z_new = [zi + dt * vi for zi, vi in zip(z, v)]
ke = 0.5 * mass * sum(vi * vi for vi in v)
if mode == "kinetic" and planted_defect != "no-reset":
# The kinetic energy rose and then fell: the peak was at the previous step. Go back to the position
# where that step began, zero every velocity, and carry on from rest.
if ke < ke_prev and ke_prev >= ke_prev2 and ke_prev > 0.0:
z = z_prev[:]
v = [0.0] * n
resets += 1
ke_prev = 0.0
ke_prev2 = 0.0
continue
z_prev, z = z, z_new
ke_prev2, ke_prev = ke_prev, ke
if not all(math.isfinite(e) for e in z) or max(abs(e) for e in z) > 1e12:
return {"diverged": True, "converged": False, "steps": step, "resets": resets, "z": z, "residual_kn": float("inf")}
final_resid = max(abs(e) for e in residual(z, n_bays, side_m, q, w))
return {
"diverged": False,
"converged": False,
"steps": max_steps,
"resets": resets,
"z": z,
"residual_kn": final_resid,
"centre_sag_m": z[(m // 2) * m + (m // 2)],
}
def best_viscous(dt: float, mass: float, q: float, n_bays: int = N_BAYS) -> tuple[float, dict]:
"""Scan the viscous factor and return the one that reaches the tolerance in the fewest steps."""
best = (0.0, {"steps": 10 ** 9})
for k in range(1, 100):
c = k / 100.0
res = relax("viscous", dt=dt, mass=mass, damping=c, q=q, n_bays=n_bays)
if res.get("converged") and res["steps"] < best[1]["steps"]:
best = (c, res)
return best
def stability_limit(mass: float, q: float, n_bays: int = N_BAYS) -> float:
return 2.0 * math.sqrt(mass / lambda_range_closed_form(n_bays, q)[1])
def fmt(ref: dict[str, object]) -> dict[str, str]:
return {
"dt_max": f"{ref['dt_max_s']:.4f} s",
"lam_max": f"{ref['lambda_max_kn_m']:.3f} kN/m",
"kinetic": f"{ref['kinetic_steps']} steps",
"viscous": f"{ref['viscous_steps']} steps",
"sag": f"{ref['centre_sag_m']:.3f} m",
"cond": f"{ref['condition_number']:.1f}",
}
def check_html_readouts(ref: dict[str, object]) -> list[str]:
errs: list[str] = []
f = fmt(ref)
printed_values = (f["dt_max"], f["kinetic"], f["sag"])
for page in PAGES:
if not page.is_file():
errs.append(f"Missing built HTML page: {page.relative_to(ROOT).as_posix()}")
continue
txt = page.read_text(encoding="utf-8")
strip = re.search(r'<div class="tp-readout-strip".*?</div>\s*</div>', txt, re.S)
if not strip:
errs.append(f"{page.relative_to(ROOT).as_posix()} has no readout strip")
continue
scope = strip.group(0)
for shown in printed_values:
if shown not in scope:
errs.append(f"{page.relative_to(ROOT).as_posix()} missing readout value {shown!r}")
return errs
def close(a: float, b: float, tol: float) -> bool:
return abs(a - b) <= tol
def reference_run(planted_defect: str = "") -> dict[str, object]:
direct = direct_sag()
m = N_BAYS - 1
centre = (m // 2) * m + (m // 2)
dt = DT_S
if planted_defect == "step-over-limit":
dt = 1.05 * stability_limit(MASS_T, Q_KN_M)
kin = relax("kinetic", dt=dt, planted_defect=planted_defect)
lam_lo, lam_hi = lambda_range_closed_form()
c_visc, visc = best_viscous(DT_S, MASS_T, Q_KN_M)
gap = max(abs(zi - di) for zi, di in zip(kin["z"], direct)) if not kin["diverged"] else float("inf")
return {
"direct_centre_sag_m": direct[centre],
"centre_sag_m": kin.get("centre_sag_m", float("nan")),
"max_gap_to_direct_m": gap,
"kinetic_diverged": kin["diverged"],
"kinetic_converged": bool(kin.get("converged")),
"kinetic_steps": kin["steps"],
"kinetic_resets": kin["resets"],
"kinetic_residual_kn": kin["residual_kn"],
"viscous_factor": c_visc,
"viscous_steps": visc["steps"],
"lambda_min_kn_m": lam_lo,
"lambda_max_kn_m": lam_hi,
"condition_number": lam_hi / lam_lo,
"dt_max_s": stability_limit(MASS_T, Q_KN_M),
"dt_s": dt,
}
def main() -> int:
if DEFECT not in VALID_DEFECTS:
print(json.dumps({"status": "FAIL", "error": f"Unknown planted defect {DEFECT!r}; expected one of {sorted(VALID_DEFECTS - {''})}"}))
return 1
ref = reference_run(DEFECT)
failures: list[str] = []
# Convergence to the direct solve.
if ref["kinetic_diverged"]:
failures.append("Kinetic damping run diverged at the reference time step")
else:
if not ref["kinetic_converged"]:
failures.append(f"Kinetic damping did not reach {TOL_KN} kN in the step budget (residual {ref['kinetic_residual_kn']:.3e})")
if float(ref["max_gap_to_direct_m"]) > 1e-6:
failures.append(f"Relaxed sag differs from the direct solve by {ref['max_gap_to_direct_m']:.3e} m")
if float(ref["kinetic_residual_kn"]) > TOL_KN:
failures.append(f"Residual {ref['kinetic_residual_kn']:.3e} kN above {TOL_KN}")
# Printed values (tolerance on the value, not only its order).
expected = {
"direct_centre_sag_m": (1.974, 0.0005),
"centre_sag_m": (1.974, 0.0005),
"dt_max_s": (0.2264, 0.00005),
"lambda_max_kn_m": (78.042, 0.0005),
"lambda_min_kn_m": (1.958, 0.0005),
"condition_number": (39.9, 0.05),
}
for key, (val, tol) in expected.items():
if not close(float(ref[key]), val, tol):
failures.append(f"Expected {key}={val} (±{tol}), got {ref[key]}")
expected_steps = {"kinetic_steps": 231, "kinetic_resets": 30, "viscous_steps": 187}
for key, val in expected_steps.items():
if int(ref[key]) != val:
failures.append(f"Expected {key}={val}, got {ref[key]}")
# The closed-form eigenvalue range against power iteration.
lam_pi = lambda_max_power()
if not close(lam_pi, float(ref["lambda_max_kn_m"]), 1e-6):
failures.append(f"Power iteration gives lambda_max={lam_pi:.6f}, closed form {ref['lambda_max_kn_m']:.6f}")
# Stability: stable just under the limit, divergent just over it.
dt_lim = float(ref["dt_max_s"])
under = relax("viscous", dt=0.98 * dt_lim, damping=0.0, max_steps=3000)
over = relax("viscous", dt=1.02 * dt_lim, damping=0.0, max_steps=3000)
zmax_under = max(abs(e) for e in under["z"]) if not under["diverged"] else float("inf")
if under["diverged"] or zmax_under > 50.0:
failures.append(f"Undamped scheme at 0.98 dt_max grew without bound (max |z| {zmax_under})")
if not over["diverged"]:
failures.append("Undamped scheme at 1.02 dt_max did not diverge")
# Doubling q at fixed mass shrinks dt_max by sqrt(2); doubling mass raises it by sqrt(2).
if not close(stability_limit(MASS_T, 2.0 * Q_KN_M) * math.sqrt(2.0), dt_lim, 1e-12):
failures.append("dt_max does not scale as 1/sqrt(q)")
if not close(stability_limit(2.0 * MASS_T, Q_KN_M) / math.sqrt(2.0), dt_lim, 1e-12):
failures.append("dt_max does not scale as sqrt(m)")
# Worked slider cases the page prints: (q, mass) -> dt_max (s).
for (qc, mc), want in {(20.0, 1.0): 0.1601, (10.0, 4.0): 0.4528, (30.0, 0.25): 0.0654}.items():
got = stability_limit(mc, qc)
if not close(got, want, 0.00005):
failures.append(f"q={qc}, m={mc}: expected dt_max {want}, got {got:.5f}")
# Kinetic damping converges to the same sag at other loads and force densities (the answer does not depend on the path).
for qc, wc in ((20.0, 0.30), (10.0, 0.60)):
dtc = 0.5 * stability_limit(MASS_T, qc)
rc = relax("kinetic", q=qc, w=wc, dt=dtc, planted_defect=DEFECT)
dc = direct_sag(q=qc, w=wc)
mm = N_BAYS - 1
if rc["diverged"] or max(abs(zi - di) for zi, di in zip(rc["z"], dc)) > 1e-6:
failures.append(f"Kinetic relaxation at q={qc}, w={wc} did not reach the direct solve")
# Step counts the page prints for other time steps, and where this implementation stops converging.
for dtc, want_steps in ((0.05, 357), (0.12, 196)):
rc = relax("kinetic", dt=dtc, planted_defect=DEFECT)
if not rc.get("converged") or int(rc["steps"]) != want_steps:
failures.append(f"Kinetic damping at dt={dtc}: expected {want_steps} steps, got {rc['steps']} (converged={rc.get('converged')})")
for dtc in (0.15, 0.20):
rc = relax("kinetic", dt=dtc, planted_defect=DEFECT)
if rc.get("converged"):
failures.append(f"Kinetic damping at dt={dtc} converged; the page says it does not within 5,000 steps")
# Tuned viscous damping is faster than untuned kinetic damping at the reference step (the page says so), and
# the plain scheme with no damping never settles.
if int(ref["viscous_steps"]) >= int(ref["kinetic_steps"]):
failures.append(f"Best viscous ({ref['viscous_steps']}) is not faster than kinetic ({ref['kinetic_steps']}) at dt={DT_S}")
if not close(float(ref["viscous_factor"]), 0.22, 1e-9):
failures.append(f"Expected best viscous factor 0.22, got {ref['viscous_factor']}")
undamped = relax("viscous", dt=DT_S, damping=0.0, max_steps=3000)
if undamped.get("converged"):
failures.append("An undamped run settled; energy should not leave the system")
# The drawn sag field is the same one A.15 draws: its centre line must match the direct solve.
a16_src = ROOT / "tools" / "folios" / "architecture" / "a16.py"
if a16_src.is_file():
mp = re.search(r'id="tp-a16-profile" points="([^"]+)"', a16_src.read_text(encoding="utf-8"))
if not mp:
failures.append("a16.py has no tp-a16-profile polyline")
else:
direct = direct_sag()
mm = N_BAYS - 1
solved = [0.0] + [direct[(mm // 2) * mm + i] for i in range(mm)] + [0.0]
drawn = [(float(p.split(",")[1]) - 60.0) / 30.0 for p in mp.group(1).split()]
if len(drawn) != len(solved) or any(abs(d - s) > 0.002 for d, s in zip(drawn, solved)):
failures.append(f"Drawn section {drawn} does not match solved centre line {[round(s, 3) for s in solved]}")
# The page's sliders use the closed form for dt_max and the A.15 sag coefficient.
js = ROOT / "src" / "modules" / "solvers.mjs"
if js.is_file():
jt = js.read_text(encoding="utf-8")
mk = re.search(r"A16_LAMBDA_COEFF\s*=\s*([0-9.]+)", jt)
ms = re.search(r"A16_SAG_COEFF\s*=\s*([0-9.]+)", jt)
want_lam = lambda_range_closed_form()[1] / Q_KN_M
want_sag = float(ref["direct_centre_sag_m"]) / (W_KN_M2 * L_M ** 2 / Q_KN_M)
if not mk or not close(float(mk.group(1)), want_lam, 5e-6):
failures.append(f"solvers.mjs A16_LAMBDA_COEFF missing or not {want_lam:.6f}")
if not ms or not close(float(ms.group(1)), want_sag, 5e-6):
failures.append(f"solvers.mjs A16_SAG_COEFF missing or not {want_sag:.6f}")
# Other numbers the page prints.
if not close(DT_S / dt_lim, 0.44, 0.005):
failures.append(f"Reference step is {DT_S / dt_lim:.4f} of the limit, not 0.44")
if not close(DT_S / stability_limit(MASS_T, 2.0 * Q_KN_M), 0.62, 0.005):
failures.append("At q=20 the reference step is not 0.62 of the limit")
if not close(DT_S / stability_limit(0.25, 30.0), 1.53, 0.005):
failures.append("At q=30, m=0.25 the reference step is not 1.53 times the limit")
if not close(stability_limit(4.0, Q_KN_M) / dt_lim, 2.0, 1e-9):
failures.append("Quadrupling the mass did not double the limit")
if not close(dt_lim * math.sqrt(2.0), 0.3202, 0.00005):
failures.append("Doubling the mass does not give 0.3202 s")
want_sag_30 = float(ref["direct_centre_sag_m"]) * Q_KN_M / 30.0
if not close(want_sag_30, 0.658, 0.0005):
failures.append(f"Sag at q=30 is {want_sag_30:.4f} m, not 0.658 m")
if not close(L_M / float(ref["direct_centre_sag_m"]), 15.2, 0.05):
failures.append("Span over sag is not 15.2")
visc_005 = best_viscous(0.05, MASS_T, Q_KN_M)
if int(visc_005[1]["steps"]) != 364:
failures.append(f"Best viscous at dt=0.05 needs {visc_005[1]['steps']} steps, not 364")
for dtc in (0.15, 0.20):
rc = relax("kinetic", dt=dtc, planted_defect=DEFECT)
if int(rc["resets"]) < 1000:
failures.append(f"Kinetic damping at dt={dtc} restored only {rc['resets']} times; the page says again and again")
# Negative tests name the error they expect.
for bad, pattern in (
({"mode": "mystery"}, r"Damping mode must be"),
({"mode": "kinetic", "dt": -1.0}, r"Time step and mass must be positive"),
):
try:
relax(**bad)
failures.append(f"Negative test {bad} did not raise")
except ValueError as exc:
if not re.search(pattern, str(exc)):
failures.append(f"Negative test {bad} raised the wrong error: {exc}")
failures.extend(check_html_readouts(ref))
payload = {
"status": "FAIL" if failures else "PASS",
"folio_id": "A.16",
"planted_defect": DEFECT or None,
"reference": {k: (round(v, 6) if isinstance(v, float) else v) for k, v in ref.items()},
"printed": fmt(ref) if not ref["kinetic_diverged"] else {},
"power_iteration_lambda_max": round(lam_pi, 6),
"failures": failures,
}
print(json.dumps(payload, indent=2, ensure_ascii=False))
return 1 if failures else 0
if __name__ == "__main__":
raise SystemExit(main())
Edition history & reviewPublished 2026-11-29 · Updated 2026-11-29 (REV 1.0)
REV 1.0 (Published 2026-11-29): Volume VII Architecture folio continuing A.15 with dynamic relaxation and kinetic damping on the same 10 × 10 bay model net, a closed-form time-step limit, and a comparison with tuned viscous damping.
Independent verification: the cited DOI 10.1260/0266351991494722 was matched to its title, author, journal and year through the Scite index on 2026-11-29 (no retraction notices; the abstract was read, the full text was not available to this run, so it is cited for its subject only), and every number on the page is recomputed offline by skills/architecture/a16/verify_a16_dynamic_relaxation.py (with --planted-defect).