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
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ All notable changes to CableXSec are recorded in this file. The format follows

## [Unreleased]

### Added

- `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
`contact_pressure_Pa` takes the per-sample `P1+P2` of every structural armour layer. Before,
one bending calculation held one contact pressure. The pressure moves only the friction bound
of each wire's return map, with the slip state carried across, so no material-work term
arises: a falling bound releases the elastic energy `A cos α (c0² − c1²)/(2k)` of a slipping
wire as friction work, and a rising bound leaves a sticking wire unchanged. The stick and
full-slip stiffnesses, the laid-core and ring contact loads and the wire-yield range check
stay at the reference state (the first sample of a tension history). A history equal to the
fixed pressure reproduces the fixed-pressure loop bit for bit, and the result returns the
pressures used (`MkappaResult.contact_pressure_Pa`). New validation row MK-Tcyc: a tension
cycle inside the bending cycles gives the fatigue path's friction stress (3.4e-16 of the
moment) and closes the work balance (1.1e-15 of the friction work). `SectionLaw` and the bending-test simulator keep a
fixed pressure (their leg solver evaluates trial curvatures without a sample time), and so
does the exported bending law.

### Fixed

- The frictional heat of `compute_thermal_fatigue` (`frictional_heat_W_m`, `pi2` and
Expand Down
1 change: 1 addition & 0 deletions VALIDATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ afterwards: a comparison that misses its target is reported as failed.
| **A11** | Moment–curvature energy closure | loop area against closed form | 0.082 % | <0.1 % | Pass |
| **σ_B** | Radial-fibre bending stress | Ménard and Cartraud (2023), Eq. 14 | 0 | <1e-6 % | Pass |
| **M-rec, M-rec-3core** | Assembled per-wire moment against the section engine | cross-engine | 0.000 % | <2 % | Pass |
| **MK-Tcyc** | Moment–curvature law with tension cycling inside the bending cycles; work balance under the changing friction bound | fatigue-path friction stress, same kernels | 3.4e-16; 1.1e-15 | <1e-12 | Pass |
| **slip-onset** | First wire to slip lies at the neutral axis (compression side, ψ ≈ 3λ/2) | Raoof; Papailiou | \|cos\| = 0.156 | \|cos\| < 0.2 | Pass |
| **xsec-K** | Coupling tangent bounds | EI_max, EI_min limits | ≤6.3e-13 % | <0.01 % | Pass |
| **QP-KKT, QP-Lamé** | Concentric contact complementarity; shrink-fit compliances | KKT conditions; compound cylinder | 1.9e-13 N; 1.3e-16 | <1e-8 N; <1e-6 | Pass |
Expand Down
1 change: 1 addition & 0 deletions doc/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ All rows are verification, not validation. Source: the scorecard
| σ_B | A | Radial-fibre bending stress vs Ménard Eq. 14 | < 1e-6% | 0 | PASS |
| M-rec | I | Assembled per-wire moment vs `compute_mkappa`, single core | < 2% | 0.000% | PASS |
| M-rec-3core | I | As M-rec, offset-core geometry | < 2% | 0.000% | PASS |
| MK-Tcyc | I | `compute_mkappa` with a contact-tension history cycling inside the bending cycles vs the moment of the fatigue-path friction stress on the same history; work-balance residual over the friction work | < 1e-12 rel.; < 1e-12 rel. | 3.4e-16; 1.1e-15 | PASS |
| slip-onset | A | First wire to slip lies at the neutral axis (with the signed bound on the compression side, ψ ≈ 3λ/2) | abs(cos) < 0.2 | 0.156 (0.000 with the former bound) | PASS |
| xsec-K | A | Tangent bounds EI_max (κ→0) and EI_min (κ→∞) | < 0.01% | 0; 7.4e-12% | PASS |
| QP-KKT | A | Concentric contact complementarity | < 1e-8 N | 1.9e-13 N | PASS |
Expand Down
13 changes: 11 additions & 2 deletions doc/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,17 @@ Three contact models turn these loads into pressures:
| `"solved"` | elastic contact problem of the whole section, three-core bundles included | `solve_cable_radial_state`; [solved radial contact state](radial_model.md) |

On the same cable the models can differ by tens of per cent, as Tutorial 1
shows. The pressure is held fixed within one bending calculation. In a fatigue
calculation it can follow the tension history.
shows. By default a bending calculation holds the pressure of one contact
state. `compute_mkappa` can let it follow a tension history
(`contact_tension_history_N`) or take a per-sample pressure for each armour
layer (`contact_pressure_Pa`), as a fatigue calculation does with its tension
history. The friction bound of each wire then changes from sample to sample in
the same return map, with the slip state carried across. A falling bound clips
a slipping wire's friction stress, and the released elastic energy is friction
work; a rising bound leaves a sticking wire unchanged. Only the armour bound
follows the history: the stick stiffness, the full-slip stiffness and the
contact loads of the laid cores stay at the reference state. The bending-test
simulator and the exported bending law keep a fixed pressure.

## Fatigue is counted at fixed material points

Expand Down
4 changes: 3 additions & 1 deletion doc/global_local_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ backbone at the midpoint is missed by 3.9 % of the moment range (Ménard; regist

Limits. The law is planar. CableXSec's biaxial response is per wire and tied to the current bending direction; a
global solver that applies an isotropic hysteretic law to the resultant curvature makes an assumption the section
model does not. Tension and annulus state are fixed within one law. Whether a global program's hysteretic bending option
model does not. Tension and annulus state are fixed within one law; the section law itself can follow a tension
history within a bending cycle (`compute_mkappa(..., contact_tension_history_N=...)`), but the exported law has no
rule yet for its slider states when the tension changes. Whether a global program's hysteretic bending option
applies Masing's rules to the exported table is target MX-5, open until checked; CableDyn does not yet have a
bending-law interface (its stage 2, Section 7).
22 changes: 22 additions & 0 deletions doc/local_analysis_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,28 @@ for state in response.states:
- `W_diss_J_per_m` is friction work over the whole supplied history, including
conditioning cycles. For closed-cycle loss use `loop.work` and
`cablexsec.analysis.curve_comparison.insert_cycle_crossings`.
- The contact pressure is that of one contact state unless a history is
given. `contact_tension_history_N` (one tension per curvature sample) sets
the armour `P1+P2` of every sample through the contact model, the same
histories `compute_fatigue` forms from `tension_N`
(`armour_contact_histories`); `contact_pressure_Pa` takes the per-sample
`P1+P2` of every structural armour layer directly, for example from a
sequence of solved section states. The friction bound of each wire follows
the pressure with the slip state carried across, so a tension cycle inside
the bending cycles gives the same friction stress as the fatigue path
(registered check MK-Tcyc). Only that bound follows: the stick and full-slip
stiffnesses, the laid-core and ring contact loads and the wire-yield range
check use the reference state (the first sample of a tension history).
`loop.contact_pressure_Pa` returns the pressures used. `SectionLaw` and the
bending-test simulator keep a fixed pressure, because their leg solver
evaluates trial curvatures that carry no sample time.

```python
t = np.arange(1200)
kappa = 0.03 * np.sin(2 * np.pi * t / 200)
tension = 1e4 + 6e4 * np.sin(np.pi * t / 370) ** 2 # N, within the cycles
loop = cx.compute_mkappa(cable, kappa, contact_tension_history_N=tension)
```
- `compute_stress` is a monotonic result at one curvature, not a cyclic history.
- Offset components (laid power cores) are reported in the three core slip
states of Section 13.1: `sigma_stick_*` (core held to the cable axis,
Expand Down
8 changes: 8 additions & 0 deletions src/cablexsec/analysis/beam_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,14 @@ def from_cable(
option) and assembles the moment from the wire stresses in the same
way; it substeps internally, so its leg property holds to the
substep accuracy.

The contact pressure is that of the one contact state given here.
The pressure and tension histories of
:func:`~cablexsec.api.compute_mkappa` (``contact_pressure_Pa``,
``contact_tension_history_N``) are not offered: a pressure belongs
to a sample time, and the test solver evaluates every station over
trial curvature histories (a reduced history plus sorted trial
curvatures) that carry no time, so the leg property would not hold.
"""
require_fully_specified(cable, "SectionLaw.from_cable")
require_finite(tension_N, "tension_N")
Expand Down
Loading
Loading