Skip to content

Commit

Permalink
IfW: hack to allow extrapolation outside wind box
Browse files Browse the repository at this point in the history
Specifically allows extrapolation on tower, hub, nacelle, tailfin, but not blades
  • Loading branch information
andrew-platt committed Nov 29, 2023
1 parent ed58e70 commit 4a99028
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/openfast-library/src/FAST_Subs.f90
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ SUBROUTINE FAST_InitializeAll( t_initial, p_FAST, y_FAST, m_FAST, ED, BD, SrvD,


INTEGER(IntKi) :: NumBl

integer :: i, idx
CHARACTER(ErrMsgLen) :: ErrMsg2

CHARACTER(*), PARAMETER :: RoutineName = 'FAST_InitializeAll'
Expand Down Expand Up @@ -580,6 +580,14 @@ SUBROUTINE FAST_InitializeAll( t_initial, p_FAST, y_FAST, m_FAST, ED, BD, SrvD,
Init%InData_IfW%BoxExceedAllowF = .true.
Init%InData_IfW%BoxExceedAllowIdx = min(Init%InData_IfW%BoxExceedAllowIdx, AD_BoxExceedPointsIdx(AD%Input(1), AD%OtherSt(STATE_CURR)))
endif

! Temporary hack! Allow extrapolation of winds on tower
Init%InData_IfW%BoxExceedAllowF = .true.
do i=1,size(u_AD%rotors(1)%BladeMotion)
idx = idx + u_AD%rotors(1)%BladeMotion(i)%NNodes
end do
Init%InData_IfW%BoxExceedAllowIdx = idx + 1 ! first tower node

END IF

! lidar
Expand Down

0 comments on commit 4a99028

Please sign in to comment.