Ignore:
Timestamp:
Aug 28, 2018, 4:22:24 PM (6 years ago)
Author:
jleconte
Message:

28/08/2018 == JL

We now shift the radiative model top from p=0 to the middle of the last physical layer. This is done by changing pmid and plevrad in callcorrk and some corrections need to be done in gfluxv.
This seems to get rid of the aratic temperature behavior in the last two layers of the model (especially on the night side on synchronous planets).
Additional speedup corrections have been made in gfluxi that change nothing to the result.
Finally, if aerosols are present in the last layer we must account for them. Provides better upper boundary condition in the IR. They must however be put to zero in the sw (see optcv and changes in last commit.)
This has been done for water ice in aeropacity, but same correction should probably be done for other aerosol types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/gfluxv.F

    r1420 r1988  
    240240C     FLUX AT THE Ptop layer
    241241
    242       EP    = 1.0
    243       EM    = 1.0
     242!      EP    = 1.0
     243!      EM    = 1.0
     244C JL18 correction to account for the fact that the radiative top is not at zero optical depth.
     245      EXPTRM(L) = MIN(TAUMAX,LAMDA(L)*(TAUCUM(2)))
     246      EP = EXP(EXPTRM(L))
     247      EM    = 1.0/EP
    244248      G4    = 1.0-G3(1)
    245249      DENOM = LAMDA(1)**2 - 1./UBAR0**2
     
    260264C     AT THE MIDDLE OF THE LAYER.
    261265
    262       CPMID  = AP
    263       CMMID  = AM
     266C      CPMID  = AP
     267C      CMMID  = AM
     268C JL18 correction to account for the fact that the radiative top is not at zero optical depth.
     269      TAUMID   = TAUCUM(2)
     270      CPMID = AP*EXP(-TAUMID/UBAR0)
     271      CMMID = AM*EXP(-TAUMID/UBAR0)
    264272
    265273      FLUXUP = XK1(1)*EP + GAMA(1)*XK2(1)*EM + CPMID
     
    268276C     ADD THE DIRECT FLUX TO THE DOWNWELLING TERM
    269277
    270       fluxdn = fluxdn+UBAR0*F0PI*EXP(-MIN(TAUCUM(1),TAUMAX)/UBAR0)
     278!      fluxdn = fluxdn+UBAR0*F0PI*EXP(-MIN(TAUCUM(1),TAUMAX)/UBAR0)
     279!JL18 the line above assumed that the top of the radiative model was P=0
     280!   it seems to be better for the IR to use the middle of the last physical layer as the radiative top.
     281!   so we correct the downwelling flux below for the calculation of the heating rate
     282      fluxdn = fluxdn+UBAR0*F0PI*EXP(-TAUCUM(2)/UBAR0)
    271283
    272284C     This is for the "special" bottom layer, where we take
Note: See TracChangeset for help on using the changeset viewer.