From d4939f45f94aa4a9975b9c1dd574dcaf92f566bd Mon Sep 17 00:00:00 2001 From: Jason Jonkman Date: Thu, 23 Sep 2021 15:18:07 -0600 Subject: [PATCH] Fix Bug in FAST.Farm Causing Wake Bounce-Back For wake planes that are skewed relative to domain boundaries (e.g., due to nacelle-yaw), the weighting used in the spatial averaging to calculate the meandering velocity of the plane when Mod_Meander = 3 could end up being negative as wake planes were leaving the domain. But the code always assumed that the weighting was positive. This bug fixes that. This solves the issue reported by on our forum dated July 06, 2021: https://wind.nrel.gov/forum/wind/viewtopic.php?f=13&t=2117&start=225. --- modules/awae/src/AWAE.f90 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/awae/src/AWAE.f90 b/modules/awae/src/AWAE.f90 index bbfbf33e6..140ee9b25 100644 --- a/modules/awae/src/AWAE.f90 +++ b/modules/awae/src/AWAE.f90 @@ -486,7 +486,11 @@ subroutine LowResGridCalcOutput(n, u, p, y, m, errStat, errMsg) end do!nr - if ( wsum_tmp > 0.0_ReKi ) y%V_plane(:,np,nt) = y%V_plane(:,np,nt)/wsum_tmp + if ( EqualRealNos( wsum_tmp, 0.0_ReKi ) ) then + y%V_plane(:,np,nt) = 0.0_ReKi + else + y%V_plane(:,np,nt) = y%V_plane(:,np,nt)/wsum_tmp + end if end if