Skip to content

Commit 6656ae9

Browse files
committed
FF: add WAT info to summary file, fix segfault
1 parent fb7fec7 commit 6656ae9

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

glue-codes/fast-farm/src/FAST_Farm_IO.f90

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,23 @@ SUBROUTINE Farm_PrintSum( farm, WD_InputFileData, ErrStat, ErrMsg )
168168
end select
169169
WRITE (UnSum,'(2X,A)') 'Calibrated parameter for wake meandering (-): '//trim(Num2LStr(farm%AWAE%p%C_Meander))
170170

171-
!FIXME: add summary info about WAT
171+
if (farm%p%WAT == 0) then
172+
write (UnSum,'(/,2X,A)') 'Wake added turbulence: off'
173+
else
174+
write (UnSum,'(/,2X,A)') 'Wake-Added Turbulence (WAT):'
175+
write (UnSum,'(4X,A,6(f9.3))') 'WAT_NxNyNz: ',farm%p%WAT_NxNyNz(1:3)
176+
write (UnSum,'(4X,A,6(f9.3))') 'WAT_DxDyDz: ',farm%p%WAT_DxDyDz(1:3)
177+
if (farm%p%WAT_ScaleBox) then
178+
write (UnSum,'(4X,A,A)') 'WAT_ScaleBox: ','.TRUE.'
179+
else
180+
write (UnSum,'(4X,A,A)') 'WAT_ScaleBox: ','.FALSE.'
181+
endif
182+
write (UnSum,'(4X,A)') 'coefficients:'
183+
write (UnSum,'(12X,A)') ' k_c f_min D_min D_max e'
184+
write (UnSum,'(A6,A6,6(f9.3))') '','k_Def', farm%WD%p%WAT_k_Def_k_c, farm%WD%p%WAT_k_Def_FMin, farm%WD%p%WAT_k_Def_DMin, farm%WD%p%WAT_k_Def_DMax, farm%WD%p%WAT_k_Def_Exp
185+
write (UnSum,'(A6,A6,6(f9.3))') '','k_Grad',farm%WD%p%WAT_k_Grad_k_c,farm%WD%p%WAT_k_Grad_FMin,farm%WD%p%WAT_k_Grad_DMin,farm%WD%p%WAT_k_Grad_DMax,farm%WD%p%WAT_k_Grad_Exp
186+
endif
187+
172188

173189
WRITE (UnSum,'(/,A)' ) 'Time Steps'
174190
WRITE (UnSum,'(2X,A)') 'Component Time Step Subcyles'

glue-codes/fast-farm/src/FAST_Farm_Subs.f90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,12 @@ end subroutine MannLibDims
520520
subroutine Set_WAT_DxDyDz()
521521
real(ReKi) :: TmpDx,TmpDy,TmpDz
522522
logical :: HResDimsSame
523+
! If Mod_AmbWind<2, we don't read high res discretizations
524+
if (AWAE_InitInput%InputFileData%Mod_AmbWind < 2) then
525+
write(sDummy, '(3(F8.3,1X))') p%WAT_DxDyDz
526+
call WrScr(' WAT: DxDyDz set to: '//trim(sDummy)//' (calculated based on guidance for Mod_AmbWind==1)')
527+
return
528+
endif
523529
! Check if all turbines use the same high res deltas
524530
HResDimsSame = .true.
525531
TmpDx = AWAE_InitInput%InputFileData%dX_high(1)

reg_tests/r-test

0 commit comments

Comments
 (0)