Changeset 1574


Ignore:
Timestamp:
Sep 20, 2011, 2:09:47 PM (13 years ago)
Author:
jghattas
Message:

Corrected calculation of the variables wbeff and plfc (diagnostics).

Location:
LMDZ5/trunk/libf/phylmd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/concvl.F

    r1518 r1574  
    248248          cbmf(i) = 0.
    249249          plcl(i) = 0.
    250           plfc(i) = 0.
    251           wbeff(i) = 0.
    252250          sigd(i) = 0.
    253251         ENDDO
    254252      ENDIF   !(ifrst .EQ. 0)
     253
     254c Initialisation a chaque pas de temps
     255      plfc(:)  = 0.
     256      wbeff(:) = 100.
    255257
    256258      DO k = 1, klev+1
  • LMDZ5/trunk/libf/phylmd/cv3p1_closure.F

    r1518 r1574  
    516516        wb2(il) = sqrt(2.*max(Ale(il)+cin(il),0.))
    517517      ENDDO
    518 c
    519       IF (flag_wb==0) THEN
    520         wbeff(:) = wbmax
    521       ELSE IF (flag_wb==1) THEN
    522         wbeff(1:ncum) = wbmax/(1.+500./(ph(1:ncum,1)-plfc(1:ncum)))
    523       ELSE IF (flag_wb==2) THEN
    524         wbeff(1:ncum) = wbmax*(0.01*(ph(1:ncum,1)-plfc(1:ncum)))**2
    525       ENDIF
    526 c
     518
     519      DO il = 1, ncum
     520         IF (plfc(il) .lt. 100.) THEN
     521c        This is an irealistic value for plfc => no calculation of wbeff
     522            wbeff(il) = 100.1
     523         ELSE
     524c        Calculate wbeff
     525            IF (flag_wb==0) THEN
     526               wbeff(il) = wbmax
     527            ELSE IF (flag_wb==1) THEN
     528               wbeff(il) = wbmax/(1.+500./(ph(il,1)-plfc(il)))
     529            ELSE IF (flag_wb==2) THEN
     530               wbeff(il) = wbmax*(0.01*(ph(il,1)-plfc(il)))**2
     531            ENDIF
     532         END IF
     533      END DO
     534
     535
    527536      DO il = 1,ncum
    528537cjyg    Modification du coef de wb*wb pour conformite avec papier Wake
  • LMDZ5/trunk/libf/phylmd/phys_output_mod.F90

    r1562 r1574  
    12131213                     o_plfc%flag,o_plfc%name, "Level of Free Convection", "hPa")
    12141214                CALL histdef2d(iff,clef_stations(iff), &
    1215                      o_wbeff%flag,o_wbeff%name, "Conv. updraft velocity at LFC", "m/s")
     1215                     o_wbeff%flag,o_wbeff%name, "Conv. updraft velocity at LFC (<100)", "m/s")
    12161216             end if
    12171217             CALL histdef2d(iff,clef_stations(iff), &
Note: See TracChangeset for help on using the changeset viewer.