OpenFAST with CompMooring = 5

This page is the reference for running CableDyn inside OpenFAST, maintained by NLR (National Laboratory of the Rockies, formerly NREL). For a step-by-step first run of the IEA-15MW VolturnUS-S model with the release executable, follow Tutorial 9 — A floating wind turbine in OpenFAST. Every CableDyn keyword, its default, and whether OpenFAST or the deck owns it are listed in OPTIONS reference and defaults; units, frames, signs, and the tension and angle definitions are in Conventions.

CableDyn is statically linked into the CableDyn-enabled openfast.exe (OpenFAST v5.0.0). There is no DLL to copy and no second process: OpenFAST calls the module in memory and exchanges platform motion, line loads, SeaState fields, checkpoints, and linearisation data through its normal glue code. A stock OpenFAST executable does not recognise CompMooring = 5; use the executable from the CableDyn release or build the integration from integration/openfast/ (Coupling: OpenFAST and CFD). Stock MoorDyn (CompMooring = 3) remains available in the same binary.

Required files

A coupled case contains:

  • the CableDyn-enabled openfast.exe;

  • the top-level .fst and every turbine sub-model it references (ElastoDyn, SeaState, HydroDyn and its WAMIT data, AeroDyn, InflowWind, ServoDyn, …);

  • one CableDyn MooringFile deck, plus any file that deck references (WaterKin, bathymetry, Syrope settings); and

  • a controller DLL such as DISCON.dll only if the selected ServoDyn input names one. It belongs to the turbine model, not to CableDyn.

Relative paths inside the .fst are resolved by OpenFAST from the .fst folder; paths inside the CableDyn deck are resolved from the deck’s folder.

Configure the .fst

      5   CompMooring     - {0=None; 1=MAP++; 2=FEAMooring; 3=MoorDyn; 4=OrcaFlex; 5=CableDyn}
"CableDyn_UMaine.dat"  MooringFile

CompMooring = 3 with a MoorDyn file selects stock MoorDyn instead; nothing else in the model has to change for an A/B comparison.

What OpenFAST owns and what the deck owns

Owner

Quantities

OpenFAST

TMax, glue step DT, TStart, DT_Out, output format; gravity, water density, and flat water depth (they override the deck values before statics); platform position, velocity, and acceleration; the SeaState wave and current field

CableDyn deck

line types, points, lines, sections, end connections, seabed contact (kBot, cBot, frictionMu, optional bathymetryFile), solver settings, rhoInf, dtM, WaterKin source selection, and the OUTPUTS list

motionFile and deck waves and wavetrain OPTIONS are rejected in a coupled deck, because the host supplies motion and waves. A deck current is kept as a steady current only on a single-turbine, pure EI = 0 deck without Rigid6 bodies or rods when SeaState carries no waves or current; it is rejected when SeaState carries waves or current, in FAST.Farm, and on a deck with finite-EI cables, Rigid6 bodies or rods. On a pure EI = 0 deck without Rigid6 bodies or rods, a depth-dependent current from a WaterKin CurrentMod 1 table combines with the SeaState field (see Fluid source). Coupled (or Vessel) points are fairleads given in platform axes; Fixed points are anchors in global axes.

Time step

DT is the OpenFAST glue step; dtM is CableDyn’s committed step. With no deck dtM, CableDyn solves every glue step (dtM = DT). A deck dtM that is a whole multiple of DT solves once per that many glue steps, which is faster. Between commits the coupled loads are extrapolated from the last two commits (deck OPTIONS predictLoads, the default) or, with predictLoads False, held at the last commit, which delays them (see the note below). The console reports the result, for example CableDyn time step dtM = 2.50000E-02 s (1 x glue DT; deck dtM); in FAST.Farm the coupling step is the farm’s mooring step DT_Mooring, and the line reads 1 x FAST.Farm DT_Mooring. A deck dtM larger than DT but not a whole multiple of it is never coarsened: CableDyn uses the largest multiple of DT that does not exceed it and reports a warning with both values (dtM = 0.025 with DT = 0.01 runs at 0.02 s), matching MoorDyn, which only ever shortens its step to fit the coupling interval. A deck dtM below DT (typical of MoorDyn decks written for explicit integration) runs at dtM = DT, reported on the console. TMax must end on a commit boundary. For fatigue, snap, contact, or local finite-EI response compare at least two dtM values (for example 0.1, 0.05, and 0.025 s) and demonstrate convergence of ranges, peaks, and damage. If CableDyn needs a smaller step than the glue step, reduce DT as well. DT_Out changes only the sampling of the main OpenFAST table.

Note

With dtM larger than DT, the loads CableDyn returns at a glue step a fraction \(\tau = (t - t_c)/\mathrm{dtM}\) past its last commit \(t_c\) are extrapolated from that commit and the one before, \(F = F_c + \tau\,(F_c - F_p)\). Their error is of second order in dtM (\(\tau(1+\tau)\,\mathrm{dtM}^2 \ddot F/2\)). Held instead (predictLoads False), the platform receives the mooring load on average half a dtM late, and a spring force delayed this way acts on the platform as a negative damping of about the mooring stiffness times dtM/2.

