Closed edaniele-tpi closed 2 years ago
@ptrbortolotti, could you take a look at this?
Wondering if anyone has taken a look at this? In commit 292a479c, I can see that @ebranlard had some comments about those lines:
DELTA0 = 10.**(1.6569-.9045*LOG10(RC)+ &
.0596*LOG10(RC)**2.)*C
! IF (p%ITRIP .EQ. 2) DELTA0 = .6 * DELTA0 ! corrected with respect to the Suzlon document Contact Pat Moriarty for further. added 2 lines below.(EB_DTU)
IF (p%ITRIP .GT. 0) DELTA0 = 10.**(1.892-0.9045*LOG(RC)+0.0596*LOG(RC)**2.)*C
IF (p%ITRIP .EQ. 2) DELTA0=.6*DELTA0
Sorry, I didn't look at this issue. I can confirm that it is indeed a bug. Comparing Figure 6 of https://ntrs.nasa.gov/search.jsp?R=19890016302 : With what's computed with our Fortran code (NOTE: I used fortran for the computation, not python): The log10 formulation is clearly the one matching the data.
Thanks a lot @edaniele-tpi for pointing out to this bug! I'll submit a quick pull request
@ebranlard you are welcome, happy to help ;-)
Bug description The definition of the boundary layer thickness at zero AoA within the
THICK
subroutine in the fileAeroAcoustics.f90
is wrong, because of the usage of thelog
function instead of the correctlog10
one.To Reproduce Steps to identify error:
DELTA0
variable in casep%ITRIP .GT. 0
within theTHICK
subroutine in the fileAeroAcoustics.f90
.PREDICT.FOR
.Expected behavior The
log
function should be substituted by means of the correctlog10
one.Screenshots, if applicable None.
OpenFAST Version Commit 3456a645581456883e44d441eb285ed688e98797.
System Information (please complete the following information):
Additional context Original formulation is available in the corresponding literature source: