Skip to content

feat: contact-pressure friction factor; measured wire-on-tape friction loops - #9

Merged
SMI-Lab-Inha merged 2 commits into
devfrom
feat/friction-validation
Nov 16, 2026
Merged

SMI-Lab-Inha merged 2 commits into
devfrom
feat/friction-validation

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

Summary

The friction law of #7 had no measured data behind it. This PR adds:

  1. A validation case against the only published static/dynamic friction loops of an armour wire on anti-wear tape (Dai, Sævik & Ye 2018, Marine Structures 59, 423–443, Fig. 4).
  2. A contact-pressure-dependent coefficient, FrictionLaw(pressure_factor=...). The same tests show μ falling from 0.32 to 0.18 between 1 and 8 MPa.
  3. The measured friction behaviour in the concepts guide.
  4. A corrected source for the default armour coefficient (value unchanged).

Neutral settings (no table, or unit factors) keep every code path bit for bit.

1. Measured loops against slider_history

Digitisation (validation/scripts/digitise_dai2018_fig4.py):

  • Source image: Fig. 4 is a JPEG embedded in the PDF (1887 × 2063 px, 300 ppi). It was digitised at native resolution, with the image and PDF SHA-256 recorded.
  • Axes: fitted by least squares on the tick-mark centroids. Largest residuals: 0.0024 mm / 0.0010 for panel (a), 0.0063 mm / 0.0005 for (c).
  • Curves: picked by hue, legend masked. Branches take the per-column median, elastic segments the per-row median.
  • Reading resolution: ±0.008 mm / ±0.0021 for (a); ±0.012 mm / ±0.0012 for (c).
  • Output: validation/paper_data/dai2018_fig4a_test1.csv (Test 1: 8, 4 and 1 MPa, 0.01 Hz) and dai2018_fig4c_test3.csv (Test 3: 4 MPa, 0.01–0.2 Hz), with provenance headers.
  • What is left out or kept:
    • Panel (b), a different interface with no printed contact area, is not used.
    • The end-of-stroke rises, which the paper attributes to wire out-of-straightness, are kept in the data but excluded from the comparison (the last 0.5 mm before each reversal).
    • Hidden curve segments are left missing, not interpolated.

Model (validation/scripts/check_dai2018_friction.py):

  • normalised bound $b = \mu_d$, static_factor $= \mu_s/\mu_d$, stick_time_s = 0, no rate terms;
  • stick stiffness from each loop's measured elastic segments;
  • the third cycle is compared.
  • Test 1 uses the printed coefficients (p. 428).
  • Test 3 prints none, so its peak and level are read from the 0.01 Hz loop and held at the higher frequencies.

Results:

Row Status Result
DAI18-DIG PASS Digitised loop maxima 0.2237 / 0.2405 / 0.3786 vs printed μ_s 0.22 / 0.24 / 0.38. Worst deviation 0.0037; tolerance 0.0071 (printed precision plus reading resolution)
DAI18-RS PASS All 14 strokes of the 7 loops peak above the dynamic level (excess 0.039–0.094). stick_time_s = 0 reproduces all 14; the default inf reproduces none
DAI18-T1 INFO Peak −1.8 to +1.0 %; dynamic level −3.3 to +12.3 % (the −x strokes high); loop work −1.9 to −2.6 %
DAI18-T3 INFO Dynamic level −3.5 / −2.4 / +0.3 % at 0.05 / 0.1 / 0.2 Hz, so no rate term is supported over 0.13–2.5 mm/s. The static peak rises +10.6 % at 0.2 Hz, and the model under-predicts it by 7.9–11.4 %

What the model cannot represent (stated in the docs):

  • Gradual breakaway decay. The measured force takes 0.6–2.3 mm to fall to the dynamic level; the model drops in one step. This makes the model's loop work 1–5 % low.
  • Frequency rise of the static peak. The rate factor acts on the dynamic coefficient only.
  • Stroke asymmetry. The measured −x strokes run 4–14 % below the +x strokes, which the paper does not discuss.

2. Pressure-dependent coefficient

FrictionLaw(pressure_factor=((P, f), ...)) is a piecewise-linear factor, clamped at the table ends.

