Repository navigation
fix: CableDyn reader reads meshes the static solve refined - #26
Merged
Merged
Conversation
read_cabledyn_sections rejected every run whose static solve refined the mesh of a finite-EI line (adaptive_mesh, tensile_safety or the automatic refinement) with "mesh of line ... differs from the deck sections". .static.out, .elements.out and the per-line files list every node of the refined mesh, while the node channels name the deck nodes (CableDyn 0.2.0 and later). The current CableDyn refines the 24 deck elements of the test deck lw24.dat to 43, so that run could not be read. The reader now locates the deck nodes among the mesh nodes by the DeckNode column of .static.out or the "# DeckNode" line of .Line<L>.p.out (failing both, by their arc lengths in .elements.out), reads the node channels at the deck nodes and the positions and segment tensions on the refined mesh, and records the mesh in checks["mesh"]. A deck that does not match the output is still rejected: every file must list the same number of nodes, every DeckNode numbering must name the deck nodes in order and agree with the others, and the deck nodes must lie at the deck-section arc lengths of .elements.out. Without .elements.out the positions are read at the deck nodes, the "auto" tension source takes the node channels, and segment tensions or chord tangents are refused by name. adaptive_mesh without .elements.out is no longer refused, and .elements.out without rows of an EI = 0 line is skipped for that line. tests/data/cabledyn/lw24r.* is CableDyn 0.4.2 output (development build 4b94321) of the lw24 deck for 1 s with tangent channels: from the refined positions the curvature meets every Curv channel within the default 5 %. 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. Breezy! 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.
Problem
When CableDyn's static solve refines the mesh of a finite-EI line (
adaptive_mesh,tensile_safety, or the automatic refinement; documented since CableDyn 0.2.0), the output files list every node of the refined mesh, while the node channels<J>still name deck nodes:<root>.outchannels (Curv1N8,L1N3Dec,Ten1N9, ...).static.out,.elements.out,.Line<L>.p.out,.Line<L>.t.outDeckNodecolumn /# DeckNodeline)read_cabledyn_sectionscompared.elements.outwith the deck sections and rejected every such run.Reproduction
The current CableDyn refines the 24 deck elements of the test deck
lw24.dat(tensile_safety True) to 43:The same error came from every option (
curvature_source,frame,tension_source).Change
DeckNodecolumn of.static.outor the# DeckNodeline of.Line<L>.p.out;.elements.out..elements.outplaces.checks["mesh"]records the node counts and where the numbering came from.DeckNodenumbering must name the deck nodes in order (End A = 1, End B last) and agree with the others;.elements.out, the deck nodes must lie at the arc lengths of the deck sections;EI = 0line, which CableDyn never refines, must not show a refined mesh..elements.outis missing (the multibody march writes none), the nodes the refinement added cannot be placed:tension_source="auto"takes the node channels (checks["tension_file_skipped"]);tension_source="segments"andtangent_placement="chord"are refused by name.adaptive_meshwithout.elements.outis no longer refused, because the files show whether the mesh was refined. An.elements.outwith no rows for anEI = 0line is skipped for that line.Validation
tests/data/cabledyn/lw24r.*is real CableDyn 0.4.2 output (build 4b94321) of thelw24deck, 1 s, with tangent channels (about 60 KB). Ratio of the reconstructed curvature error to the largestCurvvalue:.elements.out)Reading the refined positions is what makes the difference: they meet every
Curvchannel within the default 5 %, while the deck-node subset misses N10 and N12 by 15 to 19 % (the unrefined 24-element v0.1.0 runlw24needs 50 %). The tangent and position sources agree on the sag-bend curvature within 1 %. Chords placed on the refined mesh (the 0.4.1 placement) are rejected for this 0.4.2 output, as expected.New tests:
test_real_cabledyn_run_on_a_refined_meshtest_refined_mesh_is_located_without_a_deck_node_numbering(gives a bit-identical result)test_refined_mesh_without_the_element_filetest_refined_mesh_of_another_deck_is_rejected(oneNumSegsfewer; a section length changed)test_deck_node_numberings_must_agreetest_element_file_of_other_linesTests updated for the new messages: an obsolete
adaptive_meshrefusal, and a dummyCD.static.outreplaced by a valid profile, since the static profile is now always read.Gates
ruff check/ruff format --check(CI command),mypy: cleanpytestwith numba: 4458 passed, 3 skippedpytestwithCABLEXSEC_DISABLE_NUMBA=1: 4344 passed, 117 skippedrun_validation.py --check: not stale; taxonomyfull_scale32 → 33 (analytical_sanity1183,independent_method76 unchanged); registered FAIL rows as before