On the IEA-15 MW VolturnUS-S in a turbulent 600 s DLC-1.6 environment at dtM = 0.1 s (four glue steps of 0.025 s), the platform surge, sway, roll and pitch time series differ from the dtM = DT run by at most 0.12 % of their standard deviation with the extrapolation, on the chain mooring as on the chain and power-cable mooring, where the held loads give up to 0.42 %. The chain-only run took a fifth less time (116 s against 141 s for dtM = DT on the same machine). Over a one-hour run in the same environment the fairlead and anchor tension statistics stay within 0.16 % and their fatigue damage-equivalent loads within 1.5 % (see CableDyn verification and validation). In the three-seed DLC-1.1 comparison of CableDyn verification and validation, made with held loads, the platform motions with dtM above DT agree with MoorDyn within 0.6 % in mean and standard deviation, but the fairlead tension’s standard deviation differs by about 3 % from CableDyn’s own solution at every glue step.

The extrapolation does not change how the lines themselves are integrated: each line still steps on dtM, so its own resolution (see the dtM advisory in Modelling workflow) decides its tension accuracy, and the output channels and the .CD.out record the committed samples. For stiff taut, semi-taut or tension-leg moorings, and for any fatigue or tension-range result, check a smaller dtM (down to dtM = DT) before relying on it.

Fluid source

With no WaterKin policy (0 WaterKin, the default), CableDyn samples the complete enabled SeaState wave and current field at its line nodes and refreshes it every CableDyn step, at the end of the step and at the nodes’ positions then: their positions at the last committed step advanced by their velocity (from their last two committed positions). A WaterKin file can select file waves, a file depth-dependent current, host waves, or host current independently where the field is separable. Unsupported or double-counted combinations fail during initialisation. The selector matrix is in OPTIONS reference and defaults and Deck format reference (.dat).

The static start includes the steady SeaState current. With CurrMod = 1 and the host current in use, CableDyn evaluates that current at the levels of SeaState’s vertical wave grid and solves the equilibrium of every line, cable, point and body in it. A run therefore starts where a standalone deck with the same current starts, not from the still-water shape. The profile is linear in depth between the grid levels, so the start agrees with the first step’s current at the levels and very nearly between them. A deck on SEASTATE_SPECTRAL, whose steps take the current at each node’s depth rather than between the grid levels, starts in the profile itself: CableDyn samples it at levels dense enough that the start does not depend on the grid (a hull-only grid with NZ = 2 would otherwise give it a straight line from the seabed to the surface). The dynamics then take the SeaState field alone, and the current is not counted twice. Waves act from t = 0. A CurrMod = 2 current or an InflowWind current field is known only through the run’s samples: the start is then the still-water equilibrium, and the console says so.

SeaState grid

SeaState computes the wave and current kinematics on a grid set in its input file and interpolates them at the line nodes: X_HalfWidth and Y_HalfWidth about the origin, Z_Depth below the still-water level, and NX, NY, NZ grid points (NZ is spaced more finely near the surface). A node outside the grid gets the kinematics of the nearest grid boundary point, so its fluid load is wrong: beyond a half-width the waves are out of phase, and below Z_Depth the wave and current kinematics are those of the grid bottom, which are too strong. A SeaState file written for the platform alone usually covers only the platform. The r-test MD_Shared file used in Tutorial 9 — A floating wind turbine in OpenFAST has X_HalfWidth = Y_HalfWidth = 100 m, Z_Depth = 40 m and NZ = 2, while the anchors lie 838 m from the platform on a 200 m seabed. Size the grid for the lines:

  • X_HalfWidth and Y_HalfWidth beyond the farthest anchor or cable end, with margin for the platform offset;

  • Z_Depth equal to the water depth ("default"); nodes on the seabed are then inside the grid; and

  • NX, NY and NZ raised with the extents to keep the grid spacing: a horizontal spacing of about a tenth of the peak wavelength or less. A long-crested sea (WaveDirMod = 0) that travels along x (WaveDir 0° or 180°) does not vary in y, so NY = 2 is enough for it, and NX = 2 for one along y (90° or 270°). Any other sea, a long-crested one at another heading or a short-crested one, varies along both axes and needs both resolved.

SeaState holds the whole time history of the grid in memory, so memory and initialisation time grow with (2 NX − 1)(2 NY − 1) NZ WaveTMax / WaveDT. For the IEA-15MW case of Tutorial 9 — A floating wind turbine in OpenFAST (Hs 6 m, Tp 12 s, WaveTMax = 4800 s, WaveDT = 0.2 s), X_HalfWidth = Y_HalfWidth = 900, the default Z_Depth, NX = 37 (25 m spacing), NY = 2 and NZ = 11 needs about 4.6 GB. Halving the spacing (NX = 73) or using NZ = 16 changes the 10–70 s platform and fairlead-tension statistics by less than 0.1 %. The MD_Shared grid gives a line-1 fairlead tension standard deviation 18 % too high (0.136 MN instead of 0.115 MN).

CableDyn compares its nodes with the grid at the static equilibrium and at every CableDyn step, and by default (OPTIONS waveGridCheck error) stops the run at the first step that finds a node outside it, at initialisation for the MD_Shared grid:

