Skip to content

Commit b81d820

Browse files
authored
Merge pull request #3316 from luwang00/b/MD_SD_Init
Fix MoorDyn initial fairlead positions when SubDyn is present
2 parents a0dc268 + c349dd5 commit b81d820

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

modules/openfast-library/src/FAST_Subs.f90

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ SUBROUTINE FAST_InitializeAll( t_initial, m_Glue, p_FAST, y_FAST, m_FAST, ED, SE
373373
! Save the GearBox index
374374
p_FAST%GearBox_index = Init%OutData_ED(iRot)%GearBox_index
375375

376-
! Assign the inital positions for use by MoorDyn initalization
376+
! Assign the initial positions for use by MoorDyn initialization
377377
p_FAST%PlatformPosInit = Init%OutData_ED(iRot)%PlatformPos
378378

379379
! If steady state calculation is enabled
@@ -992,6 +992,15 @@ SUBROUTINE FAST_InitializeAll( t_initial, m_Glue, p_FAST, y_FAST, m_FAST, ED, SE
992992
Init%OutData_SD%Vars, p_FAST%Linearize, ErrStat2, ErrMsg2)
993993
if (Failed()) return
994994

995+
! Assign the initial positions for use by MoorDyn initialization (this overwrites the PlatformPosInit from ED above)
996+
if (Init%OutData_SD%SDHasRBDoF) then
997+
p_FAST%PlatformPosInit = Init%OutData_SD%PlatformPos
998+
else if (.not.Init%OutData_SD%IsFloating) then
999+
p_FAST%PlatformPosInit = 0.0_DbKi
1000+
! else
1001+
! Use PlatformPosInit from ED above
1002+
end if
1003+
9951004
case (Module_ExtPtfm)
9961005

9971006
Init%InData_ExtPtfm%InputFile = p_FAST%SubFile

0 commit comments

Comments
 (0)