[3] | 1 | ! |
---|
| 2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/ustarhb.F,v 1.1 2004/06/22 11:45:35 lmdzadmin Exp $ |
---|
| 3 | ! |
---|
| 4 | SUBROUTINE ustarhb(knon,u,v,cd_m, ustar) |
---|
| 5 | c====================================================================== |
---|
| 6 | c Laurent Li (LMD/CNRS), le 30 septembre 1998 |
---|
| 7 | c Couche limite non-locale. Adaptation du code du CCM3. |
---|
| 8 | c Code non teste, donc a ne pas utiliser. |
---|
| 9 | c====================================================================== |
---|
| 10 | c Nonlocal scheme that determines eddy diffusivities based on a |
---|
| 11 | c diagnosed boundary layer height and a turbulent velocity scale. |
---|
| 12 | c Also countergradient effects for heat and moisture are included. |
---|
| 13 | c |
---|
| 14 | c For more information, see Holtslag, A.A.M., and B.A. Boville, 1993: |
---|
| 15 | c Local versus nonlocal boundary-layer diffusion in a global climate |
---|
| 16 | c model. J. of Climate, vol. 6, 1825-1842. |
---|
| 17 | c====================================================================== |
---|
[101] | 18 | use dimphy |
---|
| 19 | IMPLICIT none |
---|
[3] | 20 | #include "YOMCST.h" |
---|
| 21 | c |
---|
| 22 | c Arguments: |
---|
| 23 | c |
---|
| 24 | INTEGER knon ! nombre de points a calculer |
---|
| 25 | REAL u(klon,klev) ! vitesse U (m/s) |
---|
| 26 | REAL v(klon,klev) ! vitesse V (m/s) |
---|
| 27 | REAL cd_m(klon) ! coefficient de friction au sol pour vitesse |
---|
| 28 | REAL ustar(klon) |
---|
| 29 | c |
---|
| 30 | INTEGER i, k |
---|
| 31 | REAL zxt, zxq, zxu, zxv, zxmod, taux, tauy |
---|
| 32 | REAL zx_alf1, zx_alf2 ! parametres pour extrapolation |
---|
| 33 | LOGICAL unssrf(klon) ! unstb pbl w/lvls within srf pbl lyr |
---|
| 34 | LOGICAL unsout(klon) ! unstb pbl w/lvls in outer pbl lyr |
---|
| 35 | LOGICAL check(klon) ! True=>chk if Richardson no.>critcal |
---|
| 36 | c |
---|
| 37 | DO i = 1, knon |
---|
| 38 | zx_alf1 = 1.0 |
---|
| 39 | zx_alf2 = 1.0 - zx_alf1 |
---|
| 40 | zxu = u(i,1)*zx_alf1+u(i,2)*zx_alf2 |
---|
| 41 | zxv = v(i,1)*zx_alf1+v(i,2)*zx_alf2 |
---|
[892] | 42 | zxmod = SQRT(zxu**2+zxv**2) |
---|
[3] | 43 | taux = zxu *zxmod*cd_m(i) |
---|
| 44 | tauy = zxv *zxmod*cd_m(i) |
---|
| 45 | ustar(i) = SQRT(taux**2+tauy**2) |
---|
| 46 | c print*,'Ust ',zxu,zxmod,taux,ustar(i) |
---|
| 47 | ENDDO |
---|
| 48 | c |
---|
| 49 | return |
---|
| 50 | end |
---|