Repository navigation
fix: CableDyn reader places finite-EI node tangents at their nodes - #25
Merged
Merged
Conversation
CableDyn 0.4.2 and later write the node's own cubic-Hermite tangent in the L<L>N<J>Dec/Azi channels of a finite-EI line. read_cabledyn_sections placed every value at the mid-arc of the chord between the neighbouring nodes, so the hang-off tangent sat half an element inside the line and, on a non-uniform mesh, interior tangents near a change of element length were shifted too. On the 128-element lazy-wave run of CableDyn 0.4.2 (0.2 m elements at the hang-off) the curvature at node 2 departed from CableDyn's Curv by 52 % and at node 3 by 15 %; without Curv channels the largest curvature 0.25 m from the hang-off came out 14.5 % high. Placed at the nodes, every checked node agrees to 2.5e-4. - tangent_placement="auto" (default): node tangents of finite-EI lines at the nodes, chords of EI = 0 lines at their mid-arcs; "chord" reads finite-EI output of CableDyn 0.4.1 and earlier (the files carry no version marker). The placement is recorded in checks and provenance; a failed curvature check names the option and the tolerance applied. - SeaStateBatchOptions.tangent_placement forwards it from the batch. - tests/data/cabledyn/lw128 regenerated with CableDyn 0.4.2; the v0.1.0 run is kept as lw128_v010. How-to 10 output follows the new run. - Guide: known-limitation text removed; placement, verification row and 0.4.2 results added. CHANGELOG: Changed. 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. Nice work! 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
CableDyn 0.4.2 and later write each node's own tangent (the cubic-Hermite tangent DOF) in the
L<L>N<J>Dec/Azichannels of a finite-EI line (CableDynCHANGELOG0.4.2;line_geom_value/cable_node_tangentinCableDyn_DeckDriver.f90).read_cabledyn_sectionsstill placed every value at the mid-arc of the chord between the neighbouring nodes. Because of that:This PR places node tangents at their nodes by default. It also removes the known-limitation text that #15 added to the guide.
What CableDyn writes
EI > 0), CableDyn >= 0.4.2-m, at aRigidend the clamp directionEI = 0, every versionr(j+1) - r(j-1), one-sided at the endsThe output files carry no version marker. The
.out,.p.out,.static.outand.elements.outheaders were checked on a 0.4.2 build, so the reader does not try to detect the version.Changes
read_cabledyn_sections(..., tangent_placement="auto" | "chord")"auto"(default): node placement on a finite-EI line, chord mid-arc on anEI = 0line."chord": reads finite-EI output of CableDyn 0.4.1 and earlier.checks["tangent_placement"]and in the provenance limitations.tangent_placementvalue on a finite-EI line.SeaStateBatchOptions.tangent_placementpasses the option through from the batch.tests/data/cabledyn/lw128was regenerated with the CableDyn 0.4.2 driver (dev build 4b94321, same deck).lw128_v010, so the"chord"option is tested on real chord output.Tegoes from 1.75 to 1.33 kN because of CableDyn's nodal tension recovery (0.2.0+), not this reader.The bug, measured
lw128from CableDyn 0.4.2: 0.2 m elements over the first 6 m, then 1.24 m. Each value is the error of the reconstructed curvature against CableDyn'sCurv1N<J>, relative to that node's largest value.Curv1N2Curv1N3Curv1N4,N71-N75(uniform mesh)The old reader only failed loudly here because the run writes
Curvchannels next to the hang-off. Without them it silently returned a hang-off curvature 14.5 % too high, i.e. roughly 50-100 % in damage at S-N slopes 3-5.A local run of the 24-element deck (6.8 m elements at the clamped hang-off) was not committed. On it the old placement gave 2.8 times the hang-off curvature: 2.81e-2 against 1.00e-2 1/m.
The reverse case is also covered.
lw128_v010read with"chord"agrees to 1.4 % (N2) and 1.0 % (N3); read with node placement it is off by 15.5 % and 4.9 %.Tests
test_node_tangents_of_a_finite_ei_line_sit_at_the_nodes: exact arc on a non-uniform mesh, checked at End A, the mesh junction, mid-span and End B. The error is below 1e-4 relative. Read as chords, End A comes out above 1.5κ.test_chord_tangents_sit_at_the_chord_mid_arcs[EI=0-auto, EI>0-chord].test_tangent_placement_is_checked.test_real_cabledyn_run_from_channels: 0.4.2 output."chord", it raises with the option named.test_real_cabledyn_v010_run_with_chord_tangents.test_tangent_placement_reaches_the_reader(batch).With the reader change reverted, 8 reader tests and the how-to 10 recipe test fail.
Gates
ruff check/ruff format --check(CI command)mypypytestwith numbapytest,CABLEXSEC_DISABLE_NUMBA=1run_validation.py --checkNot changed (reported separately)
Tennodes,.t.outelement midpoints),Twist/TorqandCurvX/CurvYstation tables already read at the correct locations.tensile_safety/adaptive_meshruns whose static solve refined the mesh (# DeckNodeline) are still rejected with "mesh ... differs from the deck sections".GJ|K|Bttokens (CableDyn 0.4.0+) and theEI|Bb/EI|-zeta|f[|f2]tokens (CableDyn dev) are rejected as non-numeric.