CableDyn mooring module: 147 of the 153 CableDyn sampling nodes in the water lie outside the
SeaState wave-kinematics grid at t = 0 s, where SeaState would give them the kinematics of the
grid boundary, which are not physical there. By line: line 1, 49 nodes, deepest at (x, y, z) =
(-735.56, 0, -200.01) m, shallowest at (x, y, z) = (-77.518, 0, -41.866) m, weighted velocity
ratio 0.19 at the shallowest node; line 2, 49 nodes, deepest at (x, y, z) = (367.78, 637.01,
-200.01) m, shallowest at (x, y, z) = (38.759, 67.132, -41.866) m, weighted velocity ratio 0.19 at
the shallowest node; line 3, ... . Farthest: x = -837.6 m (grid |x| <= X_HalfWidth = 100 m);
y = 725.38 m (grid |y| <= Y_HalfWidth = 100 m); z = -200.01 m (grid z >= -Z_Depth = -40 m). In the
SeaState input file enlarge X_HalfWidth, Y_HalfWidth and Z_Depth (Z_Depth at most WtrDpth +
MSL2SWL, its default) to cover the lines with margin for their motion, and raise NX, NY and NZ to
keep the grid spacing. To run on with those kinematics, set waveGridCheck warn in the OPTIONS of
the CableDyn deck.

The message gives the time and, line by line, the number of nodes outside the grid with the deepest and the shallowest of them, and the weighted velocity ratio at the shallowest: the rms wave velocity there over that at the surface (Provenance record), which says how much the wrong kinematics of those nodes can matter. A node that leaves the grid during the run, as a line swings out with the platform, stops the run at that step. With waveGridCheck warn the message is a warning, given once per run (a restart from a checkpoint does not repeat it), and the run continues with the boundary kinematics at those nodes; the check goes on at every step for the provenance record (Provenance record).

At initialisation CableDyn also checks the grid against the directions of the sea. A grid with NX = 2 or NY = 2 has three points along that axis, X_HalfWidth (or Y_HalfWidth) apart, and SeaState interpolates the kinematics across the axis between them. That is exact only for waves that do not vary along the axis: NY = 2 for a long-crested sea along x and NX = 2 for one along y, each within 1e-4°. Under any other sea, when the lines sample the grid in the water at all, the run stops by default:

CableDyn mooring module: the SeaState wave-kinematics grid has NY = 2 (3 points 900 m apart in y)
under long-crested waves at 30 deg, which vary along that axis: SeaState interpolates them
between the three grid points, over distances that are a large part of a wavelength or more,
for the hull members and for the lines, which sample the grid in the water at 153 CableDyn
nodes. By line: line 1, 51 nodes, deepest at (x, y, z) = (-735.56, 0, -200.01) m, shallowest at
(x, y, z) = (-58, 0, -14) m; line 2, ... ; line 3, ... . A grid with NY = 2 represents only
waves along x (0 or 180 deg) and one with NX = 2 only waves along y (90 or 270 deg), within
1e-4 deg; in the SeaState input file raise the count so that the spacing resolves the shortest
wavelength that matters at the lines (a tenth of it or finer). To run on with the interpolated
kinematics, set waveGridCheck warn in the OPTIONS of the CableDyn deck.

The directions are those of SeaState’s wave components (the spread of WaveDirMod = 1, the component directions of WaveMod = 7). Externally supplied kinematics (WaveMod = 6) have no components, and SeaState does not use WaveDir in that mode, so there the supplied WaveVel and WaveAcc are compared across the three grid points of the coarse axis: the check stops the run when they differ by more than 1e-5 of their largest magnitude, and passes a field that is the same at every point along that axis (waves along the other axis). A line lying on a grid line across the coarse axis, such as one along y = 0, is no exception: a node off it by a small part of the half-width is already wrong in phase, and the sea sways the line off it. The hull’s Morison members read the same grid, so their kinematics are interpolated across the axis too. waveGridCheck warn turns this check into a warning.

Only nodes in the water are checked: a node above the free surface carries no fluid load, whatever kinematics SeaState would give it, so a suspended cable or jumper above the water may leave the grid. A node counts as in the water at or below the free-surface elevation sampled for it, which also decides its wetting in CableDyn (the still-water level when the host waves are off), and, without wave stretching (WaveStMod = 0), at or below the still-water level, above which SeaState gives zero kinematics without reading the grid. Only the directions in which nodes leave the grid are listed. Waves are checked in all three directions and a SeaState current (uniform in x and y) only in depth; under Wheeler stretching (WaveStMod = 3) the depth checked is the one SeaState interpolates at, the node depth mapped linearly from the range between the seabed and the local wave elevation onto the range between the seabed and the still-water level (with the elevation SeaState sampled, also when only the host current is used). A dynamic current field (an InflowWind-driven current) is read on its own grid; when that field is gridded, a separate one-time warning reports nodes outside its vertical extent or lateral half-width. SeaState measures its field from the still-water level, and the mooring samples it at positions relative to the mean sea level, so a run with host waves or current from SeaState refuses a nonzero MSL2SWL at initialisation (a deck that takes both from WaterKin does not query SeaState and is not affected). Excursions smaller than 1 % of the grid spacing at the boundary are ignored, and so are nodes below a grid that reaches the seabed (Z_Depth = WtrDpth + MSL2SWL): they are in the seabed, where the kinematics of the grid bottom are the right ones. FAST.Farm runs, which use still water, and SeaState fields without waves or current are not checked.

SeaState’s cosine depth grid is coarsest at the bottom: its deepest interval is Z_Depth*sin(pi/(2*(NZ - 1))), about 22 m at 200 m depth with NZ = 15, and the field falls linearly across it to the seabed, so near the seabed it differs from a deck depth table; when that interval exceeds 5 % of the depth (NZ below 33) and a line lies in it, an initialisation note states the interval and the NZ that would bring it under 5 %.

Wave kinematics at the nodes (SEASTATE_SPECTRAL)

