Skip to content

Commit feed874

Browse files
committed
Small suspended cable heading bug fix
1 parent 5560099 commit feed874

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples/02_Mooring_Analysis_MoorPy/05_moorings_cables_marine_growth.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# create moorpy array
2525
project.getMoorPyArray()
2626

27+
project.plot3d()
2728
# - - - Let's add marine growth to moorings and cables - - -
2829
# pick a mooring line to check that mg was added on
2930
moor_to_check = list(project.mooringList.values())[0]

famodel/project.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,11 +758,12 @@ def loadDesign(self, d, raft=True):
758758
# only add a joint if there's a cable section after this
759759
if stat_cab or dyn_cabB:
760760
dd['joints'].append(jAcondd)
761-
Acondd['headingA'] = np.radians(cab['headingA']) + A_phi # heading only if not suspended
762761
else:
763762
# this is a suspended cable - add headingB
764763
Acondd['headingB'] = np.radians(cab['headingB']) + B_phi
765764

765+
Acondd['headingA'] = np.radians(cab['headingA']) + A_phi
766+
766767
if 'rJTube' in dyn_cable_configs[dyn_cabA]:
767768
rJTubeA = dyn_cable_configs[dyn_cabA]['rJTube']
768769
Acondd['rJTube'] = rJTubeA

0 commit comments

Comments
 (0)