Repository navigation
fix: the exported bending law keeps the stick stiffness at every tension - #13
Merged
Merged
Conversation
export_bending_law computed its backbones on a geometric grid that started at 1e-4 kappa_max whatever the tension. A slip onset below that floor (66 kV template, kappa_max 0.4 1/m: outer armour 7.3e-6 1/m and inner 2.3e-5 1/m at 10 kN) fell inside the first chord, so the law started partly or fully slipped: stick stiffness 5.80e5 instead of the section's 1.26e6 N m2 at 10 kN, 1.255e6 at 50 kN. With slip_scale=True the default reference is the smallest tension, so every scaled tension inherited the softened group laws (secant M/kappa 0.46-0.65 of compute_mkappa below full slip at 50-200 kN). The grid is now extended below its floor at the same ratio until its first point lies under half the smallest first-slip curvature (the neutral-axis onset times the compression-side factor m(lam), and the smallest sub-element cap of the uniform progressive density; a pressure-dependent coefficient at the state's P1+P2), and it carries the onset and full-slip curvature of every armour layer and of the laid cores at every exported tension and at the slip-scale reference. The linear spacing gets one stick point and the slip points and warns when a transition is narrower than its step; a law that still misses the section's stick stiffness warns. On the 66 kV template at 10-200 kN the exported and the scaled laws start at the section's stick stiffness to round-off and follow compute_mkappa between grid points within 5.2e-4 of the moment. kappa_1_m now holds more than n_points points; the base grid is unchanged. The exported laws of the MX-1, MX-2 and MX-scale rows do not change at their printed precision. 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. Delightful! 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". |
Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
This was referenced Nov 17, 2026
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.
Problem
export_bending_lawcomputed every backbone on a geometric curvature grid that starts at1e-4 κ_max, whatever the tension. When a slip onset lies below that floor, the first chord of the backbone is already partly or fully slipped and the Iwan law starts soft.compute_section_propertiesalready puts the onset and full-slip curvatures in its grid and is exact.66 kV template,
κ_max= 0.4 1/m, 200 points (grid floor 4e-5 1/m):EI_stick[N m²]EI_stick[N m²]With
slip_scale=Truethe default reference is the smallest tension, so every scaled tension inherited the softened group laws. Below full slip, the secantM/κof the scaled law was 0.46 to 0.65 ofcompute_mkappaat 50 to 200 kN.Fix
m(λ). It also takes in the smallest sub-element cap of the uniform progressive density, and a pressure-dependent coefficient evaluated at the state'sP1+P2.spacing="linear"gets one stick point and the slip points. It warns when a transition is narrower than its step.EI_maxofcompute_mkappa), the export warns.ρ κ_max), andρ ≥ 1keeps the most range.kappa_1_mnow holds more thann_pointspoints. The base grid is unchanged.Results
66 kV template, 10 to 200 kN,
slip_scale=True:EI_stick/ section, 10 kNEI_stick/ section, 50 to 200 kNMerror between grid points againstcompute_mkappa(exported and scaled laws)Core friction, the progressive law (continuity, and uniform with spread 0.9), a pressure-factor friction law and the solved contact model all start at
EI_maxto 6e-16.Validation records
Nothing in
VALIDATION.mdor the benchmark register moves at its printed precision:validation/scripts/run_validation.py's_slip_scale_identities: ratio 1.0229 before and after.Tests
test_export_starts_at_the_section_stick_stiffness: the exported and scaled laws start atcompute_section_properties' stick stiffness at every tension. The grid floor lies below half the smallest onset, and every onset and full-slip curvature is a grid point.test_exported_and_scaled_laws_match_compute_mkappa_off_the_grid: both laws are checked againstcompute_mkappabetween grid points, within 2e-3. Both new tests fail ondev.test_single_tension_and_linear_spacingnow checks the added stick and slip points, the warning and the stick stiffness.test_single_scale_reproduces_the_export_when_groups_scale_alikeexports the direct law at[t2, s t2], so its grid is the reference grid timess. Its stiffness tolerance is now taken relative to the stick tangent: the stick grid reaches 1e-6 1/m, and the round-off of tangent differences scales with the tangent.Gates
src)CABLEXSEC_DISABLE_NUMBA=1validation/validation_report.md: only its marker-count lines change (two new tests:3250,4327,4372deselected), as the CI validation job computes them. No row value moves.