Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,24 @@ All notable changes to CableXSec are recorded in this file. The format follows
its plane stays planar. Over the 1 203 tests that reach the planarity test and the shipped
fatigue examples and tutorials, no path other than the new checks changes its verdict.

- `read_cabledyn_sections` reads runs whose static solve refined the mesh of a finite-EI line
(`adaptive_mesh`, `tensile_safety` or CableDyn's automatic refinement). It rejected them 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. 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: the files 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 arc lengths of the deck sections
in `.elements.out`. Without `.elements.out` (no placement of the added nodes) the positions are
read at the deck nodes, `tension_source="auto"` takes the node channels and
`tension_source="segments"` or chord tangents are refused by name. `adaptive_mesh` without
`.elements.out` is no longer refused: the files show whether the mesh was refined. Real
CableDyn 0.4.2 output of the refined run is in `tests/data/cabledyn/lw24r.*`; from the refined
positions the curvature meets every `Curv` channel within the default 5 %.
- `read_cabledyn_sections` closes every output file it reads. The per-line `.p.out` and
`.t.out` readers were left open after a read (and after a failed one) until garbage
collection, which raised `ResourceWarning`. The files of one run must now also end on the same
Expand Down
27 changes: 23 additions & 4 deletions doc/global_local_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ bend stiffener); the hysteretic two-way element is stage 2 (Section 7).

From the CableDyn manual (`doc/driver_format.md`, `doc/outputs.rst`,
`doc/theory.rst`) for CableDyn 0.4.x. The genuine runs in `tests/data/cabledyn/`
were written by the CableDyn 0.1.0 driver; where a later release changed a
channel, the item says so.
were written by the CableDyn 0.1.0 driver (`lw24`, `lw128_v010`) and a
CableDyn 0.4.2 build (`lw128`, and `lw24r` on a mesh the static solve
refined); where a later release changed a channel, the item says so.

- **Files.** Standalone driver: `<root>.out` (title line, header
`Time(s)` and the deck `OUTPUTS` tokens, no units row);
Expand Down Expand Up @@ -157,8 +158,9 @@ included). `true_tension_N(A_o)` returns `T_e − p_o A_o`.
OpenFAST units are checked per channel; a missing file or channel raises
`CableSchemaError` naming it (for example the `Dec`/`Azi` nodes of the spline
window, `Ten<L>N<J>`, the `p` flag for the arc frame, `Twist` on a restrained
line). The reader also requires: mesh of `.elements.out` equal to the deck
sections (an adaptive mesh needs that file); first position row equal to
line). The reader also requires: every file of the run listing the same
nodes of the line, and the deck nodes at the arc lengths of the deck
sections (below); first position row equal to
the static profile (files of one run); element chord within −2% to +5% of
its reference length at `t = 0`; uniform output step equal to `dtM`;
`.t.out` order fitting the `Ten` channels better than its mirror; and the
Expand All @@ -168,6 +170,23 @@ CableDyn reports the end element's curvature with its clamped or pinned end
condition). A mesh too coarse for the curvature fails this check; state a
tolerance or refine the mesh.

**Refined meshes.** The static solve may refine a finite-EI line
(`adaptive_mesh`, `tensile_safety` or the automatic refinement). Each deck
node stays a node of the refined mesh at its own unstretched arc length; the
`<J>` of every node channel names a deck node, while `.static.out`,
`.elements.out` and the per-line files list every node of the refined mesh
(CableDyn `doc/outputs.rst`, node channels on a refined line). The reader
locates the deck 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`); every 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`. Positions and segment tensions are read on the refined
mesh, the node channels at the deck nodes; `checks["mesh"]` records the node
counts and the source of the numbering. Without `.elements.out` the added
nodes cannot be placed: the positions are read at the deck nodes,
`tension_source="auto"` takes the node channels, and
`tension_source="segments"` or `tangent_placement="chord"` is refused.

**Deck outputs.** `section_channels(deck, sections)` lists the `OUTPUTS`
channels the tangent source needs for the section frame: `Dec`/`Azi` on the
window, `Ten`, `Curv` and `p{x,y,z}` at the bracketing nodes, and
Expand Down
Loading
Loading