174 |
C compute Prandtl number (always greater than 0) |
C compute Prandtl number (always greater than 0) |
175 |
prTemp = 1. _d 0 |
prTemp = 1. _d 0 |
176 |
IF ( RiNumber .GE. 0.2 ) prTemp = 5.0 * RiNumber |
IF ( RiNumber .GE. 0.2 ) prTemp = 5.0 * RiNumber |
177 |
TKEPrandtlNumber(I,J,K) = MIN(10.,prTemp) |
TKEPrandtlNumber(I,J,K) = MIN(10.0 _d 0,prTemp) |
178 |
C mixing length |
C mixing length |
179 |
GGL90mixingLength(I,J,K) = |
GGL90mixingLength(I,J,K) = |
180 |
& SQRTTKE/SQRT( MAX(Nsquare,GGL90eps) ) |
& SQRTTKE/SQRT( MAX(Nsquare,GGL90eps) ) |
324 |
& + surfaceForcingV(I, J+1,bi,bj) ) )**2 |
& + surfaceForcingV(I, J+1,bi,bj) ) )**2 |
325 |
& ) |
& ) |
326 |
C Dirichlet surface boundary condition for TKE |
C Dirichlet surface boundary condition for TKE |
327 |
gTKE(I,J,kSurf) = MAX(GGL90TKEmin,GGL90m2*uStarSquare) |
gTKE(I,J,kSurf) = MAX(GGL90TKEsurfMin,GGL90m2*uStarSquare) |
328 |
& *maskC(I,J,kSurf,bi,bj) |
& *maskC(I,J,kSurf,bi,bj) |
329 |
C Dirichlet bottom boundary condition for TKE = GGL90TKEbottom |
C Dirichlet bottom boundary condition for TKE = GGL90TKEbottom |
330 |
kBottom = MIN(MAX(kLowC(I,J,bi,bj),1),Nr) |
kBottom = MIN(MAX(kLowC(I,J,bi,bj),1),Nr) |