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
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,30 @@ All notable changes to CableXSec are recorded in this file. The format follows
`.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_deck` reads the LINE TYPES tokens of CableDyn 0.4.x: `GJ|K` and `GJ|K|Bt`
(torque–tension coupling and torsional damping, CableDyn 0.4.0) in the `GJ` column, and
`EI|Bb`, `EI|-zeta|f` and `EI|-zeta|f1|f2` (bending and Rayleigh damping) in the `EI` column.
It rejected them as "not numeric", so no deck using them could be read. The line type keeps
the numeric `EI` and `GJ` and the extra parts as CableDyn resolves them
(`bending_damping_Nm2s`, `mass_damping_1_s`, `torque_tension_coupling_Nm`,
`torsional_damping`, `polar_inertia_kg_m`, and the columns as written in `ei_token` and
`gj_token`), with CableDyn's checks (`0 < ζ < 1`, positive frequencies, damping and coupling
only on a finite-EI type, `K² < EA·GJ`). The tables are now read by position, as CableDyn
reads them, instead of by header name: a row without a number token is a header or units
row, and the token count selects the row form. An 11-column LINE TYPES row is the 10 columns
and the VIV `Cl`, so a header naming its last column `GJ` no longer turns `Cl` into a `GJ`
(CableDyn reads `GJ` only from the 14-column row), and stock-MoorDyn headers (`Mass/m`,
`Cd Ca CdAx CaAx`) read. END CONNECTIONS `TorsStiffness` `Free`, `Zero` or `0` now leaves the
end free in torsion (any token but `none`, `-` and `0` restrained it, so a deck with `Free`
was refused for want of `Twist` channels), `EndA`/`End_A` name End A, and the restrained ends
follow the anchor-first swap (`CableDynLine.torsion_restrained_ends`). A finite-EI line from
a `Fixed` point to a rod end is swapped as CableDyn swaps it, an `END` row closes the OUTPUTS
list, a quoted name may hold spaces, exponents may be written with `D`, and a duplicate line
type or line id is refused. A line solved in torsion whose type couples torque and tension
twists as it stretches, so `read_cabledyn_sections` needs its `Twist` channels even when only
one end is restrained, and `section_channels` lists `Twist`/`Torq` for a line restrained at
either end. `tests/data/cabledyn/lw24g.*` is a CableDyn 0.4.2 run of a deck with these
tokens.
- `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
20 changes: 18 additions & 2 deletions doc/global_local_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,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 (`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.
CableDyn 0.4.2 build (`lw128`; `lw24r` on a mesh the static solve
refined; `lw24g` with the 0.4.x LINE TYPES tokens); 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 @@ -68,6 +69,21 @@ refined); where a later release changed a channel, the item says so.
dynamics it varies along the line) and `Twist<L>N<J>`, the material twist
accumulated from End A in degrees.
- **Pressure.** Not written.
- **Deck.** `read_cabledyn_deck` reads the tables by position, as CableDyn
does: a row without a number token is a column-name or units row, and the
token count selects the row form (LINE TYPES 10 or 14 columns, either
followed by `Cl [dF cF]`; POINTS 5 or 9; LINES 3, 4 or the stock 7;
SECTIONS 4; END CONNECTIONS 6, 10 or 11). The `EI` column may carry
bending damping (`EI|Bb`, `EI|-zeta|f`, `EI|-zeta|f1|f2`), the `GJ` column
of a 14-column row the torque–tension coupling `K` and torsional damping
`Bt` (`GJ|K`, `GJ|K|Bt`); the line type keeps them, resolved as CableDyn
resolves them (`bending_damping_Nm2s`, `mass_damping_1_s`,
`torque_tension_coupling_Nm`, `torsional_damping`), and they leave the
reconstructed histories unchanged, since these come from CableDyn's
solution. A line solved in torsion whose type couples torque and tension
twists as it stretches, so the reader needs its `Twist` channels even when
only one end is restrained. `TorsStiffness` `Free`, `Zero` or `0` leaves an
end free in torsion.

## 2. Section history

Expand Down
Loading
Loading