FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
0048 — Rigid-element constraint solve loses precision at high axial stiffness: finite differences of the derivatives are noise
ID 0048
Class BUG
Severity 2
Status ready

Models: ConstraintSolver, JointConstraint

Found: 2026-11-25 analysis of ME MARE-0469, coribo c6fe951

Evidence

ME MARE-0469 (analyst, 2026-11-25), NetStructureWithConstraints Teardown deck, with the pure (zero start, converged) solve:

  • The angular acceleration of rigid element 1, about -5410, jumps by 3.3e-7 (about 3e5 ulp) per state step of 2e-9. There is no trend, so it is noise and not a smooth change.
  • A finite-difference step of 1e-8 gives Jacobian errors of about 33. The system check max abs is 51.5.
  • With YoungsModulus 2e8 instead of 2e11 (ME NetStructureWithConstraints.cpp:166-177) the max abs falls to 0.18.

Suspects: the 6x6 element block solve and its preconditioner (SparseMatrixBuilder.cpp about 506-514, ConjugateGradient.cpp:22-23) and the cancelling moment sums in JointConstraint.cpp:307-501.

Effect

ME Teardown tests skip the system Jacobian check on the constraint net (MARE-0469).

Possible fix

None chosen. Check the condition number of the 6x6 block and the preconditioner. Rewrite the moment sums so that large terms do not cancel.

Test that would prove it

Finite-difference derivative of the element accelerations at YoungsModulus 2e11 with a step of 1e-8 shows no jumps above a few ulp.

Risk

Changing the block solve or the moment sums moves every constraint result. Needs a ruling on the baseline.