MoorDyn
Functions | Variables
QSlines.hpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <cmath>
#include <iostream>
#include <vector>
Include dependency graph for QSlines.hpp:

Go to the source code of this file.

Functions

template<typename T >
int Catenary (T XF, T ZF, T L, T EA, T W, T CB, T Tol, T *HFout, T *VFout, T *HAout, T *VAout, unsigned int Nnodes, vector< T > &s, vector< T > &X, vector< T > &Z, vector< T > &Te)
 Positions and tensions of a single mooring line. More...
 

Variables

int longwinded = 0
 switch to turn on excessive output for locating crashes
 

Detailed Description

C/C++ translation and adaptation of the Fortran subroutine "Catenary" written by Jason Jonkman.

The original function is contained in the National Renewable Energy Laboratory's FAST version 7 source code, available at https://nwtc.nrel.gov/FAST7 and with a disclaimer at http://wind.nrel.gov/designcodes/disclaimer.html.

This quasi-static analysis is used as a starting point for getting the initial line profiles.

Function Documentation

◆ Catenary()

template<typename T >
int Catenary ( XF,
ZF,
L,
EA,
W,
CB,
Tol,
T *  HFout,
T *  VFout,
T *  HAout,
T *  VAout,
unsigned int  Nnodes,
vector< T > &  s,
vector< T > &  X,
vector< T > &  Z,
vector< T > &  Te 
)

Positions and tensions of a single mooring line.

A quasi-static approach used as a starting point for getting the initial line profiles

Parameters
XFHorizontal distance between anchor and fairlead (meters)
ZFVertical distance between anchor and fairlead (meters)
LUnstretched length of line (meters)
EAExtensional stiffness of line (N)
WWeight of line in fluid per unit length (N/m)
CBCoefficient of seabed static friction drag (a negative value indicates no seabed) (-)
TolConvergence tolerance within Newton-Raphson iteration specified as a fraction of tension (-)
HFoutOutput effective horizontal tension in line at the fairlead (N)
VFoutOutput effective vertical tension in line at the fairlead (N)
HAoutOutput effective horizontal tension in line at the anchor (N)
VAoutOutput effective vertical tension in line at the anchor (N)
NnodesNumber of nodes where the line position and tension can be output (-)
sUnstretched arc distance along line from anchor to each node where the line position and tension can be output (meters)
XOutput horizontal locations of each line node relative to the anchor (meters)
ZOutput vertical locations of each line node relative to the anchor (meters)
TeOutput effective line tensions at each node (N)
Returns
1 if the quasi-static equilibrium is found, -1 otherwise

To avoid an ill-conditioned situation, make sure HF does not go less

Line position and tension at each node:

Here is the caller graph for this function: