Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,30 @@ All notable changes to CableXSec are recorded in this file. The format follows

### Added

- An anchored armour wire can be held by an elastic anchor instead of a rigid one, in every
route that anchors a wire: the termination correction (`TerminationSpec(k_anchor_N_m=K)`,
clamp and along-wire solvers, with or without a curvature field), the along-wire chain
(`along_wire_history(..., anchor_stiffness_N_m=(K_start, K_end))`, `WireChain.build`) and
the along-wire bending test that solves the beam with the wires (`AlongWireSpec(
k_anchor_N_m=...)`); `anchored_wire_response` and `anchored_wire_field_response` take the
normalised stiffness `anchor_stiffness = K R/(EA sin α)`. `K` [N/m] is the axial force on
the wire end per unit axial displacement of the wire end at the anchor, per wire (the
potting of an end fitting). The anchor node carries the spring in parallel with the
friction of its half segment; `0` is a free wire end and `None` (default) or `inf` the rigid
anchor on the unchanged code path, so existing results are unchanged bit for bit. The local
analysis guide (Section 5, Step 6) derives a shear-lag estimate for a potted fitting, about
`1e8` to `2e9` N/m per tendon (an order-of-magnitude estimate, not a sourced value). Checked
against the closed form of a wire with a spring anchor next to a slip zone (anchor force, slip
length and dissipation, rigid and elastic stick), the free-end and rigid limits, two
independent kernels to round-off, the energy identity, the station Jacobian and the
closed-cycle work of a bending test (doc/benchmarks.md, TA-V1 to TA-V6). The Sævik (2011)
termination rows are reported over the stiffness range as a sensitivity study
(`validation/scripts/check_saevik2011_anchor.py`), not fitted and not gated: from the rigid anchor to a free wire end the termination-corrected
SV11-PLANE median stays 1.62 and SV11-GJ 1.80 (changes at round-off), the along-wire variant
3.11 and 4.19 (changes below 5e-4). The end fitting sits 2.3 m before the bellmouth where the
curvature is about 1% of its peak, so the wire next to it stays in stick and the anchor
condition does not reach the stations; the over-prediction is a curvature-gradient effect.
Section records of the sea-state batch carry the new key; records without it load as rigid.
- `compute_mkappa` can let the armour contact pressure follow the bending history:
`contact_tension_history_N` sets the per-sample `P1+P2` from a tension history through the
contact model (the histories `compute_fatigue` forms from `tension_N`), and
Expand Down
81 changes: 81 additions & 0 deletions doc/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,87 @@ scorecard row now passes on its own basis, through the signed capstan bound.
Transverse slip and lateral tendon bending (Sævik 1992; Dong et al. 2017,
2025) were tested with gap G1 and change the ratios by 1–3 % only.

## Anchor compliance of the end fitting (TA)

Option `k_anchor_N_m` of `TerminationSpec` and `AlongWireSpec`,
`anchor_stiffness_N_m` of `along_wire_history` and `WireChain.build`, and the
normalised `anchor_stiffness` of the clamp-layer solver; tests
`tests/test_anchor_compliance.py`; sensitivity script
`validation/scripts/check_saevik2011_anchor.py`. The anchor of every route
above is rigid (`u = 0`). A potted end fitting holds the wire end with a finite
stiffness `K` per wire (axial force per unit axial displacement of the wire
end), here a spring at the anchor node in parallel with the friction of the
node's half segment. Normalised, `k_a = K R/(EA sin α)` (`ξ EA` in the
`scaled` convention): the anchor is as compliant as `EA/K` of free wire. The
rigid anchor stays the default and runs the unchanged code path; nothing is
fitted. A shear-lag estimate of `K` for a potted fitting is derived in the
[local analysis guide](local_analysis_guide.md) (Section 5, Step 6): about
`1e8`–`2e9` N/m for a 5 × 12.5 mm tendon, `EA/K ≈ 0.007`–`0.16` m. It is an
order-of-magnitude estimate, not a value from a source.

**Verification.** Closed form: a wire under a uniform imposed strain `A`
(from the virgin state, uniform bound `ρ`, interface stiffness `k̂ = β²`,
`β = ∞` for rigid stick) slips over `L` next to the anchor, with
`k_a ρ L²/2 + ρ(1 + k_a/β) L + k_a ρ/β² + ρ/β = A`; the anchor force is
`A − ρ/β − ρL`, the dissipation `ρ²(L²/(2β) + L³/6)`, and without slip the
anchor force is `k_a A/(k_a + β)`. `k_a → 0` is the free end, `k_a → ∞` the
rigid anchor.

