Repository navigation
feat: auto armour friction model for non-planar curvature and a default-change notice - #10
Merged
Merged
Conversation
…lt-change notice
compute_fatigue (public and cablexsec.analysis.fatigue) and
wire_stress_field take friction_model="auto": the direction-tied cap for
a planar curvature path and the distributed helix model for any other.
A path is planar when curvature_path_out_of_plane_ratio (largest distance
of a sample from the principal line through the origin over the largest
curvature) is at most PLANAR_PATH_TOLERANCE = 1e-3. Layers outside the
distributed model (xi >= 1, a stick modulus that changes over the record,
a rate-dependent friction law) keep the direction-tied cap; the
provenance records the ratio, the model of every layer and any fallback.
The default stays "direction_tied", bit for bit, and changes to "auto"
in the next release. Until then a default call on a non-planar path
warns once (DirectionTiedFrictionWarning, a FutureWarning) with the
measured bias: under a steadily rotating curvature at twice the slip
onset the largest per-wire friction-stress range of the direction-tied
cap on the 66 kV inner armour was 0.94 (xi = 0.81, template) and 0.86
(xi = 0.99) of the distributed model's, bulk damage 0.79 and 0.55 at an
S-N slope of 4 where friction governs; its friction work per revolution
0.38-0.69 of the planar cycle against 1.8-2.6. On planar and flat paths
(minor/major axis up to about 0.3) its ranges are at or above the
distributed ones. Cost of the distributed model on one thread: 1.0-1.5x
the direction-tied time on the shipped fatigue examples, 13-16x on the
66 kV template.
Also:
- distributed_bound ("signed" default, unchanged; "uniform" without the
capstan term) in compute_fatigue, wire_stress_field and the distributed
wrappers; a bound on the total wire force is not offered because the
clamping already holds the radial load of the tension share;
- the distributed model of the fatigue path takes a constant stick
modulus other than the layer's (one thermal block) as the Yun
coefficient of that state;
- the pitch-mean offset of the direction-tied cap in planar full slip,
sigma_0 (sinh x0/x0 - 1), x0 = lam pi/2 (1.1 % of the peak on the
66 kV inner armour), is documented and kept: a zero-mean condition
couples the wires, and removing it would move ranges by less than 1e-4;
- anchored_heat_profile documents its constant bound against the signed
bound of the sectional heat (cycle works within 0.25 % on a uniformly
bent section);
- the guide, concepts page and module notes no longer say the two laws
give the same stress ranges under biaxial bending.
No default-path result and no validation row changes.
Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
… on every layer it covers Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Owner
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Under a rotating curvature, the direction-tied armour friction cap underestimates the per-wire stress range. This PR adds the distributed helix model as an opt-in,
friction_model="auto". The default stays"direction_tied"in this release, bit for bit. A default call on a non-planar path now warns that the default changes in the next release.friction_model="auto"incompute_fatigue(public andcablexsec.analysis.fatigue) andwire_stress_field:DirectionTiedFrictionWarning(aFutureWarning): a default call on a non-planar path warns once, quoting the measured bias.distributed_bound:"signed"(default, unchanged) or"uniform"(no capstan term).No default-path result and no validation row changes.
When a path counts as planar
The out-of-plane ratio of a curvature history,
curvature_path_out_of_plane_ratio(kx, ky), iswhere$\alpha$ is the direction of the principal line through the origin. The path is planar when $r \le$ $= 10^{-3}$ .
PLANAR_PATH_TOLERANCE"auto"keeps the direction-tied cap on a layer that the distributed model does not cover. The provenance recordsA pressure-only
FrictionLaw(#9) runs on the distributed kernel.Measured bias of the direction-tied cap
66 kV template, inner armour, steadily rotating curvature at twice the slip onset. Each ratio is the direction-tied value over the distributed model's:
The friction work per revolution is 0.38–0.69 of the planar cycle with the direction-tied cap and 1.8–2.6 with the distributed model.
On planar and flat orbits (minor/major axis up to about 0.3) the bias goes the other way: the direction-tied ranges are at or above the distributed ones.
"auto"keeps the cheaper cap only on strictly planar paths.Cost of the distributed model on one thread, relative to the direction-tied time:
Documented, not changed
Pitch mean of the direction-tied friction stress. The cap's bounds integrate the capstan growth from the neutral axis. In planar full slip the stress$\sigma_0(e^{\lambda x} - 1)$ therefore has the pitch mean
which is 1.1 % of the peak on the 66 kV inner armour (0.054 MPa). The offset is kept, for two reasons:
Removing the offset would change the largest per-wire range by less than$10^{-4}$ .
anchored_heat_profilesolves its anchoring ratio with a constant bound, while the sectional heat it multiplies uses the signed capstan bound.Fatigue-path stick modulus. The distributed model of the fatigue path takes a constant stick modulus other than the layer's (one thermal block) as the Yun coefficient$\xi = k/(E\cos^2\alpha)$ of that state.
Default change (next release)
The default moves to
"auto"in the first release after the current paper that cites the direction-tied law is published. Passingfriction_modelexplicitly silences the warning and keeps the current behaviour.Checks
On the branch rebased on
dev0883036 (#9):tests/test_biaxial_friction_default.py(17 tests), which checks:"direction_tied";"auto"on planar and circular paths;"uniform"bound;analytical_sanity, +6independent_method(from collected test IDs).CABLEXSEC_DISABLE_NUMBA=1: 4227 passed, 112 skipped (compiled-only tests);mypy src: no issues in 118 files;ruff checkandruff format --checkon the CI paths: clean.