Changeset 3154 for trunk/LMDZ.MARS


Ignore:
Timestamp:
Dec 10, 2023, 6:32:46 PM (12 months ago)
Author:
llange
Message:

Mars PCM
Small change following previous commit: when computing the virtual surface temperature, if frost is at the surface, qvap_surf = qsat. else; it is qvap in the first layer
LL

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3153 r3154  
    43954395Add the possibility to compute Cd; Ch based on the virtual potential temperature to account for water flotability.
    43964396To do so, a boolean "virtual", set to false by default, must be set to true (for now hard coded as future modifications will follow).
     4397Small change following previous commit: when computing the virtual surface temperature, if frost is at the surface, qvap_surf = qsat. else; it is qvap in the first layer
  • trunk/LMDZ.MARS/libf/phymars/vdif_cd_mod.F90

    r3153 r3154  
    140140      tol_iter =  0.01
    141141      mu_h2o = 18e-3
    142      
     142      tol_frost = 1e-4
    143143      reynolds(:) = 0.
    144144      pz0t = 0.
     
    162162         DO ig = 1,ngrid
    163163            temp_v(ig) = ph(ig,1)*(1.+pqvap(ig,1)/(mu_h2o/mumean(ig)))/(1.+pqvap(ig,1))
    164             call watersat(1,pts(ig),pp(ig,1),qsat(ig))
    165             tsurf_v(ig) = pts(ig)*(1.+qsat(ig)/(mu_h2o/mumean(ig)))/(1.+qsat(ig))
     164            IF(pqsurf(ig).gt.tol_frost) then
     165               call watersat(1,pts(ig),pp(ig,1),qsat(ig))
     166               tsurf_v(ig) = pts(ig)*(1.+qsat(ig)/(mu_h2o/mumean(ig)))/(1.+qsat(ig))
     167            ELSE
     168               tsurf_v(ig) = pts(ig)*(1.+pqvap(ig,1)/(mu_h2o/mumean(ig)))/(1.+pqvap(ig,1))
     169            ENDIF
    166170         ENDDO
    167171      ELSE
Note: See TracChangeset for help on using the changeset viewer.