source: trunk/LMDZ.MARS/libf/phymars/meso_inc/meso_inc_les.F @ 481

Last change on this file since 481 was 341, checked in by aslmd, 14 years ago

MESOSCALE: tests pour faire marcher le modele en parallele sur la ferme. toujours infructueux... toutes les notes incluses et options explorees en commentaire. les options par defaut restent les memes en attendant. ajout de scripts pour compiler NETCDF et MPI. correction d un probleme de Registry et de makemeso pour les runs LES ancienne physique. ajout d un cas test LES phoenix.

File size: 2.1 KB
Line 
1         if (.not.callrichsl) then
2       
3             DO ig=1,ngrid
4!! sensible heat flux in W/m2
5
6             sensheat(ig) = zflubid(ig)-capcal(ig)*zdtsdif(ig)
7
8!! u star in similarity theory in m/s
9             ustar(ig) = 0.4
10     .               * sqrt( pu(ig,1)*pu(ig,1) + pv(ig,1)*pv(ig,1) )
11     .               / log( 1.E+0 + zzlay(ig,1)/z0_default )
12             ENDDO
13
14         else
15
16            DO ig=1,ngrid
17
18! New SL parametrization, correct formulation for sensheat :
19
20            sensheat(ig) = (pplay(ig,1)/(r*pt(ig,1)))*cpp
21     &        *sqrt(pu(ig,1)*pu(ig,1) + pv(ig,1)*pv(ig,1)
22     &        + (1.2*wmax_th(ig))**2)
23     &        *zcdh(ig)*(tsurf(ig)-zh(ig,1))
24
25! New SL parametrization, ustar is more accurately computed in vdif_cd :
26            ustar(ig) = sqrt(zcdv(ig)*
27     &   (pu(ig,1)*pu(ig,1) + pv(ig,1)*pv(ig,1) + (0.7*wmax_th(ig))**2)
28     &                     )
29
30            ENDDO   
31
32         endif  !of if callrichsl
33
34!         write (*,*) 'PHYS HFX cp zdts', sensheat(100), zflubid(100),
35!     .       capcal(100),
36!     .       zdtsdif(100)
37!         write (*,*) 'PHYS UST', ustar(100)
38
39!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
40!!! LES LES
41       IF (flag_LES) THEN       
42
43         write (*,*) '************************************************'
44         write (*,*) '** LES mode: the difv part is only used to'
45         write (*,*) '**  provide HFX and UST to the dynamics'
46         write (*,*) '** NB: - dudif, dvdif, dhdif, dqdif are set to 0'
47         write (*,*) '**     - tsurf is updated'     
48         write (*,*) '************************************************'
49
50         DO ig=1,ngrid
51          wmax_th(ig)=0.  !! no additional gustiness needed in surface layer (see vdifc.F)
52          DO l=1,nlayer
53            zdvdif(ig,l) = 0.
54            zdudif(ig,l) = 0.
55            zdhdif(ig,l) = 0.
56            DO iq=1, nq
57              zdqdif(ig,l,iq) = 0.
58              zdqsdif(ig,iq) = 0. !! sortir de la boucle
59            ENDDO
60          ENDDO
61         ENDDO
62      ENDIF
63!!! LES LES       
64!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Note: See TracBrowser for help on using the repository browser.