SEASTATE_SPECTRAL WaterKin in the deck’s OPTIONS takes SeaState’s own first-order wave components and evaluates them at the line nodes, so the lines need no grid at all: no grid has to reach the anchors, and a sea at any heading, long- or short-crested, costs the same. At a grid vertex and a wave step the values equal SeaState’s grid to the round-off of its single-precision FFT; between the vertices they are the sums of the components themselves, where the grid interpolates, less the components each node may drop under waveKinTol. SEASTATE (or SEASTATE_GRID) and a deck without a WaterKin row keep the grid. The formulas, the time interpolation and the truncation are in SeaState waves at the nodes (OpenFAST).

  • Grid for the hull. HydroDyn’s Morison members still read SeaState’s grid, which SeaState allocates as its input file asks. Shrink it to the hull: half-widths covering the members with margin for the platform motion, and a spacing of a tenth of the shortest wavelength that matters at the members or finer (SeaState’s cubic interpolation keeps 99.6 % of the amplitude there). With a coarse hull grid the lines are exact while the hull is interpolated, so the two can disagree for reasons that are not errors. The wave-grid checks (waveGridCheck) apply to the lines on the grid route only.

  • Time. Each node evaluates the components at the two wave steps (SeaState’s WaveDT) around the sample time, once per wave step, at its position advanced to the middle of the step, and interpolates by cubic Hermite polynomials with the exact time derivatives in between.

  • Truncation. waveKinTol (default 1e-6; 0 keeps every component) bounds the velocity and the acceleration variance each node drops, each relative to its own total at the node’s depth, at every depth the node reaches. Deep nodes keep the few long waves that reach them. The initialisation prints the range of components kept and the largest dropped variances, and writes them per node to <root>.CD.wavekin.out. Under Wheeler stretching (WaveStMod = 3) the elevation, which sets the depth a node’s kinematics are evaluated at, keeps the short waves a node drops from its kinematics whenever they move that depth enough to matter, by the same tolerance (SeaState waves at the nodes (OpenFAST)).

  • Cost. A node sums its kept components at both ends of each wave step. For a one-hour sea of 2407 components (WaveDT = 0.2 s, Tp 7.65 s) at 600 nodes on three catenaries and a cable in 200 m of water, the nodes keep 420 components on average at the default waveKinTol (360 at 1e-4: a deep node keeps the long waves that reach it, a node near the surface nearly all) and the sums take about 80 s on one core (gfortran, baseline x86-64 build), some 6 % of a one-hour coupled run of 20 to 25 minutes; the time interpolation between the wave steps adds 2 % to that. Keeping every component (waveKinTol = 0) takes about 510 s.

  • Current. SeaState’s steady current (CurrMod = 1) is evaluated at the node from its profile where SeaState’s sampler would read it (the Wheeler depth under Wheeler stretching, the still-water level above it under vertical or extrapolation stretching); a dynamic current field is read as SeaState reads it. A WaterKin CurrentMod 1 table is added as on the grid route.

  • Not supported (the run stops at initialisation and names SEASTATE_GRID): second-order wave kinematics (WvDiffQTF, WvSumQTF), WaveMod = 6 (kinematics read from files), wave-current interaction (WvCrntMod 1 or 2), SeaState’s user current (CurrMod = 2), a WaveTimeShift, and the C API, whose host supplies the kinematics itself. FAST.Farm’s Mod_WaveField = 2 needs nothing further: SeaState shifts the phases of its components for each turbine before the grid and the node-wise sums use them.

  • Restart and linearisation. A checkpoint carries each node’s values for its wave step, so a restarted run continues as the uninterrupted one. SeaState linearises only in still water, where the route has nothing to evaluate.

Checking a case before it runs, and its logs after

integration/openfast/cabledyn_preflight.py <case.fst> (Python, standard library only) reads the .fst, its SeaState and HydroDyn files and the CableDyn deck, and reports before the run:

  • whether the end points of every line and the hull’s Morison joints lie inside the SeaState grid, with a margin for the platform motion (--margin, 20 m by default);

  • whether the grid has NX or NY = 2 under a sea that varies along that axis (the wave-grid guard stops such a run), and, for the shortest wavelength that matters (the highest frequency from WvLowCOff to WvHiCOff, the band SeaState keeps, whose spectral density is at least 1 % of the peak in that band), how much of its amplitude the grid keeps midway between grid points along each axis, and the same at the peak period, which shows what most of the wave energy keeps;

  • the memory SeaState stores for its grid and its start-up peak;

  • whether SEASTATE_SPECTRAL can take the case, and, for that route, a hull-only grid: the hull’s Morison joints plus the margin, at a tenth of the shortest wavelength at the deepest joint, with its memory. Without Morison members the hull reads no grid (the WAMIT excitation with ExctnDisp = 0 is built from the wave components) and the smallest grid serves.

It reads the files as CableDyn and OpenFAST do: an OpenFAST value from either of the first two words of its row, without regard to case; the deck’s sections under CableDyn’s names, its options under either spelling with the last row winning, and a WaterKin file for what the lines take from SeaState (the guard checks only that); SeaState’s rules for a short-crested sea and for WvCrntMod without a current; the component directions of WaveMod = 7 and, for WaveMod = 6, the supplied kinematics themselves (up to 256 MB; larger data are judged by CableDyn at initialisation). It also stops on what fails CableDyn’s initialisation whatever the grid: a nonzero MSL2SWL or a SeaState WtrDpth other than the .fst’s with SeaState waves or current. It exits with 1 when the run would stop, 2 when a file cannot be read or the case is not a CableDyn one. The check uses the line end points (a Body point at its body’s position plus its offset; an end above the still-water level carries no fluid load and is left out), so a line’s sag between them is judged by its deeper end; the guard in the run tests every node at every step.

