Repository navigation
A patch release. The fix that matters: models above 500 DOF with an indefinite stiffness matrix, such as a tower loaded past buckling under gravity, could silently lose their unstable modes on the sparse solver path, so the result changed with mesh refinement alone. The sparse path is now used only when the stiffness is positive definite, and it is faster than before.
The default branch is now main (renamed from master), with development on dev. The documentation badge, broken on GitHub and PyPI by Read the Docs rate-limiting their image proxies, displays again.
Changed
- The default branch is now
main, renamed frommaster, with
development happening ondev. Existingmasterlinks on GitHub
redirect, but a local clone that tracksmastershould run
git branch -m master main && git fetch && git branch -u origin/main main. - The documentation badge displays again on GitHub and PyPI. It
pointed at Read the Docs' legacy badge endpoint, which rate-limits the
image proxies both sites fetch README images through (HTTP 429), so it
rendered as a broken image. It is now served through shields.io.
Fixed
- The sparse solver path dropped negative modes. Above 500 DOF a
symmetric solve went througheigshshift-invert at zero, which
returns the eigenvalues smallest in magnitude. Those are the lowest
only whenKis positive definite. With an indefiniteK, such as a
tower loaded past buckling byrun(gravity=...), a strongly negative
mode was left out and the window backfilled with positive ones, while
the dense path below the threshold kept it. The answer therefore
changed with mesh refinement alone.K = diag(−100, 1, …, 500)returned
[1, 2, 3]for three modes instead of[−100, 1, 2], and the bundled
NREL 5MW land tower at 1000 times its RNA mass returned four buckled
modes on the default mesh but two buckled and two positive ones once
refined to 120 nodes.solve_modesnow takes the sparse path only
after a banded Cholesky confirmsKis positive definite, and sends
anything else to the dense path, which returns the algebraically
lowest modes. The check costs about a millisecond of factorisation at
9000 DOF because the assembled stiffness has a half-bandwidth of 10.
The sparse path also now builds its symmetrised matrices sparsely
instead of densely, which more than pays for the check: a 1000-node
tower solves in 5.3 s instead of 8.2 s. Positive-definite results are
unchanged within the run-to-run scatter of the sparse solver itself
(about 1e-10 relative, from ARPACK's random starting vector).