| ID | Class | Quantity | Target | Result | Status |
| --- | --- | --- | --- | --- | --- |
| TA-V1 | A | Closed form above, `A = 3`, `k_a` = 10, 1, 0.1, 0: clamp solver (rigid stick, 256 segments per pitch) and chain (rigid stick and `β = 2`, 512 per pitch): anchor force, slip length, dissipation | force within 1e-4 `A`; slip length within 1.5 `h`; dissipation within 2e-3 (clamp) and 5e-4 (chain) | force 1e-5 `A` or better; slip length within 1.2 `h`; dissipation 5e-4 (clamp), 4e-5 (chain) | PASS |
| TA-V2 | I | Clamp solver against the along-wire chain with the same spring anchor (cyclic curvature, `k_a` = 0, 0.3, 3) | < 1e-12 rel. | force 5e-15, dissipation 4e-16 | PASS |
| TA-V3 | A, I | Limits: `None`/`inf` the unchanged code path (clamp, field, chain, termination, bending test); `0` the free end (chain bitwise; clamp against the chain's free end); termination increment (Ménard, `k_a` = 0 to 1e6) between the free and the rigid result, monotone, both solvers agreeing | bitwise; < 1e-12; monotone, < 1e-4 at `k_a = 1e6` | bitwise; 4e-15; range 28.2, 31.1, 55.3, 63.0, 63.73, 63.74 MPa against rigid 63.74 (deviation 3.7e-7 at 1e6, falling as `1/k_a`); solvers 3e-15 | PASS |
| TA-V4 | I | Energy identity `W = ΔU + D + R` with elastic anchors (rigid and spring stick, with and without capstan, one and two springs) | round-off | 2e-13 of the work | PASS |
| TA-V5 | I | Station Jacobian with two elastic anchors against the finite difference in stick | < 1e-7 | yes | PASS |
| TA-V6 | I | Two-way bending test (two-pitch three-point specimen, anchored ends): `k_a` = 0 equals free ends; closed-cycle external work against wire friction work | bitwise; < 1% | bitwise; 0.89% (rigid 0.89%, free 0.91%); peak load 1551 (free) ≤ 1553–1555 ≤ 1555 N (rigid) | PASS |
| TA-V7 | I | Projections with spring ends (first, last, both) against a generic quadratic programme | < 1e-5 | yes | PASS |

**Sævik (2011) sensitivity (reported, not gated).** The rows SV11-PLANE and
SV11-GJ (termination-corrected: clamp solver, `scaled`, anchor at the
end-fitting face) and the along-wire variant of gap T2 (`spring`, capstan
bound, all wires between the two end fittings, the beam curvature field at
every angle sample) re-run with an elastic anchor `K` per tendon at both end
fittings (`EA = 1.29e7 N`; `python validation/scripts/check_saevik2011_anchor.py
OUTPUT_JSON`, about 20 min on one thread). `K` is not fitted; the registered
rows keep the rigid anchor.

| `K` per tendon [N/m] | `EA/K` [m] | SV11-PLANE median R (in band) | SV11-GJ | T2-SV-PLANE median R (in band) | T2-SV-GJ |
| --- | --- | --- | --- | --- | --- |
| rigid (registered) | 0 | 1.62 (3 of 14) | 1.80 | 3.11 (2 of 14) | 4.19 |
| 2e9 | 0.0065 | 1.62 (3) | 1.80 | 3.11 (2) | 4.19 |
| 5e8 | 0.026 | 1.62 (3) | 1.80 | 3.11 (2) | 4.19 |
| 1e8 | 0.13 | 1.62 (3) | 1.80 | 3.11 (2) | 4.19 |
| 1e7 | 1.3 | 1.62 (3) | 1.80 | 3.11 (2) | 4.19 |
| 1e6 | 13 | 1.62 (3) | 1.80 | 3.11 (2) | 4.19 |
| 0 (free wire end) | ∞ | 1.62 (3) | 1.80 | 3.11 (2) | 4.19 |

The first four non-rigid rows span the potting estimate; the last three
extend it to a free end. The largest change of any per-case ratio is 3e-15
(round-off) for the termination correction and 4.5e-4 for the along-wire
chain (at `K = 0`; 1.4e-4 at `1e8`). The along-wire values are a re-run with
the signed capstan bound (the T2 table above, 3.36 and 4.62, used the former
symmetric bound and has no script on record); per load case 0.44, 0.54,
0.74, 0.99 (0.5–2°), 4.96 and 1.91 (4°, LC 4 and LC 5), 3.16–3.51 (7.5°, 8° and
15° at 500 and 250 kN),
3.06–3.19 (24–32°), 2.67 (15°, 750 kN), 5.67 (15°, 17 MPa, LC 19).

Why nothing moves: the end-fitting face lies 2.305 m before the curved
section, inside the straight bellmouth tube, where the beam curvature is about
1% of the bellmouth peak (LC 14, 15°: 2e-4 against 0.025 1/m). The wire next to
the anchor therefore stays in stick, apart from the first half segment, and the
anchor condition does not reach the stations: the rigid anchor of the
along-wire chain carries a range of 79 MPa (LC 14, ±8°, all 55 wires) against
875 MPa at station 2.1. The slip zones that make the corrected ranges start in
the bellmouth and are held there by a stuck stretch of wire, which acts as the
anchor whatever the fitting does. At this rig the termination correction is a
curvature-gradient effect, not an anchor effect; anchor compliance cannot
explain the over-prediction, and the SV11 and T2 decisions stand. The option
matters where the curvature at the anchor is high: on a Ménard layer with
uniform curvature from the anchor (TA-V3, 20 `κ_c`) the corrected range falls
by 1% at `k_a = 10` and by 13% at `k_a = 1`; for a potted fitting
(`K ≈ 1e8` N/m, `k_a ≈ 20` there) it is below 1%.

## Torque balance and twist under tension (gap 3.5: TQ, TQ-KL, TQ-UJ)

Script `validation/scripts/check_torque_balance.py`, tests `tests/test_torque_balance.py`, rows TQ,
Expand Down
2 changes: 1 addition & 1 deletion doc/file_formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ object with four keys:
| --- | --- |
| `cable` | a YAML path, or `bundled:<file stem>` for a bundled cable such as `bundled:iea_task49_66kv` |
| `runs` | `name`, `out_root`, `deck`, `probability`; optional `line_id`, `start_time_s`, `end_time_s` |
| `sections` | `name`, `arc_length_m`; optional `termination`, `thermal`, `fretting`, `sn_curves`, `mean_stress`, `scf` |
| `sections` | `name`, `arc_length_m`; optional `termination` (the fields of `TerminationSpec`, for example `distance_m` and `k_anchor_N_m`; a record without `k_anchor_N_m` has a rigid anchor), `thermal`, `fretting`, `sn_curves`, `mean_stress`, `scf` |
| `options` | the fields of `SeaStateBatchOptions` |

Relative paths are resolved against the folder of the JSON file, and unknown
Expand Down
5 changes: 4 additions & 1 deletion doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ Terms and abbreviations
Armour wires held axially at an end fitting, a rig clamp or a clamped bend-stiffener
root, so that friction builds up a mean wire force the sectional law cannot carry. The
:term:`termination correction` and :func:`~cablexsec.simulate_rig_test` solve each
anchored wire with a Coulomb bound per unit length and axial slip only.
anchored wire with a Coulomb bound per unit length and axial slip only. The termination
correction and the :term:`along-wire model` can hold the wire end elastically instead
(``k_anchor_N_m``, the stiffness per wire of an end-fitting potting; ``0`` is a free
wire end); the rig-test anchor is rigid.

annual damage
The :term:`Miner sum` per year of service, weighted over the sea states of a
Expand Down
47 changes: 42 additions & 5 deletions doc/local_analysis_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -703,17 +703,51 @@ with the increment in `field.termination`.
solver follows each wire's azimuth-dependent contact shape and takes the
biaxial strain directly; with `stick="scaled"` and no capstan it equals the
clamp solver to round-off.
- **Anchor compliance.** The anchor is rigid by default (`u = 0` at the
anchor). `k_anchor_N_m=K` holds each wire end with the force `K u` instead
(`K` in N/m per wire: the axial force on the wire end per unit axial
displacement of the wire end at the anchor), in parallel with the friction
of the first half segment; `0` is a free wire end, `None` or `inf` the
rigid anchor on the unchanged code path. All solvers (clamp, along-wire,
either under a curvature field) take it; the far-field reference is
unchanged. Normalised, `k_a = K R/(EA sin α)` (`ξ EA` for `"scaled"`):
the anchor is as compliant as a length `EA/K` of free wire, so it matters
only when `EA/K` is comparable with the boundary layer `ℓ_x`.
A closed form checks it: a wire under a uniform imposed strain `A` with
a spring anchor slips over `L` next to the anchor, with
`k_a ρ L²/2 + ρ(1 + k_a/β)L + k_a ρ/β² + ρ/β = A` (`β = √k̂`, `β = ∞`
for rigid stick), anchor force `A − ρ/β − ρL` and dissipation
`ρ²(L²/(2β) + L³/6)` ([benchmarks.md](benchmarks.md), TA-V1).
- **Estimating `K` for a potted end fitting.** This is an
order-of-magnitude estimate from shear lag, not a value from a source. A
wire of axial stiffness `EA` bonded over a length `L_e` in a potting of
shear modulus `G_p`, with an effective shear-layer thickness `t_p` over
the wire perimeter `p`, has the bond stiffness per unit length
`k_s = G_p p/t_p` and `u'' = λ² u` with `λ = √(k_s/EA)`; its loaded end has
`K_b = EA λ tanh(λ L_e)`, within 4 % of `√(EA k_s)` once `λ L_e > 2`. An
unbonded wire length `l_f` between the anchor plane and the start of the
bond adds `l_f/EA` in series: `1/K = 1/K_b + l_f/EA`. For a 5 × 12.5 mm
tendon (`EA = 1.3e7 N`, `p = 35 mm`), `G_p = 0.5`–`4 GPa` (unfilled to
filled epoxy, typical values) and `t_p = 0.5`–`5 mm` give `λ = 16`–`150
1/m` and `K_b ≈ 2e8`–`2e9 N/m` for `L_e ≥ 0.15 m`; 0.1 m of unbonded wire
lowers it to about `1e8 N/m`. A 5 mm round wire (`EA = 4e6 N`) gives
`K_b ≈ 8e7`–`7e8 N/m`. The anchor then behaves like `EA/K ≈ 0.007`–`0.16
m` of extra free wire. A mechanical wedge or a hooked wire end changes
these numbers; measure or model the fitting when the result matters.
- **Measured check.** Near the bellmouth of the Sævik (2011) riser the
corrected ranges are 1.65 times the FBG measurements (median, clamp
solver), 2.1 with the along-wire solver in the `"scaled"` convention and
3.4 with `"spring"` or `"rigid"`; the sectional ranges are 1.03
([benchmarks.md](benchmarks.md), SV11 and T2). The anchored-wire Coulomb model is not
supported by these measurements.
supported by these measurements. An elastic anchor in the estimated range,
or a free wire end, does not change this (benchmarks.md, "Anchor compliance of the end
fitting", a reported sensitivity).

What it does not represent: transverse slip (except the vector-Coulomb
relief of `lateral_relief=` with the along-wire solver, Section 6.4), wire
flattening, interaction between layers, the stiffness of a bonded length
inside a fitting (put the anchor at its inner end), bending-induced pressure
flattening, interaction between layers, a bonded length inside a fitting as
a distributed bond (put the anchor at its inner end, or lump the bond into
`k_anchor_N_m`), bending-induced pressure
redistribution and the change of wire and stick moduli over section states.
It has not been compared with a helix finite-element model; the only
measured comparison is the Sævik (2011) check above, which it does not
Expand Down Expand Up @@ -958,7 +992,9 @@ print(test.loop_work_J_per_m(), test.along_wire.iterations.max())
- **Model.** Each wire: axial force `n = e + du/dφ`, friction line load
bounded by the package's contact pressure (and capstan term), imposed strain
`e = κ(x, t) R cos²α cos θ(x)` from the local curvature, ends anchored
(`u = 0`) or free (`n = 0`). The station moment is the elastic (full-slip)
(`u = 0`), elastically anchored (`AlongWireSpec(k_anchor_N_m=(K_left,
K_right))`, the end node held by `K u` in parallel with its friction;
Section 5, Step 6) or free (`n = 0`). The station moment is the elastic (full-slip)
part plus `Σ A R cos α σ cos θ` of the wires at the station; equilibrium
`M(x) = F m(x)` at every station (zero on overhangs) is solved by Newton
on the station curvatures and the load with the exact station Jacobian of
Expand Down Expand Up @@ -988,7 +1024,8 @@ The same solver is available for a section near a termination:
`TerminationSpec(..., solver="along_wire", stick="spring", capstan=True)`
(Section 5, Step 6), and on its own for a prescribed, non-proportional
curvature field: `cx.along_wire_history(cx.WireChainLayer.from_layer_spec(spec),
x_m, kappa_x, ends=("anchored", "anchored"))`.
x_m, kappa_x, ends=("anchored", "anchored"))`, with
`anchor_stiffness_N_m=(K_start, K_end)` for elastic anchors.

### 6.4 Local tendon bending, transverse slip and lateral relief (gap G1)

Expand Down
33 changes: 32 additions & 1 deletion src/cablexsec/analysis/along_wire_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ class AlongWireSpec:
Uniform subdivision of every protocol interval.
max_iterations : int
Newton-type iterations per step before the step is halved.
k_anchor_N_m : (float or None, float or None)
Axial stiffness of the left and right anchors per wire [N/m]
(:meth:`~cablexsec.mechanics.along_wire.WireChain.build`): ``None``
(default) or ``inf`` rigid, ``0`` a free wire end, finite an elastic
anchor (end fitting potting) in parallel with the end node's
friction. A finite value needs an ``"anchored"`` end.
"""

ends: tuple[str, str] = ("free", "free")
Expand All @@ -110,12 +116,34 @@ class AlongWireSpec:
sense: int = 1
substeps: int = 1
max_iterations: int = 60
k_anchor_N_m: tuple[float | None, float | None] = (None, None)

def __post_init__(self) -> None:
ends = tuple(self.ends)
if len(ends) != 2 or any(e not in END_CONDITIONS for e in ends):
raise CableInputError(f"ends must be two of {END_CONDITIONS}")
object.__setattr__(self, "ends", (str(ends[0]), str(ends[1])))
anchors = tuple(self.k_anchor_N_m)
if len(anchors) != 2:
raise CableInputError("k_anchor_N_m must give one value per end")
checked: list[float | None] = []
for kind, value in zip(ends, anchors, strict=True):
if value is None:
checked.append(None)
continue
if isinstance(value, (bool, np.bool_)) or not isinstance(
value, (int, float, np.integer, np.floating)
):
raise CableInputError("k_anchor_N_m values must be numbers or None")
k_anchor = float(value)
if math.isnan(k_anchor) or k_anchor < 0:
raise CableInputError(
"k_anchor_N_m must be non-negative (None or inf: rigid anchor)"
)
if kind != "anchored":
raise CableInputError("an anchor stiffness needs an anchored end")
checked.append(k_anchor)
object.__setattr__(self, "k_anchor_N_m", (checked[0], checked[1]))
over = tuple(float(v) for v in self.overhang_m)
if len(over) != 2 or any(not math.isfinite(v) or v < 0 for v in over):
raise CableInputError("overhang_m must be two non-negative lengths")
Expand Down Expand Up @@ -362,7 +390,7 @@ def dissipation_nodes(self, new: _State) -> FloatArray:
return np.asarray(np.sum(d, axis=0) * self.lay.energy_unit_J)

def stored(self, state: _State) -> tuple[float, FloatArray]:
_u, z, n, _t = state
u, z, n, _t = state
lay = self.lay
h = self.chain.h
seg = 0.5 * h * np.sum(n * n, axis=0)
Expand All @@ -371,6 +399,8 @@ def stored(self, state: _State) -> tuple[float, FloatArray]:
0.0,
0.5 * self.chain.weights * lay.k_hat * np.sum(z * z, axis=0),
)
if np.any(self.chain.spring > 0.0):
node = node + 0.5 * self.chain.spring * np.sum(u * u, axis=0)
total = (float(np.sum(seg)) + float(np.sum(node))) * lay.energy_unit_J
return total, np.asarray(node * lay.energy_unit_J)

Expand Down Expand Up @@ -462,6 +492,7 @@ def embed(wv: FloatArray) -> FloatArray:
length + oh_r,
ends=spec.ends,
segments_per_pitch=spec.segments_per_pitch,
anchor_stiffness_N_m=spec.k_anchor_N_m,
),
x_all,
)
Expand Down
Loading
Loading