Changeset 1467


Ignore:
Timestamp:
Aug 4, 2015, 12:05:18 PM (9 years ago)
Author:
tnavarro
Message:

new option supersat to allow for supersaturation of water

Location:
trunk/LMDZ.MARS
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r1462 r1467  
    21902190- Moved "iniprint.h" back to dyn3d (and added link to it in dyn1d), as it
    21912191  is preferable to not share modules/commons between physics and dynamics.
     2192
     2193== 04/08/2015 == TN
     2194- New option supersat to allow for the supersaturation of water vapor.
     2195  Default value is True. The goal is to disable supersaturation even
     2196  with microphysics for comparison purposes.
  • trunk/LMDZ.MARS/libf/phymars/callkeys.h

    r1353 r1467  
    1212     &   ,callg2d,linear,rayleigh,tracer,active,doubleq,submicron       &
    1313     &   ,lifting,freedust,callddevil,scavenging,sedimentation          &
    14      &   ,activice,water,tifeedback,microphys,caps,photochem,calltherm  &
    15      &   ,callrichsl,callslope,tituscap,callyamada4
     14     &   ,activice,water,tifeedback,microphys,supersat,caps,photochem   &
     15     &   ,calltherm,callrichsl,callslope,tituscap,callyamada4
    1616     
    1717      COMMON/callkeys_i/iradia,iaervar,iddist,ilwd,ilwb,ilwn,ncouche    &
     
    5757      logical active,doubleq,submicron,lifting,callddevil,scavenging
    5858      logical sedimentation
    59       logical water,activice,tifeedback,microphys,caps
     59      logical water,activice,tifeedback,microphys,supersat,caps
    6060      logical photochem
    6161      integer nltemodel
  • trunk/LMDZ.MARS/libf/phymars/conf_phys.F

    r1381 r1467  
    477477         write(*,*)" microphys = ",microphys
    478478
     479! supersat
     480         write(*,*)"Allow super-saturation of water vapor?"
     481         supersat=.true. ! default value
     482         call getin("supersat",supersat)
     483         write(*,*)"supersat = ",supersat
     484
    479485! microphysical parameter contact       
    480486         write(*,*) "water contact parameter ?"
  • trunk/LMDZ.MARS/libf/phymars/physiq.F

    r1465 r1467  
    21622162     &                       'Mean reff',
    21632163     &                       'm',2,rave)
     2164            call WRITEDIAGFI(ngrid,'saturation',
     2165     &           'h2o vap saturation ratio','dimless',3,satu)
    21642166            if (scavenging) then
    21652167              CALL WRITEDIAGFI(ngrid,"Nccntot",
  • trunk/LMDZ.MARS/libf/phymars/watercloud.F

    r1266 r1467  
    9494      REAL subpdt(ngrid,nlay)         ! cf. pdtcloud
    9595
     96      ! no supersaturation when option supersat is false
     97      REAL zt(ngrid,nlay)       ! local value of temperature
     98      REAL zqsat(ngrid,nlay)    ! saturation
    9699
    97100      INTEGER iq,ig,l
     
    391394        ENDDO
    392395      ENDIF
    393        
    394        
     396
    395397      IF(microphys) THEN
     398
     399       ! In case one does not want to allow supersatured water when using microphysics.
     400       ! Not done by default.
     401       IF(.not.supersat) THEN     
     402        zt  = pt + (pdt+pdtcloud)*ptimestep
     403        call watersat(ngrid*nlay,zt,pplay,zqsat)
     404        DO l=1, nlay
     405         DO ig=1,ngrid
     406          IF (pq(ig,l,igcm_h2o_vap)
     407     &      + (pdq(ig,l,igcm_h2o_vap) + pdqcloud(ig,l,igcm_h2o_vap))
     408     &      * ptimestep .ge. zqsat(ig,l)) THEN
     409             pdqcloud(ig,l,igcm_h2o_vap) =
     410     &         (zqsat(ig,l) - pq(ig,l,igcm_h2o_vap))/ptimestep
     411     &        - pdq(ig,l,igcm_h2o_vap)
     412             pdqcloud(ig,l,igcm_h2o_ice) =
     413     &         -pdqcloud(ig,l,igcm_h2o_vap)
     414             ! no need to correct ccn_number, updaterad can handle this properly.
     415          ENDIF
     416         ENDDO
     417        ENDDO       
     418       ENDIF
    396419       
    397420       DO l=1, nlay
Note: See TracChangeset for help on using the changeset viewer.