Changeset 2522


Ignore:
Timestamp:
May 15, 2021, 9:36:14 PM (4 years ago)
Author:
jnaar
Message:

Added flag for temperature-dependant water contact parameter. Default is false for now !
JN

Location:
trunk/LMDZ.MARS
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2516 r2522  
    33793379Correction of the threshold value used to prevent from negative values in watercloud_mod.F: the threshold is set to 1e-16 (=qperemin, an already existing parameter for the water cycle), instead of 1e-8. This former value was at the origin of a strong and unrealistic drying out of the upper atmosphere, when the photochemistry was active, during the first part of the martian year (months 3 and 4). (bug reported by Francisco Gonzalez-Galindo).
    33803380
     3381== 15/05/2021 == JN
     3382Added a logical flag allowing for a temperature-dependant parametrization of the water contact parameter : "temp_dependant_m". Default value is false for now.
     3383
     3384
  • trunk/LMDZ.MARS/libf/phymars/callkeys.h

    r2512 r2522  
    1717     &   ,CLFvarying,satindexco2,rdstorm,slpwind,calllott_nonoro        &
    1818     &   ,latentheat_surfwater,gwd_convective_source,startphy_file      &
    19      &   ,hdo,hdofrac,cap_albedo
     19     &   ,hdo,hdofrac,cap_albedo,temp_dependant_m
    2020     
    2121      COMMON/callkeys_i/iradia,iaervar,ilwd,ilwb,ilwn,ncouche           &
     
    7070      logical latentheat_surfwater ! latent heat release from ground water ice sublimation/condensation
    7171      logical cap_albedo ! polar cap albedo remains unchanged by water frost deposition
     72      logical temp_dependant_m ! temperature-dependant water contact parameter
    7273      logical sedimentation
    7374      logical activice,tifeedback,supersat,caps
  • trunk/LMDZ.MARS/libf/phymars/conf_phys.F

    r2512 r2522  
    706706! microphysical parameter contact       
    707707        write(*,*) "water contact parameter ?"
    708         mteta  = 0.95
    709         call getin_p("mteta",mteta)
    710         write(*,*) "mteta = ", mteta
     708        mteta  = 0.95 ! default value
     709        temp_dependant_m  = .false. ! default value
     710        call getin_p("temp_dependant_m",temp_dependant_m)
     711        if (temp_dependant_m) then
     712           print*,'You have chosen a temperature-dependant water'
     713           print*,'contact parameter ! From Maattanen et al. 2014'
     714        else if (.not.temp_dependant_m) then
     715           print*,'Water contact parameter is constant'
     716           call getin_p("mteta",mteta)
     717           write(*,*) "mteta = ", mteta
     718        endif
    711719       
    712720! scavenging
  • trunk/LMDZ.MARS/libf/phymars/nuclea.F

    r2456 r2522  
    1616
    1717#include "microphys.h"
     18      include "callkeys.h"
    1819
    1920c     Inputs
     
    5556      mtetalocal = mteta  !! use mtetalocal for better performance
    5657
     58      IF (temp_dependant_m) THEN
     59         mtetalocal = min(0.0044*temp + 0.1831,0.97)
     60      ENDIF ! (temp_dependant_m) THEN
    5761cccccccccccccccccccccccccccccccccccccccccccccccccc
    5862ccccccccccc ESSAIS TN MTETA = F (T) cccccccccccccc
     
    7074cccccccccccccccccccccccccccccccccccccccccccccccccc
    7175cccccccccccccccccccccccccccccccccccccccccccccccccc
    72       IF (firstcall) THEN
     76      IF (firstcall.and.temp_dependant_m) THEN
     77          print*, ' ' 
     78          print*, 'dear user, please keep in mind that'
     79          print*, 'contact parameter IS NOT constant ;'
     80          print*, 'Using the following linear fit from'
     81          print*, 'Maattanen et al. 2014 (SM linear fit) :'
     82          print*, 'min(0.0044*temp + 0.1831,0.97)'
     83          print*, ' ' 
     84         firstcall=.false.
     85      ELSE IF (firstcall.and.(.not.(temp_dependant_m))) THEN
    7386          print*, ' ' 
    7487          print*, 'dear user, please keep in mind that'
    7588          print*, 'contact parameter IS constant'
    76           !print*, 'contact parameter IS NOT constant:'
    77           !print*, 'max(mteta - 6005*exp(-0.065*temp),0.1)'
    78           !print*, 'max(mteta - 6005*exp(-0.068*temp),0.1)'
    7989          print*, ' ' 
    8090         firstcall=.false.
Note: See TracChangeset for help on using the changeset viewer.