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