Hello everyone,
I'm currently working with the Telemac v8p4r0 for my project and I've encountered what might be discrepancies between the user manual and the source code.
Issue #1:
According to the user manual (section 4.3.2, released on December 1, 2020), the friction velocity u* is supposed to be calculated using the following formula:
u_*=(k.u_plane1)/ln(33.∆z/k_s)
However, upon inspecting the source code, TFOND.F subroutine under Telemac3D directory, the corresponding calculations are:
155 DO N=1,NPOIN
156! TAKES INTO ACCOUNT CRUSHED PLANES
157! I1 FIRST POINT WITH WATER ABOVE (EXCEPT CASE OF TIDAL FLATS
158! WHERE THE LEVEL UNDER THE FREE SURFACE IS TAKEN)
159 I1=(MIN(NPLAN-1,IPBOT(N)+1)-1)*NPOIN+N
160 DIST = Z(NPOIN+I1)-Z(I1)
161 AUX=MAX(1.001D0,30.D0*DIST/RUGOF(N))
162 UETCAR(N)=(KARMAN/LOG(AUX))**2
163 & * (U3D(I1+NPOIN)**2+V3D(I1+NPOIN)**2)
164 ENDDO
Normally, on line 161, the coefficient of 30 should be 33 to be consistent with the user manual. I wonder to know which one of them is correct?
Issue #2:
To calculate the friction coefficient, cf, in the case of Nikuradse law, I found these formulae in the user manual (section 1.6.5 page 40):
C = 7.83ln(12h/k_s)
Cf = 2g/C^2
and in the COEFRO.F subroutine, the corresponding piece of code is:
174 TRENTESURE=30.D0/EXP(1.D0)
175 DO N=1,NPOIN
176 HC = MAX(HH(N),1.D-4)
177 CF%R(N) = 2.D0 / (LOG( TRENTESURE*HC/CHESTR%R(N))/KARMAN )**2
178 ENDDO
It is expected to set the 'TRENTESURE' variable to 12, not 30/exp(1), which is equal to 11.036.
I understand that there could be various reasons for such differences, including possible updates or corrections in the source code that haven't been reflected in the manual or I'm looking to the wrong subroutine. Before assuming this as an inconsistency or bug, I would like to kindly request insights from the developer or anyone familiar with the Model.
Thank you in advance for your time and contributions.