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