Skip to content

Commit ab1642c

Browse files
committed
Small environment yaml update and addCablesConnections logic update
-- environment yaml update to work with macs -- addCablesConnections update to increase distance to search other platform mooring headings for rerouting
1 parent 8f78bce commit ab1642c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

famodel-env.yaml

-90 Bytes
Binary file not shown.

famodel/project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,11 +1828,11 @@ def addCablesConnections(self,connDict,cableType_def='dynamic_cable_66',oss=Fals
18281828

18291829
# adjust heading if too close to moorings
18301830
rad_buff = np.radians(heading_buffer)
1831-
dc0s = cab.subcomponents[0].span
1831+
dc0s = np.max((cab.subcomponents[0].span, 500))
18321832
moors = attA.getMoorings()
1833-
msp = list(moors.values())[0].span + attA.rFair
1833+
msp = list(moors.values())[0].span + attA.rFair + 200 # add a bit extra
18341834
# consider mooring headings from both ends if close enough
1835-
pfsp = np.sqrt((attA.r[0]-attB.r[0])**2+(attA.r[1]-attB.r[1])**2)
1835+
pfsp = np.linalg.norm(attA.r-attB.r)
18361836
if pfsp-2*attA.rFair < msp+dc0s:
18371837
headingA = head_adjust([attA,attB],headingA,rad_buff=rad_buff)
18381838
headingB = head_adjust([attB,attA],headingB,rad_buff=rad_buff,endA_dir=-1)

0 commit comments

Comments
 (0)