Memory. SeaState stores, for each of the NStepWave + 1 wave steps (NStepWave is WaveTMax/WaveDT rounded up to an even number), at each of the (2 NX − 1)(2 NY − 1) NZ grid points, the velocity and acceleration (3 values each) and the dynamic pressure, three more values with MacCamy-Fuchs (MCFD > 0), and at each of the (2 NX − 1)(2 NY − 1) surface points the elevation, the seven extrapolation derivatives with WaveStMod = 2, and the elevation spectrum (2 (NStepWave/2 + 1) values), all in single precision (4 bytes). Its peak while it builds the grid is about 3 times the stored arrays: the slope of the measured peak working set against the stored arrays of four grids of 21 MB to 270 MB is 2.95 (gfortran build of OpenFAST 2895884). Several runs started together can therefore need three times their steady memory at once.

integration/openfast/cabledyn_logscan.py <logs or folders> reads OpenFAST logs (*.log in a folder) and reports for each run its wave route, whether it ended normally or stopped, and per line the guard’s findings; it reads the provenance record of the same run (Provenance record), which under waveGridCheck warn covers the whole run where the log shows only the first warning: the record named after the log (run.log and run.CD.provenance.json), else the only record in the log’s folder unless another log there is named after it. --csv writes one row per run and line, with the weighted velocity ratio of each line that left the grid. It exits with 1 on a guard finding and with 2 when no log could be read (a missing or unreadable path is reported and skipped).

Run and confirm

C:\CableDyn\openfast.exe IEA-15-UMaine_CompMooring5_CableDyn.fst
if ($LASTEXITCODE -ne 0) { throw "OpenFAST failed with $LASTEXITCODE" }

Before trusting a run, confirm in the console:

  1. Running CableDyn (v0.4.3, ...) and Parsing CableDyn input file: <deck>;

  2. the dtM line and the model inventory (Created CableDyn model: ... line object(s));

  3. for every line, the converged fairlead effective tension, force vector, inclination, declination, and azimuth at the static equilibrium — printed unconditionally, whether or not OUTPUTS is present — followed by the line’s static-initialisation notes, if any (Note: line ..., for example a folded EI = 0 layout; see Troubleshooting);

  4. Requested CableDyn OUTPUTS at t = 0 s, the deck’s channels in the first output row. With SeaState waves or current the header adds SeaState kinematics at t = 0: the equilibrium is solved in the steady current before the waves act, so a line-end tension at t = 0 can differ slightly from the equilibrium value above by the kinematic load on the end node. <root>.CD.static.out holds the equilibrium; and

  5. OpenFAST terminated normally.

The force is the load the line exerts on its End A (the fairlead), directed toward End B; the angle definitions are in Angles at line ends. A tutorial run with the full console text is in Tutorial 9 — A floating wind turbine in OpenFAST.

Output channels and files

CableDyn channels are selected in the deck’s OUTPUTS section, one quoted channel per row, closed by END — not in the .fst OutList:

--------------------------- OUTPUTS -------------------------------------------
"FairTen1"
"AnchTen1"
"FairIncl1"
"AnchIncl1"
END

The channel vocabulary (tensions, end angles, node tension, curvature, bend moment, position, velocity, acceleration, declination, azimuth, the touchdown point, and the anchor uplift channels AnchFz<L>, AnchFH<L> and TDP<L>Grd) and units are in Output files and channels.

File

Contents

<RootName>.out / .outb

the OpenFAST table at DT_Out, including the CableDyn channels (held between CableDyn commits). With TStart = 0 its first row equals the printed t = 0 OUTPUTS values.

<RootName>.CD.out

CableDyn-owned: the OUTPUTS channels at t = 0 and once per committed dtM solve, never repeated glue-rate values

<RootName>.CD.static.out

CableDyn-owned, always written: the static-equilibrium profile of every line, one row per node (arc length, coordinates, effective tension, curvature, bend moment, declination, inclination, azimuth), at the state of the printed line summary

<RootName>.CD.Line<L>.range.out

CableDyn-owned, for a line with the LINES Outputs flag r: the range graph, the minimum, maximum and mean at every node over the committed steps from RangeStart, written at the end of a run that completes (Output files and channels)

<RootName>.CD.rst.dat

temporary CableDyn-owned copy of the deck, written in the MooringFile folder only when a run restarts from a checkpoint (see Lifecycle features), and removed after use

With WrVTK > 0 OpenFAST writes its VTK visualisation files as usual, but CableDyn provides no mooring or cable meshes to them, and says so at initialisation: the lines do not appear in the VTK output. Use the node-position channels, the .CD.static.out profile or the Python snapshot tools (Python package) to view line geometry.

Example files

File (in examples/)

Purpose

openfast/IEA-15-UMaine_CompMooring5_CableDyn.fst

IEA-15MW UMaine VolturnUS-S template selecting CableDyn

openfast/CableDyn_UMaine.dat

three-line R4 chain mooring deck, dtM = DT

openfast/IEA-15-UMaine_CompMooring3_MoorDyn.fst + openfast/MoorDyn_UMaine.dat

the like-for-like stock-MoorDyn twin; SeaState WaterKin gives its lines the same SeaState wave kinematics CableDyn samples

