Skip to content

Commit

Permalink
[bugfix] Seg Fault due to hub model and external inflow (#1227)
Browse files Browse the repository at this point in the history
Seg Fault due to hub model and external inflow
  • Loading branch information
psakievich authored Aug 25, 2022
1 parent 19b4ca7 commit b888e4a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/openfast-library/src/FAST_Solver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -607,9 +607,10 @@ SUBROUTINE AD_InputSolve_IfW( p_FAST, u_AD, y_IfW, y_OpFM, ErrStat, ErrMsg )
end if

if (u_AD%rotors(1)%NacelleMotion%NNodes > 0) then
u_AD%rotors(1)%InflowOnNacelle(1) = y_OpFM%u(node)
u_AD%rotors(1)%InflowOnNacelle(2) = y_OpFM%v(node)
u_AD%rotors(1)%InflowOnNacelle(3) = y_OpFM%w(node)
! for cfd we will lump the hub and nacelle together
u_AD%rotors(1)%InflowOnNacelle(1) = y_OpFM%u(1)
u_AD%rotors(1)%InflowOnNacelle(2) = y_OpFM%v(1)
u_AD%rotors(1)%InflowOnNacelle(3) = y_OpFM%w(1)
node = node + 1
else
u_AD%rotors(1)%InflowOnNacelle = 0.0_ReKi
Expand Down

0 comments on commit b888e4a

Please sign in to comment.