Skip to content

Commit

Permalink
Merge pull request #1648 from andrew-platt/b/FF_mod_ambwind3
Browse files Browse the repository at this point in the history
FF: fix bug with Mod_AmbWind=3 -- hub point wasn't shifted.
  • Loading branch information
deslaughter authored Jun 24, 2023
2 parents 39f3483 + 787bed6 commit 1100ca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/awae/src/AWAE.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ subroutine AWAE_UpdateStates( t, n, u, p, x, xd, z, OtherState, m, errStat, errM
end do
do n_hl=0, n_high_low
! Set the hub position and orientation to pass to IfW (IfW always calculates hub and disk avg vel)
m%u_IfW_High%HubPosition = (/ p%X0_high(nt) + 0.5*p%nX_high*p%dX_high(nt), p%Y0_high(nt) + 0.5*p%nY_high*p%dY_high(nt), p%Z0_high(nt) + 0.5*p%nZ_high*p%dZ_high(nt) /)
m%u_IfW_High%HubPosition = (/ p%X0_high(nt) + 0.5*p%nX_high*p%dX_high(nt), p%Y0_high(nt) + 0.5*p%nY_high*p%dY_high(nt), p%Z0_high(nt) + 0.5*p%nZ_high*p%dZ_high(nt) /) - p%WT_Position(:,nt)
call Eye(m%u_IfW_High%HubOrientation,ErrStat2,ErrMsg2)
call InflowWind_CalcOutput(t+p%dt_low+n_hl*p%DT_high, m%u_IfW_High, p%IfW(nt), x%IfW(nt), xd%IfW(nt), z%IfW(nt), OtherState%IfW(nt), m%y_IfW_High, m%IfW(nt), errStat2, errMsg2)
call SetErrStat( ErrStat2, ErrMsg2, errStat, errMsg, RoutineName )
Expand Down
2 changes: 1 addition & 1 deletion modules/inflowwind/src/InflowWind_Subs.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,7 @@ SUBROUTINE InflowWind_GetHubValues( Time, InputData, p, x, xd, z, OtherStates, m

IMPLICIT NONE

CHARACTER(*), PARAMETER :: RoutineName="InflowWind_GetSpatialAverage"
CHARACTER(*), PARAMETER :: RoutineName="InflowWind_GetHubValues"


! Inputs / Outputs
Expand Down

0 comments on commit 1100ca7

Please sign in to comment.