Changeset 2053


Ignore:
Timestamp:
Dec 17, 2018, 12:34:13 PM (6 years ago)
Author:
jvatant
Message:

Slight adjustements of the eddy diffusion profile for chemistry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/phytitan/calchim.F90

    r2045 r2053  
    264264     ! 6. Eddy mixing coefficients (constant with time and space)
    265265     ! ----------------------------------------------------------
    266 
     266     
    267267     kedd(:) = 1.e3 ! Default value =/= zero
    268268
     
    271271
    272272     ! First calculate kedd for upper chemistry layers
    273      DO l=klev+1,nlaykim_tot
     273     DO l=klev-4,nlaykim_tot
    274274        logp=-log10(press_c(l))
    275      ! 1E6 at 300 km ~ 10-1 mbar
    276         IF     ( logp.ge.1.0 .and. logp.le.4.0 ) THEN
    277               kedd(l) = 10.**(6.0+1.3*(logp-1.0)/3.0)
    278      ! 2E7 above 600 km ~ 10-4 mbar
     275     ! 2E6 at 400 km ~ 10-2 mbar
     276        IF     ( logp.ge.2.0 .and. logp.le.3.0 ) THEN
     277              kedd(l) = 2.e6 * 5.0**(logp-2.0)
     278     ! 1E7 at 500 km ~ 10-3 mbar
     279        ELSE IF     ( logp.ge.3.0 .and. logp.le.4.0 ) THEN
     280              kedd(l) = 1.e7 * 3.0**(logp-3.0)
     281     ! 3E7 above 700 km ~ 10-4 mbar
    279282        ELSEIF ( logp.gt.4.0                   ) THEN
    280              kedd(l) = 2.e7
     283             kedd(l) = 3.e7
    281284        ENDIF
    282285     ENDDO
    283286     
    284      ! Then adjust 15 last layers profile fading to default value depending on kedd(ptop)
    285      DO l=klev-15,klev
    286         temp1   = ( log10(press_c(l)/press_c(klev-15)) ) / ( log10(press_c(klev+1)/press_c(klev-15)) )
    287         kedd(l) = 10.**( 3.0 + log10(kedd(klev+1)/1.e3) * temp1 )
     287     ! JVO 18 : We keep the nominal profile in the GCM 5 upper layers
     288     !          to have  a correct vertical mixing in the sponge layer
     289     
     290     ! Then adjust 10 layers profile fading to default value depending on kedd(ptop)
     291     DO l=klev-15,klev-5
     292        temp1   = ( log10(press_c(l)/press_c(klev-15)) ) / ( log10(press_c(klev-4)/press_c(klev-15)) )
     293        kedd(l) = 10.**( 3.0 + log10(kedd(klev-4)/1.e3) * temp1 )
    288294     ENDDO
    289      
     295   
    290296     firstcall = .FALSE.
    291297  ENDIF  ! firstcall
     
    311317     ! -------------------------------------------------------------------------------------------------------
    312318
    313      IF ( ( moyzon_ch .AND. ( ig.EQ.1 .OR. (ABS(latitude(ig)-latitude(igm1)).GT.0.1*180.0/pi)) ) .OR. (.NOT. moyzon_ch) ) THEN
     319     IF ( ( moyzon_ch .AND. ( ig.EQ.1 .OR. (ABS(latitude(ig)-latitude(igm1)).GT.0.1*pi/180)) ) .OR. (.NOT. moyzon_ch) ) THEN
    314320
    315321        ! 1. Compute altitude for the grid point with hydrostat. equilib.
Note: See TracChangeset for help on using the changeset viewer.