You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 357f9eb
Browse filesBrowse the repository at this point in the historyBrowse files
feat(cable): finite-EI lines with two moving ends, between two floaters or two objects, TURBINES rows turning both end frames (#75)
A finite-EI (cubic-Hermite) line may now have two moving ends: End B on a
Coupled/Vessel point (a cable shared by two floaters, a FAST.Farm shared
line), standalone, in OpenFAST, FAST.Farm and the C API, and End B on a
Rigid6 body point or a rod end on the standalone multibody march (a cable
between two objects). Both ends are driven, carry END CONNECTIONS and torsion,
and return their loads to their hosts or objects.
Base: dev e992e9f (#74); the series is rebased onto it from 6195432 (#71),
past #72, #73 and #74.
- HFMF boundary: a second driven end at internal node 1 (moving_b), with its
own parent frame, end connection and torsion frame (the frames of both ends
turn with their parents), its mirror block in the restart state, and a held
End B (at rest, target equal to the committed position in either frame) that
steps exactly as a Fixed End B.
- Standalone: motionFile, vesselMotion/vesselRAO, TURBINES rows and the roll
column drive End B as End A; Phi = Pretwist(B) - Pretwist(A) - roll(A) -
roll(B), the roll of an end free in torsion twisting nothing. TURBINES
decks start each end's Ez/Nx in its turbine's PtfmInit axes and turn both
frames with the rows' rotations, as FAST.Farm does.
- Aggregate, OpenFAST, FAST.Farm, C API: End B on a moving column of its own
(cable_col_b), the turbine map, host orientations at both ends,
CableDyn_GetCoupledLayout with the End B blocks; OpenFAST linearisation of
such a cable fails closed (the linearisation of torsion from #73 stays for
every other line). On the standalone mixed deck the roll columns of both
ends twist the line.
- Multibody march: End B's attachment, frames and loads (cab_*_b); the
monolithic step re-steps a cable between two objects at every outer
iteration and couples both objects' junction coordinates through its
finite-difference end-to-end stiffness in the one Newton matrix; the
static passes balance both objects on the cubic-Hermite end loads,
accelerated by Anderson mixing (a stiff EI 1e6 clamped cable between two
unequal moored bodies, out of their plane: 8 passes either direction, where
the plain passes diverged); the staggered scheme takes pinned ends. A
pinned cable with one moving end is coupled at the predictor whichever end
that is, and an end on a fixed rod's end is the Fixed end there, so the
result does not depend on the line's direction. A partitioned coupling was
measured and not taken: on a stiff taut cable (EA 1e8 N) between 200 kg
bodies at dtM 0.05 s it needed 9.2 mean outer iterations and 300 step
halvings over 100 steps, the joint form 3.9 and none. An End B on a
Free/Connect point, a Point3 buoy or a Coupled/Vessel point stays refused
there by name.
- Validation (native and the Python mirror): END CONNECTIONS and torsion
admit those End B points; staticsFriction asLaid is refused on a moving
End B.
Where it meets the torsion routes of #73/#74 (one restrained end, torsion on
Fixed and `Body<N>` rod ends, prescribed motion on the mixed deck):
- check_torsion_line is the union of both scopes. Two cases neither solves are
refused by name, natively and in deck_file.py: torsion at an End B on a rod
end, and a rod End A restrained in torsion with a moving End B. A bending
END CONNECTION takes any End B that holds a frame (ROD_END_B_NOTE is gone).
- The restrained end decides, not any torsion on the line
(line_torsion_at_a/line_torsion_at_b): connected_end, cab_clamp_b, the End B
staggered refusal, the static pass tolerance and pinned-end skip, the roll
columns, and the torsion turn limit of both bodies (an end free in torsion
is not limited). clamp_object_frame takes the Fixed-rod normal of the end it
frames; `Rod<N>` connection moments include End B.
- Mixed deck: build_aggregate_motion now follows the two-ends moving-set order
(End A columns, then End B columns) and cable_two_ends imposes
Phi_0 - roll(A) - roll(B). Before, a deck whose End B point came first was
refused and otherwise the roll did not twist the line (gate 8 below).
- test_cable_between_bodies D: a Fixed-to-rod-end line and its reversal now
write one output, since #74 turns a Fixed-to-rod line around as dev turns a
Fixed-to-body line.
Result changes:
- The finite-EI compatibility (Cosserat) deck route is retired. Only three
test decks reached it, all refusals or a run-only smoke; on four
shared-line decks it failed to converge (three) or reached a static
FairTen of -6.1e8 N (one), and the Hermite route runs all four. Decks with
a line between two moving points now run on the Hermite route.
- A torsion frame at a bending-pinned body or rod End A is refused on
bodyScheme staggered (it ran with the frame held still and could spin the
body through +-180 deg); the monolithic scheme turns it with the body.
- Standalone TURBINES decks: an end on a `Turbine<J>` point takes Ez and Nx in
the turbine's axes (turned by PtfmInit) and its frames turn with the
TURBINES rows. Decks whose turbines start rotated or whose rows rotate,
with end connections or torsion, change: on a clamped line twisted 90 deg
between turbines rolling 10 deg in opposite senses the end torque at 1 s is
613.6 N m (788.1 N m before), tensions within 5e-7. No example uses
TURBINES rows.
Gates:
- tests/test_two_moving_ends: a held Coupled End B writes the Fixed End B's
files byte for byte (also at a 37 deg chord heading and in the modes); a
symmetric cable whose ends move apart stays mirror-symmetric (4e-11 m); a
rigid translation keeps the end loads (4e-5 N of 1.6e4 N); End B driven
equals the reversed line driven at End A (1e-3 N; turning clamped End B
2e-5 N, 4e-7 N m); equal rolls keep the torque (3e-6 N m), opposite rolls
change it by GJ (2 phi)/L (5e-6 N m); restarts bit-identical; FAST.Farm
aggregate vs standalone: shared line 7e-3 N of 1.9e4 N, yawed turbines with
torsion 7.6e-9, rolling turbines 3.4e-8 in every channel.
- tests/test_cable_between_bodies: two mirrored bodies stay mirror images
(monolithic clamped and staggered pinned, to the output precision); a body
joined to a 1e15 kg body equals the body-to-Fixed line of the established
route to 8e-9 (clamped, and twisted 90 deg); two free bodies with no
external load keep the total linear momentum to 3e-5 and the energy to
0.2 %; a 90 deg twist returns equal and opposite torques GJ Phi/L (sum
below 2e-10 N m); a moored pair starts balanced and stays at rest, its
connection moments turning it from the pinned pitch; the stiff unequal pair
converges forward and reversed to one equilibrium the still dynamics hold,
and with its passes limited fails closed naming the line; either direction
of a Fixed-point-to-rod-end cable gives the same output, and an End B on a
fixed rod's end is the Fixed End B; a body-to-rod-end cable runs; refusals
name their cause (the staggered torsion End A included).
- tests/test_mixed_route_torsion gate 8: a line twisted 90 deg between two
Coupled points beside a chain, both ends rolled by the roll column: rolled
oppositely the twist stays 90 deg exactly (torque GJ Phi/L to 3.4e-6 N m);
rolled equally 15 deg it is 90 - 2 roll to 5.0e-7 deg (4.7e-6 N m; the old
code 30 deg and 262 N m); End B's point listed first gives the same figures
(the old code refused the deck).
- tests/test_rod_end_torsion, python/tests/test_deck_native_parity: the End B
rod-end refusal and the shared staggered message.
- Python validator: mirrors the march's End B refusals, the staggered refusal
of a connected or torsional end at either end, and the two new torsion
refusals.
- C API and Python: host rotations at both end frames, the coupled layout
driven through the documented host recipe, the asLaid mirror.
Commits: the two-moving-ends commits rebased one by one, the three multibody
commits (a finite-EI line between two objects, its review fixes, the Python
mirror) as one with the torsion-route integration, then the Intel ifx #5151
continuation fix and the mixed-deck roll fix with gate 8.
Two fixes from the checked Debug CI job:
- `end_b_at_rest` no longer indexes `pdof_b` when End B is not driven
(Fortran does not short-circuit `moving_b .AND. .NOT. end_b_at_rest(...)`;
Release read a stray value it then discarded, Debug stopped on it).
- A rod numbered as a body is no longer one of the body's attachment points
(also in 0.3.0): a `Rod<N>A/B` end point keeps its rod's id where a
`Body<N>` point keeps its body's, and the body's point list took both. New
gate `body_rod_numbering`: the same deck with the arm rod numbered 1 and 3
now writes identical outputs; before, 200 of 203 rows differed (arm pitch
172 deg, body pitch 1.06 deg, a leg tension 3.0 kN in 1 s).
The 25 tests the Debug job failed and the new gate pass on a local checked
Debug build.
Full ctest (341/341) and pytest (python/tests and tests with the native
driver: 2179 passed, 75 skipped) pass; ruff check/format and mypy clean (the
three numpy-stub notes dev already has aside), pre-commit clean, docs build
with warnings as errors, no symbol both in a PUBLIC list and declared PUBLIC.
A/B against the reference driver: 53 of 53 examples byte-identical.
Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
"LINE 1 End B .NodeB, POINT 2, coupled. must be a Fixed .anchor. point;Workaround for this EI=0 line: split it into two lines that meet at a Connect point"
2698
2719
"cannot be split")
2699
-
# A finite-EI shared line cannot be split at a Connect point: that advice is not given.
2720
+
# A finite-EI line between two Coupled points has both ends driven: neither the End B refusal nor
2721
+
# the Connect-point split advice is given; as a static deck it asks for dtM and TMax.
"finite-EI LINE 1 End B .NodeB, POINT 2, coupled. must be a Fixed .anchor. point;A finite-EI line cannot be split at a Connect point either;anchor it on a Fixed point"
2702
-
"Workaround")
2723
+
"finite-EI section .EI>0. requires a dynamic deck with dtM and TMax"
"the deck current OPTION is not supported for a standalone mixed EI=0/finite-EI deck;runs the mooring in STILL WATER;couple the deck to OpenFAST .CompMooring = 5. with SeaState"
0 commit comments