iea15mw_umaine_mixed_cabledyn.dat

the three chains plus one finite-EI lazy-wave power cable with a grounded tail

iea15mw_umaine_openfast_cabledyn.dat

an alternative OpenFAST-only mooring deck for the same platform

The turbine sub-models are not part of this repository. Tutorial 9 — A floating wind turbine in OpenFAST gives the exact steps to fetch them from OpenFAST’s r-test (glue-codes/fast-farm/MD_Shared at revision dd5feaaaa500ba7283140107806300d551cff0a7), to reset that farm model’s turbine-1 initial pose to a single turbine at the origin, and to enlarge its SeaState grid to cover the moorings (see SeaState grid).

Mixed moorings and power cables

One deck may combine EI = 0 chains and finite-EI (EI > 0) power cables; each line uses its own element. In iea15mw_umaine_mixed_cabledyn.dat line 4 runs from a platform hang-off to a fixed termination on the 200 m seabed; its bare/buoyant/bare sections form the lazy wave and a grounded tail (149 of 249 nodes on the seabed at equilibrium). WtrDpth, kBot, cBot, and frictionMu define contact; a structured bathymetryFile may replace the flat floor. CableDyn finds touchdown during static initialisation. Inspect <RootName>.CD.static.out (curvature, grounded length, section transitions, minimum bend radius) before the time history.

Line-end bending connections

A finite-EI line may declare an END CONNECTIONS row at End A or End B. A numeric stiffness defines an isotropic rotational spring, Pinned leaves the tangent direction free, and Rigid enforces the declared direction while keeping the axial stretch free. At a coupled hang-off the declared direction is given in platform axes and follows the OpenFAST point-mesh orientation; its angular velocity and acceleration enter the implicit residual and tangent, and the connection moment is returned to OpenFAST. Fixed-end directions are global. A rigid direction reversal of exactly 180° in one host update is rejected, because the shortest rotation is not unique. Formal linearisation (Linearize = True) supports pinned and numeric-stiffness connections; a Rigid row fails during initialisation, because only the axial stretch of its end tangent is a degree of freedom (see Linearisation). Row grammar: Deck format reference (.dat).

Lines between two moving points

A finite-EI line may run between two host-driven points: both ends on Coupled/Vessel points, or in FAST.Farm between two Turbine<J> fairleads (a shared power cable between two floating turbines). Each end is a mesh point of its own: End A takes the line’s fairlead point, End B a second point placed after the fairleads of all finite-EI lines (in FAST.Farm on End B’s turbine), and the load and moment of each end return to its own host. End B’s connection direction and torsion frame are given in its parent’s axes and turn with its point-mesh orientation as End A’s do. The static initialisation is that of the same line with End B held at its position; PtfmInit (or the farm’s initial turbine displacements) places both ends. Formal linearisation of such a line fails during initialisation.

Line torsion

A finite-EI line restrained in torsion at both ends (END CONNECTIONS torsion columns, see Condensed torsion), or at one end with the other free to twist, runs coupled as it does standalone. A restrained End A frame is given in platform axes and turns with the OpenFAST point-mesh orientation, whatever the bending connection, so a platform roll, pitch or yaw about the line’s end direction twists the line (on a line free at End B it spins the line, whose torsional inertia loads the platform); a free End A transmits no torque, and the platform’s turn does not reach the line. The torque moment is returned to OpenFAST with the connection moment, the Torq<L>N<J> and Twist<L> channels are available, PtfmInit twists the line in the static initialisation, and the unwrapped twist is part of the checkpoint state. End B is a Fixed point or a second host-driven end whose frame turns with its own orientation (Lines between two moving points). Within one step the line may turn by more than 90° about its end direction, because the step is cut into substeps; an output probe moves the frame without a step, is limited to 90° from the committed twist, and stops by name beyond it (a restart first restores the checkpoint’s twist, so it is not limited this way). Formal linearisation takes the line’s twist angles as states and the platform rotation as an input (see Linearisation). The C API’s CableDyn_InitDeck/InitDeckAt move the line ends by translation only and refuse torsion columns; a C API host that initialises with CableDyn_InitDeckRotating passes its rotations (C API reference). The standalone driver runs a deck that mixes EI = 0 and finite-EI lines on the same aggregate, holding the line end frames or turning them with its vesselMotion, and imposing the twist of its motionFile roll column.

Lifecycle features

