Skip to content

pyBmodes 1.19.1

Latest

Choose a tag to compare

@SMI-Lab-Inha SMI-Lab-Inha released this 21 Oct 07:53
6380d71

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 from master, with
    development happening on dev. Existing master links on GitHub
    redirect, but a local clone that tracks master should 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 through eigsh shift-invert at zero, which
    returns the eigenvalues smallest in magnitude. Those are the lowest
    only when K is positive definite. With an indefinite K, such as a
    tower loaded past buckling by run(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_modes now takes the sparse path only
    after a banded Cholesky confirms K is 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).