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 03fe1e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/openfast-library/src/FAST_Subs.f90
Original file line number Diff line number Diff line change
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 k=1,size(AD%Input(1)%rotors(1)%BladeMotion)
i = i + AD%Input(1)%rotors(1)%BladeMotion(k)%NNodes
end do
Init%InData_IfW%BoxExceedAllowIdx = i + 1 ! first tower node

END IF

! lidar
Expand Down

0 comments on commit 03fe1e8

Please sign in to comment.