The same module takes part in OpenFAST’s checkpoint, linearisation, farm and control operations without an auxiliary process:

  • Checkpoint/restart serialises the committed line, constitutive, connection, body, and rod state needed to continue the trajectory, with the SeaState fields the committed step holds and, with dtM larger than DT, the loads of the solve before it (the load predictor), so a restart continues the run bit for bit at any dtM. The accumulated range graphs (LINES flag r) are part of it, so a restarted run writes the range files of an uninterrupted one. A checkpoint can fall on any glue step: ChkptTime need not be a multiple of dtM, and a run restarted between two commits goes on as the uninterrupted run. On restart the module writes a temporary deck copy, <RootName>.CD.rst.dat, beside the MooringFile, rebuilds the model from it and removes it; files the deck names (bathymetryFile, a WaterKin file, Syrope tables) resolve against the MooringFile folder as in the original run. Keep restart files with the exact executable and complete input set.

  • Linearisation differentiates the line dynamics at the committed state (Linearisation). Set dtM = DT and linearise at the initial operating point (CalcSteady = False, LinTimes = 0, platform at its still-water equilibrium, rotor speed and pitch at their steady values). Contact switching makes derivatives near touchdown non-smooth. OpenFAST writes the .lin matrices in the .fst OutFmt; to compare them with MoorDyn’s D - C A^-1 B, use a full-precision format such as "ES24.15E3", because the usual 4-digit format cannot resolve that reduction.

  • FAST.Farm selects CableDyn with Mod_SharedMooring = 5 for shared lines and connections. Gravity, water density, depth, and TMax are host-owned and must agree across turbines, otherwise initialisation fails.

  • Line failures detach a line end on a time or tension trigger and replay correctly after a restart. Verify the trigger and the post-failure topology in a dedicated case first.

  • Active tensioning maps ServoDyn CableDeltaL/CableDeltaLdot control onto the fairlead-side segment of EI = 0 lines and finite-EI cables, the segment at the line’s end on a host-driven point, or at the NodeB written in the deck when both or neither ends are (Deck format reference (.dat), CONTROL). A viscoelastic or Syrope polyester segment carries its slow stretch over the length change, as MoorDyn-F and MoorDyn-C do. On a finite-EI cable the command scales every cable element of that segment, and needs the force-blended generalised-α (the default); on a cable restrained in torsion the torsion follows the new lengths (Condensed torsion). On both kinds a command outside MoorDyn-F’s bounds, from minus half to plus one UnstrLen/N of the line (the controlled segment’s initial length on a line of one section), stops the run with a message that names the line, as it stops MoorDyn-F; so does a command that would make the controlled segment of a line of several sections non-positive. FAST.Farm decks reject CONTROL.

  • Rigid6 bodies, Point3 bodies, and rigid rods are translated at the deck boundary; their supported loads and restrictions in coupled runs are listed in Capabilities and route selection. Free Rigid6 bodies, free and pinned rods and pinned bodies start at their static equilibrium with the platform at PtfmInit (bodyIC static, the default), as in standalone runs; one that carries no line is not part of that solve and starts at rest in its deck pose. Coupled/Vessel rods are platform-borne: each is a node of the coupling mesh at its End A that follows the platform position and orientation and returns a force and a moment (MoorDyn-F’s coupled rod, including the rod’s own and added-mass inertia). CoupledPinned/VesselPinned rods are pinned to the platform: the node at End A follows the platform position only, the rod turns about it with its own rotation (the node orientation and angular rates are ignored), and the node returns a force with zero moment (MoorDyn-F’s coupled pinned rod). That force is the rod’s net load less its inertia, with the angular acceleration solved for the node’s current acceleration; a CalcOutput at an off-step acceleration therefore returns the rod’s effective inertia about the pin rather than its full mass (the rotation, the angular velocity and the held fluid stay those of the committed step). PtfmInit moves and turns such a rod with the platform before the static solve balances it about its pin. Pinned rods turn about a fixed End A. Coupled/Vessel bodies are platform-borne the same way as Coupled rods, with the node at the body reference point, and may share a deck with Free bodies. A deck carries bodies (Rigid6 or Point3) or rods, not both: the coupled march advances one of the two families, and a rod fixed to a body (RODS type Body<N> or Body<N>Pinned) counts as a rod, so such a deck stops at init (a coupled deck with both BODIES and RODS is not supported). MoorDyn (CompMooring = 3) in the same binary runs it, and so does the standalone driver’s multibody march when the deck has no CoupledPinned objects (those run in OpenFAST only). CoupledPinned/VesselPinned bodies are pinned to the platform like CoupledPinned rods: the node at the body reference point follows the platform position only, the body turns about it with its own three rotations (its inertia about the node, its weight and buoyancy at the centre of gravity, the node acceleration and the moments of its lines; MoorDyn-F’s coupled pinned body), and the node returns the body’s net load less its inertia, with zero moment, the angular acceleration again solved for the node’s current acceleration. PtfmInit moves and turns such a body with the platform before the static solve balances it about its node (MoorDyn-F’s driver keeps the deck orientation of a coupled pinned body: with bodyIC deck and a PtfmInit rotation the start poses differ). Its inertias Ixx/Iyy/Izz must be positive. Linearisation fails closed on decks with bodies. The force follows MoorDyn-F’s coupled pinned body with inertialF 1 (CableDyn always includes the inertia), with the differences given in Theory (the centripetal force of the structural mass only, the wetted buoyancy, the lines’ consistent end-node inertia).

Each is a separate qualification: a successful ordinary run does not qualify restart, linearisation, control, failure, or farm behaviour for a new model.

Jacobians

During time marching, the OpenFAST input–output solver asks for the instantaneous output derivative with the cable state frozen; CableDyn evaluates it by symmetric perturbation of the coupled input while preserving the committed state. A Linearize = True run differentiates the line dynamics themselves (Linearisation). NumCrctn controls glue correction passes; it does not change which derivative is used.

Linearisation

With Linearize = True CableDyn linearises the line dynamics, as MoorDyn-F does. The continuous states are the positions of every EI = 0 line’s interior nodes and of every finite-EI cable’s free degrees of freedom (node positions and tangents m = dr/ds), followed by their velocities. EI = 0 states carry MoorDyn’s names and order (Line 1 node 1 Px, m … Vz, m/s); a cable’s are named Cable 1 node 2 Px, m, Cable 1 node 2 Tx, - (tangent) and Cable 1 node 2 dTx, 1/s (its rate), with node 1 at End A. The matrices A, B, C and D are central differences: at each perturbed state or input, the accelerations are solved without a time step. Positions, tangents and coupled-point displacements are stepped by 1 µm, which stays inside the seabed penetration of a light cable and the stretch of every taut element. Velocities are stepped by 0.1 m/s, MoorDyn-F’s step. The output differences are taken from CableDyn’s own double-precision loads and channels, not from the OpenFAST output mesh, so a single-precision OpenFAST build (the Visual Studio Release configuration, as the release openfast.exe) linearises as a double-precision one: its mesh carries 7 digits, too few for loads of a few MN over a 1 µm step.

