pycatenary.cable module

class pycatenary.cable.MooringLine(L, w, EA=None, anchor=None, fairlead=None, nd=3, floor=True)

Bases: object

Class to create a mooring line

Parameters
  • L (double) – unstretched line length [m]

  • w (double) – submerged weight [N/m]

  • EA (double) – axial stiffness

  • anchor (np.ndarray) – anchor coordinates

  • fairlead (np.ndarray) – fairlead coordinates

count = 0
computeSolution()

Computes solution of the catenary

s2xyz(s)

Gives xyz coordinates along line

Parameters

s (double) – distance along line (from anchor)

ds2xyz(s)

Gives xyz direction along line

Parameters

s (double) – distance along line (from anchor)

plot(npoints=100)

Plots line from anchor to fairlead in 3D

getTension(s)

Gives tension along line

Parameters

s (double) – distance along line (from anchor)

setAnchorCoords(coords)

Sets coordinates of anchor

Parameters

coords (array) – coordinates of anchor

setFairleadCoords(coords)

Sets coordinates of fairlead

Parameters

coords (array) – coordinates of fairlead

pycatenary.cable.get_array(x)