Repository navigation
feat: one exported bending law per friction group, each with its own scale table - #42
Conversation
|
@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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2a320af4e4
ℹ️ 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".
…oup) Targets registered before any run: summed per-group laws against the exported backbone (0.5 %) and loop work (+-1 %) on the 66 kV template with laid cores, filler profiles and armour clamping; the zero-tension row of the default scale table. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
…scale table A global model that carries one slip scale per law cannot follow groups that scale differently with tension; with armour clamping the laid cores do (66 kV template, 20 MPa: cores 0.39, armour and profiles 0.46 of their 100 kN cap at 10 kN). BendingLawExport.slip_group_laws() returns one SlipGroupLaw per friction group: the group's backbone at the reference with its own scale s_g(T), so that the global model sums s_g B_g(kappa / s_g); the first group carries EI_slip. to_group_csv writes a backbone and a scale table per group. The default slip-scale table now starts at zero tension with the caps of the contact model there (zero without clamping), so the scale runs to zero instead of ending at the lowest exported tension. Checks MX-group, registered before the run (66 kV template, cores and profiles, 0/20/40 MPa winding stress, 10-200 kN): summed group laws within 4.4e-4 of the exported backbone (target 0.5 %) and 0.13 % of the cycle work (target 1 %); one scale for all groups misses by up to 5.3 % and 7 %. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
A friction group is named after its armour layer, a free string: a name with a slash or "../" made to_group_csv fail or write outside the directory. The file stem now keeps letters, digits, ".", "-" and "_", turns every other character into "_", gives a dots-only or empty stem the name "group" and numbers stems that would meet (case-insensitive); the backbone file's comment line keeps the group name itself. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
The armour stick coefficient of the 66 kV template changed with #39; the registered MX-group checks were rerun on the rebased branch: summed group laws within 4.6e-4 of the exported backbone and 0.06 % of the cycle work (all PASS); one scale for all groups 5.5 % and 7 %. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
2a320af to
ea16a3c
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! 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". |
Summary
A global model that carries one slip scale per bending law cannot follow friction groups that scale differently with tension. With armour clamping the laid cores do: on the 66 kV template at 20 MPa winding stress the cores sit at 0.39 of their 100 kN cap at 10 kN, the armour and the filler profiles at 0.46. One cap-weighted scale then misses the exported backbone by up to 5.5 % and the cycle work by up to 7 %.
This PR lets
export_bending_lawhand over one law per friction group, each with its own scale table, so the global model sums the group laws instead:with$B_g$ the backbone of group $g$ at the reference state and $s_g = \rho_g$ its own scale (already in $EI_{slip},\kappa$ , which the scaling leaves unchanged.
SlipScaleTable). The first group carries the elastic partIt also makes the default scale table run to zero tension: the caps of the contact model at$T = 0$ are added in front of the exported tensions (zero without clamping, so $s \to 0$ ; the clamping caps otherwise), instead of the table ending at the lowest exported tension.
API
SlipGroupLaw(new, exported fromcablexsec):name,kind,kappa_1_m,law,moment_Nm,scale,scale_dT_1_per_N,scale_at,law_at,backbone_at,moment,backbone_csv_text,scale_csv_text.SlipScaleTable.group_law(index, kappa_1_m)builds one group law.slip_scale_tensions_N=Noneis now[0, *tensions_N]when the lowest exported tension is positive. An explicitslip_scale_tensions_Nis used as given.Checks (registered in
doc/benchmarks.mdbefore the run, first commit of this PR)Case: 66 kV IEA Task 49 template, bounded contact, laid cores (wedged trefoil) and filler profiles, μ 0.46 on every core and profile contact, armour winding stress 0 / 20 / 40 MPa, export at 10–200 kN,
kappa_max_1_m = 0.4, 200 base points.The residual of MX-group-B is the linear interpolation of each reference backbone between its grid points, not the scaling.
Gates
numpy 2.4.6,scipy 1.17.1) on the branch rebased onto dev (7e14481, with the Yun shear-stack fix),NUMBA_NUM_THREADS=1: 4610 passed, 4 skipped; withCABLEXSEC_DISABLE_NUMBA=1: 4495 passed, 119 skipped.python -m mypy: no issues.ruff check/ruff format --checkonsrc tests examples validation release doc: clean.validation/validation_report.md:analytical_sanity1200 → 1219 (19 new collected IDs,tests/test_bending_law_groups.py); the other two unchanged.Review fixes
.,-and_are kept, every other character becomes_, a dots-only or empty stem becomesgroup, stems that would meet (case-insensitive) are numbered; the backbone file's comment line keeps the group name itself. Testtest_group_csv_file_names_stay_in_the_directory(layers namedarmour/innerand../outer).