Skip to content

feat: core friction in the biaxial section moment of compute_neutral_axes - #32

Merged
SMI-Lab-Inha merged 1 commit into
devfrom
feat/biaxial-section-moment
Nov 18, 2026
Merged

SMI-Lab-Inha merged 1 commit into
devfrom
feat/biaxial-section-moment

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

Summary

compute_neutral_axes already returns the biaxial section moment conjugate to a curvature history b = (kx, ky) (NeutralAxisResult.moment_Nm, shape (samples, 2)). Until now it covered only the armour wires and EI_min b. This PR adds an optional core_friction argument (True or a CoreFrictionSpec). With it, the section moment also includes the stick-slip law of the laid power cores, their internal wire rings and the filler profiles, run by core_friction_history over the same history.

A global model's (kx, ky, T) station history then gives the section moment of the full accounting, which a global–local consistency check needs. Before, only the planar compute_mkappa included the cores.

$$ \mathbf m(t) = EI_{\min},\mathbf b(t) + \sum_{L}\mathbf m_L(t) + \mathbf m_c(t) $$

Behaviour

  • The core contact loads are those of the bounded model at the reference tension, i.e. the first sample of the tension history (zero without one). This is the same as compute_mkappa(core_friction=...). The armour contact pressure still follows the history.
  • NeutralAxisResult.core_moment_Nm holds the core share. ei_max_Nm2 adds the core stick stiffness.
  • Without core_friction (None or False) the result is unchanged bit for bit.
  • neutral_axes(...) takes core_moment_Nm and core_stick_EI_Nm2 for a core law computed elsewhere. Both inputs are validated: shape, finite values, sign, and that a stiffness comes with a moment.

Tests

Test Check
planar history along x and along y, 66 kV template with laid cores, wedge and filler profiles moment equals compute_mkappa(core_friction=..., phi_bend=...) to 1e-12 of the range; ei_max_Nm2 equal to 1e-12
core_friction=False against no argument; on against off bitwise equal; on − core share = off (1e-9 N m); the core moment does positive work under turning curvature
input checks the three new error paths

Checks

  • ruff check and ruff format --check with the CI command; mypy: 0 errors
  • full pytest with numba and with CABLEXSEC_DISABLE_NUMBA=1
  • validation/scripts/run_validation.py --check

…axes

compute_neutral_axes reports the section moment conjugate to a biaxial
curvature history, but only of the armour wires and EI_min. With
core_friction (True or a CoreFrictionSpec) it now adds the stick-slip law of
the laid cores, their internal wire rings and the filler profiles
(core_friction_history over the same history), with the bounded contact
loads at the reference tension, as compute_mkappa does. A global model's
(kx, ky) history then gives the section moment of the full accounting.

A planar history reproduces compute_mkappa with the same options to
round-off (tests at 0 and 90 degrees); without core_friction the result is
unchanged bit for bit. NeutralAxisResult.core_moment_Nm holds the core share
and ei_max_Nm2 adds the core stick stiffness.

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 18, 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-18T07:49:16.068144Z b9bf748 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

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #35977587 | 📁 Comparing b9bf748 against latest (240bf9c)

  🔍 Preview build  

20 files changed · ± 20 modified

± Modified

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: b9bf748dbb

ℹ️ 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 eae426e into dev Nov 18, 2026
12 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the feat/biaxial-section-moment branch November 18, 2026 08:31
SMI-Lab-Inha added a commit that referenced this pull request Nov 18, 2026
CHANGELOG keeps both Added entries (Zeidan rows and the biaxial core
moment of #32). Taxonomy recounted on the merged tree: 1191 / 76 / 44
passed, as recorded.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
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