A line restrained in torsion adds the twist angle of every node that its end frames do not hold (all nodes but a torsionally Rigid end), after the cables’ positions and tangents, and their rates after the cables’ velocities: Cable 1 node 2 twist, rad and Cable 1 node 2 twist rate, rad/s. The angles’ accelerations come from the same evaluation as the cable’s, with their polar inertia Irn. The coupled point’s orientation turns the torsion frame of the line’s coupled (host-driven) end, so a platform rotation twists the line; the point’s angular velocity and acceleration turn that frame too, for the torsional damping Bt and the held end section’s polar inertia. The fairlead moment carries the torque. Angles are stepped by 1 µrad, as positions, and their rates by 0.01 rad/s (they enter only the linear damping). In a Linearize = True run the coupled-point rotation is stepped by 1e-4 rad, also in the input Jacobians of the time march before the linearisation times (a rotation moves no node, so no contact or slack limits it, and the turn of an end frame or connection direction is nonlinear); a run without linearisation keeps 0.1 rad. The .lin operating-point outputs are those of the committed step; at a settled operating point, such as the still-water start, they lie on the linearised surface, while at a moving one the accelerations and the end-frame rates of the last step enter them.

The zero-frequency reduction D − C A⁻¹ B is the static mooring stiffness at an operating point whose coupled points do not accelerate. It agrees with MoorDyn-F and with CableDyn’s own static solutions (CableDyn verification and validation). A cable’s coupled load is its support reaction, which includes the inertia −M(q) a of the line, and the mass moves with the configuration: the added mass turns with each element, and the end tangent’s mass couples to the fairlead. At a coupled-point acceleration a the force rows therefore also carry the configuration derivative of that inertial reaction. The rotation columns, which turn the end tangent, show it most. An OpenFAST run generally starts out of balance, so its platform accelerates at t = 0. On the lazy-wave cable of the mixed example, held by a 5e4 N·m/rad hang-off spring, a fairlead acceleration of 0.025 m/s² moves the force per unit rotation by 1.2 % out of plane and by 0.08–0.32 % in plane. The translation columns and the moments per unit translation stay within 3e-4 of the static solutions. At zero acceleration the rotation columns match them too, to 2.7e-4 out of plane and 1.1e-5 in plane. Compare a reduction with static solutions only at an operating point whose coupled points do not accelerate, for example with the platform degrees of freedom disabled. Quadratic drag has no slope at rest, so the 0.1 m/s step gives its equivalent linear damping at that velocity amplitude. CableDyn integrates the drag over the element, and a one-node step then gives about half of MoorDyn-F’s lumped value.

The constitutive states of the rope models are first-order states, named Line 1 segment 3 dl1, m and Line 1 segment 3 slow strain, - (elements counted from End B, as the nodes): each viscoelastic element’s slow-branch stretch and each Syrope element’s slow strain, differentiated through their own laws. D − C A⁻¹ B then gives the relaxed static stiffness of these ropes, not their instantaneous one. Two load histories are held at their operating-point values: the Syrope running maximum (small motions below it stay on its working curve) and the seabed-friction stick anchors (a stuck laid run). Linearise from a settled operating point, such as the still-water start at t = 0.

Initialisation fails with a named message for Free and Connect points, Point3 buoys, Rigid6 bodies and rods, a line with VIV (Cl > 0: it oscillates about a lock-in cycle, not an equilibrium), a CONTROL section, a cable with a Rigid end connection, and FAST.Farm. Their states are not linearisation states. Time-domain runs support all of them.

Performance

Measure coupled performance with the complete OpenFAST model, not with standalone line runs: OpenFAST coupling iterations, SeaState interpolation, controller, and output work are part of the cost. Report the Time Ratio (Sim/CPU) from a run that terminated normally, with identical executable, inputs, thread counts, wind/wave realisation, and output channels between the cases you compare, and with the default solver settings (full Newton, default dynamic tolerances, rhoInf default of Time integration parameter, no adaptive remeshing). dtM is the main cost lever; choose it by convergence, not speed. When OpenFAST/CableDyn OpenMP threading is active, keep the BLAS library single-threaded, and compare against one thread: small line sets can lose time to parallel overhead.

Common mistakes

  • CompMooring rejected during input validation: a stock openfast.exe is being used.

  • Mooring file not found: the path is resolved from the .fst folder, not from the executable’s folder.

  • Missing DISCON.dll: the ServoDyn input requests a controller; obtain the matching DLL or set CompServo = 0 for a controller-free run.

  • Missing turbine files: the repository provides mooring decks and templates, not the turbine model; see Tutorial 9 — A floating wind turbine in OpenFAST.

  • Implausible initial tensions (for example hundreds of MN): the platform’s initial pose in ElastoDyn does not match the fairlead and anchor layout of the deck.

  • Initialisation fails closed: read the complete message and consult Troubleshooting; do not bypass a rejected feature combination.