Skip to content

Commit c97bba2

Browse files
committed
Fixing extractFarmInfo to give correct wts coordinates
1 parent 79f2ff3 commit c97bba2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

famodel/project.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4118,7 +4118,7 @@ def extractFarmInfo(self, cmax=5, fmax=10/6, Cmeander=1.9):
41184118
yaw_init = np.zeros((1, len(self.platformList.items())))
41194119
for _, pf in self.platformList.items():
41204120
if pf.entity=='FOWT':
4121-
x, y, z = pf.body.r6[0], pf.body.r6[1], pf.body.r6[2]
4121+
x, y, z = pf.r[0], pf.r[1], pf.r[2]
41224122
phi_deg = np.degrees(pf.phi) # float((90 - np.degrees(pf.phi)) % 360) # Converting FAD's rotational convention (0deg N, +ve CW) into FF's rotational convention (0deg E, +ve CCW)
41234123
phi_deg = (phi_deg + 180) % 360 - 180 # Shift range to -180 to 180
41244124
for att in pf.attachments.values():
@@ -4252,10 +4252,6 @@ def resetArrayCenter(self, FOWTOnly=True):
42524252
if 'platforms' in self.RAFTDict or 'platform' in self.RAFTDict:
42534253
self.getRAFT(self.RAFTDict,pristine=1)
42544254

4255-
if self.ms:
4256-
# Change MoorDyn
4257-
for body in self.ms.bodyList:
4258-
body.r6[:2] -= delta
42594255

42604256

42614257
def updateFailureProbability(self):

0 commit comments

Comments
 (0)