Skip to content

Commit bb5a447

Browse files
committed
small bug fix mooring adjustment helper
1 parent 05f051a commit bb5a447

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

famodel/helpers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ def adjustMooring(mooring, method = 'horizontal', r=[0,0,0], project=None, targe
10191019
mooring.z_anch = mooring.dd['zAnchor']
10201020
mooring.rad_anch = np.linalg.norm(r_anch[:2]-r[:2])
10211021
span = mooring.rad_anch - fairlead_rad
1022-
mooring.setEndPosition(r_anch, 'a') # set the anchor position
1022+
mooring.setEndPosition(r_anch, 'a', sink=True) # set the anchor position
10231023

10241024
#move anchor attachments
10251025
for i,att in enumerate(mooring.attached_to):
@@ -1062,7 +1062,6 @@ def eval_func(X, args):
10621062
mooring.span = span
10631063

10641064
elif method == 'horizontal':
1065-
10661065
def func_TH_L(X, args):
10671066
'''Apply specified section L, return the horizontal pretension error.'''
10681067
ss.lineList[i_line].setL(X[0])

0 commit comments

Comments
 (0)