How it is applied:

  • It is evaluated at the local contact pressure $P = (P_1 + P_2),g$ of each wire (direction-tied kernel, NumPy and compiled) or each helix node (distributed kernel), at every sample. Pressure histories (feat: contact pressure that follows the bending history in compute_mkappa #3) are followed.
  • The effective coefficient is $m \cdot f(P) \cdot \mu$. In the direction-tied kernel it sits inside the capstan exponent; in the distributed kernel it multiplies the node bound.
  • The direction-hold threshold uses the smallest table factor, so it stays below every wire's slip onset.
  • slider_history takes contact_pressure_Pa. The docs give the rig conversion: both faces pressed at $p$ means $P = 2p$.

Why a FrictionLaw field rather than a material property:

  • It acts where the existing law factors act and reuses their refusals (progressive model, core friction, termination clamp increment).
  • There is one table per call, applied to each layer's own μ.
  • FrictionLaw is not stored in project files, so older files load unchanged.

Exported bending law:

  • A pressure-only law is accepted without slip_scale: at each tension's fixed contact state it is a fixed coefficient per wire.
  • It is refused with slip_scale=True. Because $f(P)$ sits inside the capstan exponent, $M(\kappa;\rho) = \rho M(\kappa/\rho;1)$ is no longer exact, and no exact extension exists.

Tests (tests/test_friction_pressure.py, 36 cases):

  • the slider closed form under pressure steps, pressures outside the table, zero contact, and breakaway at $m_s f(P)$;
  • the energy identity under a pressure history;
  • the full-slip bound of every wire at its own local pressure;
  • a constant table equals the scaled coefficient, and a unit table equals no table bit for bit (both kernels and the distributed model);
  • NumPy vs compiled to 1e-12 of the stress scale;
  • compute_mkappa, compute_fatigue and the export, with their refusals.

New report row FL-P: 3.0e-16 / 8.7e-16 / 2.5e-15 against a 1e-9 target.

3. Docs

  • doc/concepts.md: measured armour/anti-wear-tape friction, all from Dai et al. 2018, p. 428:

    • the interface re-sticks at every reversal (stick_time_s = 0);
    • μ_s/μ_d = 1.19–1.22;
    • μ_d 0.32 / 0.20 / 0.18 and μ_s 0.38 / 0.24 / 0.22 at 1 / 4 / 8 MPa;
    • no rate effect on the dynamic level over 0.13–2.5 mm/s.

    It also covers the pressure factor, with an example built from these data.

  • Also updated: doc/benchmarks.md (DAI18 section, FL-P row), VALIDATION.md, the API page, the validation READMEs and the CHANGELOG.

4. Source of the default armour coefficient (0.20, unchanged)

The default comes from Dai, Sævik & Ye 2017 (Marine Structures 55, 137–161, doi 10.1016/j.marstruc.2017.05.010), Sec. 4.3.1, p. 156. It is quoted there as a 1992 estimate of "0.20 at 20 MPa internal pressure", for an anti-wear tape interface.

Dai et al. 2018 (p. 428) put the actual contact pressure there at 2–4 MPa. library.py now cites this for the armour steels and states that the interface is anti-wear tape, not HDPE. The same correction is made in check_saevik2011.py and the SV11 paragraph of doc/benchmarks.md.

Checks

Gate Result
Full suite, CI's Python 3.12 wheels, rebased on dev 28e9250 (with #8) 4322 passed, 1 skipped
Touched tests, Python 3.11 jobs' wheels 192 passed
CABLEXSEC_DISABLE_NUMBA=1 (both wheel sets) 167 passed, 25 skipped (existing long-history skips)
ruff check, ruff format --check (CI trees) clean
mypy the same 38 errors as dev
Coverage 97.23 % (test_friction_pressure.py joins the no-JIT pass)
Validation report not stale; taxonomy lines from collected-test deltas

…n loops

The friction law had one coefficient per contact pair whatever the contact
pressure, and no measured armour friction loop was in the validation set.

Pressure factor. FrictionLaw(pressure_factor=((P, f), ...)) multiplies the
coefficient by a piecewise-linear f(P), clamped at the table ends, at the
local friction-setting pressure P = (P1 + P2) g of each wire or helix node at
every sample, so it follows a tension or pressure history. It enters where
the static/dynamic and rate factors do (effective coefficient m f(P) mu):
inside the capstan exponent of the direction-tied bounds (NumPy reference
and compiled kernel) and on the whole node bound of the distributed kernel.
The direction threshold takes the smallest factor of the table, so it stays
below the onset of every wire. The factor is rate independent (no time
base) and is refused where a friction law is (progressive model, laid-core
friction, termination clamp increment). The exported bending law accepts a
law with only a pressure factor at the fixed contact state of each tension
and refuses it with slip_scale=True: f(P) moves the coefficient inside the
capstan exponent, so M(kappa; rho) = rho M(kappa/rho; 1) no longer holds and
the scaling rule is not exact. slider_history takes contact_pressure_Pa.
No table, or a table of unit factors, keeps every code path bit for bit.
FrictionLaw is not stored in project files; nothing saved before changes.

Tests: one slider under pressure steps (falling bound clips the slipping
force, rising bound leaves it in stick until the spring reaches it),
pressures outside the table and zero contact, breakaway at m_s f(P), energy
identity under a pressure history; the full-slip bound of every wire at its
own local pressure; a constant table equal to the scaled coefficient and a
unit table bit for bit (both kernels and the distributed model); compiled
against NumPy to 1e-12 of the stress scale for three laws; the entry points
and the export refusals. New validation row FL-P (round-off against
1e-9).

Measured loops. Dai, Saevik and Ye, Marine Structures 59 (2018) 423-443,
Fig. 4 (p. 429): Test 1 (8, 4 and 1 MPa, 0.01 Hz) and Test 3 (4 MPa,
0.01-0.2 Hz), digitised from the raster embedded in the PDF at its native
300 ppi by validation/scripts/digitise_dai2018_fig4.py (tick-centroid
calibration, hue classification, one point per pixel column on the
branches and per pixel row on the elastic segments; reading resolution
+-0.008 mm / +-0.0021 and +-0.012 mm / +-0.0012), with provenance in the CSV
headers. The end-of-stroke rises the paper attributes to the wire's
out-of-straightness are kept in the data and excluded from the comparison
(last 0.5 mm of each stroke). check_dai2018_friction.py runs slider_history
with static_factor = mu_s/mu_d, stick_time_s = 0, no rate terms and each
loop's measured stick slope.

- DAI18-DIG (PASS): digitised loop maxima 0.2237/0.2405/0.3786 against the
  printed mu_s 0.22/0.24/0.38, within printed precision plus resolution.
- DAI18-RS (PASS): every reversal of all seven loops peaks above the dynamic
  level; stick_time_s = 0 reproduces all 14 peaks, the default inf none.
- DAI18-T1 (INFO): with the printed coefficients the peaks are within
  -1.8 to +1.0 %, the +x-stroke levels within 3.3 %; the measured -x strokes
  run 4-14 % lower (model +4.7 to +12.3 %). The force decays from the peak
  over 0.6-2.3 mm where the law drops in one step; work 1.9-2.6 % low.
- DAI18-T3 (INFO): the static peak rises 10.6 % from 0.01 to 0.2 Hz, which
  the law cannot represent (0.2 Hz peak -7.9/-11.4 %); the dynamic level
  does not move (-3.5, -2.4, +0.3 %), so no rate term is supported at
  0.13-2.5 mm/s.

Docs: concepts (pressure factor; measured armour friction re-sticks at
every reversal, mu_s/mu_d 1.19-1.22, mu_d 0.32/0.20/0.18 at 1/4/8 MPa, no
rate effect on the dynamic level), benchmark register, VALIDATION.md.

Provenance of the default mu_on_hdpe = 0.20 (value unchanged): Dai, Saevik
and Ye, Marine Structures 55 (2017) 137-161, Sec. 4.3.1, p. 156, an estimate
for anti-wear tape on inner armour and steel on steel "at 20 MPa internal
pressure" quoted from Saevik (1992); the interface is an anti-wear tape and
the contact pressure is 2-4 MPa (Dai et al. 2018, p. 428).

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T09:58:18.372705Z 8e772ac Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@read-the-docs-community

read-the-docs-community Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #35922815 | 📁 Comparing 8e772ac against latest (240bf9c)

  🔍 Preview build  

17 files changed · ± 17 modified

± Modified

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 68db2cb558

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

The pressure-table check took `object`, which numpy.iscomplexobj does
not accept under the typed NumPy stubs; CI's mypy reported it.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 8e772ac328

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SMI-Lab-Inha
SMI-Lab-Inha merged commit 0883036 into dev Nov 16, 2026
12 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the feat/friction-validation branch November 16, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant