Ignore:
Timestamp:
Apr 25, 2012, 5:38:49 PM (13 years ago)
Author:
tnavarro
Message:

last scheme in commit r626 led to a wrong physical behaviour. This version uses a new subtimestep for microphysics that should be faster than the last one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/growthrate.F

    r626 r633  
    1       subroutine growthrate(temp,pmid,psat,seq,rcrystal,coeff1,coeff2)
     1      subroutine growthrate(temp,pmid,psat,rcrystal,res)
    22
    33      IMPLICIT NONE
     
    3131      REAL temp     ! temperature in the middle of the layer (K)
    3232      REAL pmid     ! pressure in the middle of the layer (K)
    33       REAL*8 psat   ! water vapor saturation pressure (Pa)
    34       REAL*8 seq    ! Equilibrium saturation ratio
     33      REAL psat   ! water vapor saturation pressure (Pa)
    3534      REAL rcrystal ! crystal radius before condensation (m)
    3635
    3736c     Output
    38       REAL coeff1,coeff2     ! coefficients for the analytical relation between time and radius
     37      REAL res      ! growth resistance (res=Rk+Rd)
    3938
    4039
     
    4241c   ------
    4342
    44       REAL*8 k,Lv                 
    45       REAL*8 knudsen           ! Knudsen number (gas mean free path/particle radius)
    46       REAL*8 afactor,Dv,lambda       ! Intermediate computations for growth rate
    47       REAL*8 Rk,Rd
     43      REAL k,Lv                 
     44      REAL knudsen           ! Knudsen number (gas mean free path/particle radius)
     45      REAL afactor,Dv,lambda       ! Intermediate computations for growth rate
     46      REAL Rk,Rd
    4847     
    4948     
     
    8685
    8786c     - Compute Rk
    88       Rk = Lv**2 * rho_ice * mh2o / (k*rgp*temp*temp)
     87      Rk = Lv*Lv* rho_ice * mh2o / (k*rgp*temp*temp)
    8988c     - Compute Rd
    9089      Rd = rgp * temp *rho_ice / (Dv*psat*mh2o)
    9190     
    9291     
    93       coeff1 = real(Rk + Rd*(1. + lambda * knudsen))
    94       coeff2 = real(Rk + Rd*(1. - lambda * knudsen))
     92      res = Rk + Rd*(1. + lambda * knudsen)
     93     
     94      !coeff1 = real(Rk + Rd*(1. + lambda * knudsen))
     95      !coeff2 = real(Rk + Rd*(1. - lambda * knudsen))
    9596     
    9697c Below are growth rate used for other schemes
Note: See TracChangeset for help on using the changeset viewer.