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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ All notable changes to CableDyn are recorded in this file. The format follows
of the OWC rows. On the OWC the recovery differs from MoorDyn's, which interpolates the rows.
A table with a row steeper than the fast spring at the row's start stops with a named error.

- A single-section Syrope line was refused as slack where its chord strain lay below the zero-tension
strain of its `SYROPE IC` working curve, or its chord was shorter than the line, although its weight sags
it taut. It now starts as a composite line does, from the curve's alpha. Nine ropes from 39 kN to 236 kN
agree with an independent elastic catenary to 3.4e-6. A rope that carries no tension still stops with a
named error.

- A Syrope line whose rest tension is a small part of its past one (a `SYROPE IC` `Tmax0` well above the
installed tension, as of a polyester mooring line after a storm that loaded it) failed to start when its
static secants, far below the working curve's tangent along the whole line, did not settle in 50
Expand Down
7 changes: 4 additions & 3 deletions doc/driver_format.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,10 @@ and `BA = BA_s|BA_d`:
or `EXP`), `k1`, and `k2` rows as `value name`. `OWC` names the original-working-curve table,
resolved relative to the settings file: a `strain tension` table of at least two numeric rows.
- `BA_d` enters the slow-state rate; the physical damping contribution is `BA_s*d(eps_slow)/dt`.
- A Syrope type requires `EI = 0`. A Syrope line is either a single section, taut at
initialisation, or a composite line whose other sections are linear-elastic `EI = 0` sections (a
chain–polyester–chain mooring), with every Syrope element in tension at initialisation. It runs
- A Syrope type requires `EI = 0`. A Syrope line is either a single section or a composite line
whose other sections are linear-elastic `EI = 0` sections (a chain–polyester–chain mooring), with
every Syrope element in tension at initialisation: a line its weight sags taut starts even where
its chord is shorter than the line. It runs
on a dynamic deck (`dtM`/`TMax`) and takes the seabed, `bathymetryFile`, Morison loads, current,
waves, host fluid fields and VIV of any `EI = 0` line, and active line control of a Syrope
segment on the OpenFAST route ([CONTROL](#control-optional-openfast-line-control)).
Expand Down
10 changes: 5 additions & 5 deletions doc/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,11 @@ Model data
``EI = 0``.
* - ``a LINE TYPES BA entry cannot have more bar-separated values than its EA entry``
- write ``BA`` as one value for a plain EA and at most ``Bs|Bd`` for a viscoelastic EA.
* - ``a Syrope line does not support finite-EI bending`` / ``a Syrope line must be a single
section`` / ``must be taut at init`` / ``has no static output``
- a Syrope line is one ``EI = 0`` section, taut at initialisation, marched with
``dtM``/``TMax``; it takes the seabed, Morison loads, current, waves and host fluid of any
``EI = 0`` line. Adjust the model accordingly.
* - ``a Syrope line does not support finite-EI bending`` / ``is slack at init``
- a Syrope line has ``EI = 0`` and carries tension in every Syrope element at initialisation
(a chord shorter than the line is fine where its weight sags it taut). It takes the seabed,
Morison loads, current, waves and host fluid of any ``EI = 0`` line. Shorten the line or
raise the pretension.
* - ``Syrope alpha and beta ... must be positive`` / ``the Syrope BA column needs two parts`` /
``the Syrope settings file needs OWC, WCType, k1, and k2 rows``
- see the Syrope column rules in :doc:`driver_format`: ``EA = SYROPE:<file>|alpha|beta``
Expand Down
24 changes: 10 additions & 14 deletions src/CableDyn_DeckDriver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -11093,7 +11093,7 @@ END SUBROUTINE init_one_model

RECURSIVE SUBROUTINE init_one_syrope_model(types, ln, sections, points, l0, opts, model, ErrStat, ErrMsg, &
bathymetry)
!! Build one Syrope line model: a line of one or more Syrope sections, alone (taut at init) or
!! Build one Syrope line model: a line of one or more Syrope sections, alone or
!! between plain EI = 0 sections (a chain-polyester-chain mooring), with the seabed,
!! hydrodynamics and fluid fields of any EI = 0 line (init_one_model builds it). Builds each
!! Syrope section's working-curve constitutive from the parse-resolved OWC data and solves the
Expand All @@ -11111,7 +11111,8 @@ RECURSIVE SUBROUTINE init_one_syrope_model(types, ln, sections, points, l0, opts
!! from the mean off the curve, and their slow strains settled the line after the start: a
!! 991 m single-section rope at rest moved its fairlead tension by 3.4e-4 in 1 s). A
!! single-section line starts the iteration from the secant at the strain its taut geometry
!! fixes, a composite line from the curve's alpha. The tension, which the chains' weight and
!! fixes, a composite line, or a chord strain without tension on the rest curve (a line its
!! weight sags taut), from the curve's alpha. The tension, which the chains' weight and
!! the geometry largely fix, keeps this update a contraction where a strain update can
!! overshoot.
TYPE(DeckLineType), INTENT(IN) :: types(:)
Expand Down Expand Up @@ -11230,10 +11231,9 @@ RECURSIVE SUBROUTINE init_one_syrope_model(types, ln, sections, points, l0, opts
! OWC secant EA that makes the static solve land at that strain
total_l0 = SUM(l0)
eps0 = NORM2(fairlead - anchor)/total_l0 - CD_ONE
IF (.NOT. (eps0 > CD_ZERO)) THEN
CALL release_syrope(.TRUE.)
CALL fail(ErrStat, ErrMsg, 'a Syrope line must be taut at init (stretched length > unstretched)'); RETURN
END IF
END IF
! (a chord shorter than the line starts from the curve's alpha below, as a composite line)
IF (.NOT. composite .AND. eps0 > CD_ZERO) THEN
! the OWC table must cover the initial strain: the interpolation would clamp at
! the end rows and the line would start silently mis-tensioned
IF (.NOT. strain_in_table(1, eps0)) THEN
Expand All @@ -11245,16 +11245,12 @@ RECURSIVE SUBROUTINE init_one_syrope_model(types, ln, sections, points, l0, opts
CALL release_syrope(.TRUE.)
CALL fail(ErrStat, ErrMsg, 'SYROPE IC working curve: '//TRIM(em)); RETURN
END IF
IF (.NOT. (t_ref > CD_ZERO)) THEN
WRITE (s_eps, '(ES10.3)') eps0
CALL release_syrope(.TRUE.)
CALL fail(ErrStat, ErrMsg, 'the Syrope line is slack on its SYROPE IC working curve: the initial '// &
'strain '//TRIM(ADJUSTL(s_eps))//' is below the zero-tension strain of the Tmax0 curve; '// &
'lower Tmax0 or shorten the line'); RETURN
END IF
secant = t_ref/eps0
sec_el = secant
ELSE
END IF
! A chord strain below the rest curve's zero-tension strain is not a slack line: the sag of its
! weight stretches it further. The start is then a composite line's.
IF (.NOT. (secant > CD_ZERO)) THEN
! a first solve with each Syrope element at its placeholder stiffness (the working curve's
! alpha); the tension update below takes it to the curve
DO e = 1, ne
Expand Down
39 changes: 33 additions & 6 deletions tests/test_syrope_composite.f90
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ PROGRAM test_syrope_composite
!! 9. A long inclined single-section rope (60 elements, 644 m) whose rest tension is a small part
!! of its past one on a linear working curve: the secants are a fifth and less of the
!! tangent along the whole line, where the element steps alone ran out of iterations.
!! 10. The same rope where its chord strain lies below the zero-tension strain of the past
!! tension's curve, or the chord is shorter than the rope: the weight sags it taut, and its
!! tensions are those of an elastic catenary (Python, 60 chords on the same rest curve).
!! A weightless rope there carries nothing and stops with a named error.
USE CableDyn_Precision, ONLY: wp
USE CableDyn_DeckDriver, ONLY: CD_Init_Deck_Models, CD_Run_Deck_Driver, CD_DECKDRV_OK
USE CableDyn_Model, ONLY: CD_ModelType, CD_End_Model, CD_Get_Model_Tension
Expand Down Expand Up @@ -143,6 +147,12 @@ PROGRAM test_syrope_composite
CALL long_rope(2.83e6_wp)
CALL long_rope(2.86e6_wp)
CALL long_rope(2.89e6_wp)
! 10. a chord strain below the curve's zero-tension strain, and a chord shorter than the rope
CALL long_rope(3.5e6_wp, 643.7681_wp, [1.2200562146866004e5_wp, 1.2979380872515342e5_wp])
CALL long_rope(4.5e6_wp, 643.7681_wp, [7.975073758336593e4_wp, 8.752111037376584e4_wp])
CALL long_rope(2.83e6_wp, 660.0_wp, [4.757422030236737e4_wp, 5.620254324506163e4_wp])
CALL long_rope(1.8e6_wp, 665.0_wp, [4.807701264159228e4_wp, 5.676431216195525e4_wp])
CALL long_rope(3.5e6_wp, 643.7681_wp, mass='16.926')

CALL finish()

Expand Down Expand Up @@ -255,11 +265,14 @@ SUBROUTINE taut_rope(span, mass, what, tmax0)
IF (PRESENT(tmax0)) CALL CD_Syrope_End(td)
END SUBROUTINE taut_rope

SUBROUTINE long_rope(tmax0)
SUBROUTINE long_rope(tmax0, length, catenary, mass)
!! A 643.77 m polyester rope between an anchor at 700 m and a fairlead at 58 m radius in 150 m of
!! water, on the linear working curve (slope 156 MN) of a past tension tmax0: every element
!! lands on that curve.
!! lands on that curve. With length (the seabed then out of reach) the extreme tensions are
!! catenary's; with mass (a weightless rope) the line stops by name.
REAL(wp), INTENT(IN) :: tmax0
REAL(wp), INTENT(IN), OPTIONAL :: length, catenary(2)
CHARACTER(*), INTENT(IN), OPTIONAL :: mass
INTEGER, PARAMETER :: NR = 4, NE = 60
! an original working curve of 12 MN breaking strength (strain, tension)
REAL(wp), PARAMETER :: R_EPS(NR) = [0.0_wp, 0.010_wp, 0.037_wp, 0.080_wp]
Expand All @@ -268,7 +281,7 @@ SUBROUTINE long_rope(tmax0)
TYPE(CD_SyropeType) :: td
REAL(wp) :: ten(NE), eps_k, wst, tcurve
INTEGER :: u, k
CHARACTER(32) :: s_tmax0
CHARACTER(32) :: s_tmax0, s_len, s_mass
OPEN (NEWUNIT=u, FILE='csyr_long_owc.dat', STATUS='REPLACE', ACTION='WRITE')
WRITE (u, '(A)') 'Strain Tension'
WRITE (u, '(A)') '(-) (N)'
Expand All @@ -283,12 +296,17 @@ SUBROUTINE long_rope(tmax0)
WRITE (u, '(A)') '0.0 k2 - unused'
CLOSE (u)
WRITE (s_tmax0, '(ES23.16)') tmax0
s_len = '643.7681'
IF (PRESENT(length)) WRITE (s_len, '(F10.4)') length
s_mass = '23.0'
IF (PRESENT(mass)) s_mass = mass
OPEN (NEWUNIT=u, FILE='csyr_long.dat', STATUS='REPLACE', ACTION='WRITE')
WRITE (u, '(A)') 'long single-section Syrope test deck'
WRITE (u, '(A)') '--- LINE TYPES ---'
WRITE (u, '(A)') 'Name Diam Mass EA BA EI Cdn Cdt Can Cat'
WRITE (u, '(A)') '(-) (m) (kg/m) (N) (-) (Nm2) (-) (-) (-) (-)'
WRITE (u, '(A)') 'rope 0.145 23.0 "SYROPE:csyr_long_settings.dat|2.22e8|33.0" 2.952e9|1.0e5 0.0 1.2 0.2 1.0 0.0'
WRITE (u, '(A)') 'rope 0.145 '//TRIM(s_mass)//' "SYROPE:csyr_long_settings.dat|2.22e8|33.0" '// &
'2.952e9|1.0e5 0.0 1.2 0.2 1.0 0.0'
WRITE (u, '(A)') '--- POINTS ---'
WRITE (u, '(A)') 'ID Type X Y Z Mass Vol CdA Ca'
WRITE (u, '(A)') '(-) (-) (m) (m) (m) (kg) (m3) (m2) (-)'
Expand All @@ -305,16 +323,22 @@ SUBROUTINE long_rope(tmax0)
WRITE (u, '(A)') '--- SECTIONS ---'
WRITE (u, '(A)') 'LineID LineType Length NumSegs'
WRITE (u, '(A)') '(-) (-) (m) (-)'
WRITE (u, '(A)') '1 rope 643.7681 60'
WRITE (u, '(A)') '1 rope '//TRIM(ADJUSTL(s_len))//' 60'
WRITE (u, '(A)') '--- OPTIONS ---'
WRITE (u, '(A)') '9.80665 g'
WRITE (u, '(A)') '1025.0 rhoW'
WRITE (u, '(A)') '150.0 WtrDpth'
WRITE (u, '(A)') MERGE('600.0 WtrDpth', '150.0 WtrDpth', PRESENT(length))
WRITE (u, '(A)') '--- OUTPUTS ---'
WRITE (u, '(A)') 'FairTen1'
WRITE (u, '(A)') '--- end ---'
CLOSE (u)
CALL CD_Init_Deck_Models('csyr_long.dat', ml, es, em)
IF (PRESENT(mass)) THEN
CALL require(es /= CD_DECKDRV_OK .AND. (INDEX(em, 'slack at init') > 0 .OR. INDEX(em, 'did not converge') > 0 .OR. &
INDEX(em, 'static solve failed') > 0), &
'a weightless slack rope stops by name: '//TRIM(em))
RETURN
END IF
CALL require(es == CD_DECKDRV_OK, 'the long rope of Tmax0 '//TRIM(ADJUSTL(s_tmax0))//' N builds: '//TRIM(em))
IF (es /= CD_DECKDRV_OK) RETURN
CALL CD_Syrope_Init(td, R_EPS, R_TEN, CD_SYROPE_WC_LINEAR, 1.56e8_wp, 0.0_wp, 2.22e8_wp, 33.0_wp, &
Expand All @@ -332,6 +356,9 @@ SUBROUTINE long_rope(tmax0)
PRINT '(A,ES10.3,A,ES12.5,A,ES12.5,A,ES10.3)', ' long rope, Tmax0 ', tmax0, ': tensions ', MINVAL(ten), &
' to ', MAXVAL(ten), ' N, elements off their rest curve by at most ', wst
CALL require(wst <= 1.0e-8_wp, 'every element of the long rope sits on its Tmax0 working curve')
IF (PRESENT(catenary)) CALL require(ABS(MINVAL(ten) - catenary(1)) <= 1.0e-5_wp*catenary(1) .AND. &
ABS(MAXVAL(ten) - catenary(2)) <= 1.0e-5_wp*catenary(2), &
'the sagging rope has the tensions of the elastic catenary')
END ASSOCIATE
CALL CD_End_Model(ml(1), es, em)
CALL CD_Syrope_End(td)
Expand Down
Loading