source: trunk/LMDZ.GENERIC/libf/phystd/stokes.F90 @ 537

Last change on this file since 537 was 253, checked in by emillour, 13 years ago

Generic GCM

  • Massive update to version 0.7

EM+RW

File size: 1.5 KB
RevLine 
[135]1      subroutine stokes(p,t,rd,w,rho_aer)
2
3!==================================================================
4!     Purpose
5!     -------
6!     Compute the sedimentation velocity in a low pressure
7!     atmosphere.
8!
9!     Authors
10!     -------
11!     Francois Forget (1997)
12!
13!==================================================================
14
15!      use radcommon_h, only : Rgas
16
17      implicit none
18
19#include "comcstfi.h"
20
21!     input
22!     -----
23!     pressure (Pa), Temperature (K), particle radius (m), density
24      real p, t, rd, rho_aer
25
26!     output
27!     ------
28!     sedimentation velocity (m/s, >0)
29      real w
30
31!     locally saved variables
[253]32!     ---------------------
33      real a,b,molrad,visc
[135]34      save a,b
35 
36      LOGICAL firstcall
37      SAVE firstcall
38      DATA firstcall/.true./
39
40      if (firstcall) then
41
42         !print*,'Routine not working: replace Rgas with r'
43         !stop
44         !a = 0.707*Rgas/(4*pi*molrad**2 * avocado)
[253]45
46         molrad=2.2e-10   ! CO2 (only used in condense_co2cloud at the moment)
47         visc=1.e-5       ! CO2
48
49
[135]50         a = 0.707*R/(4*pi*molrad**2 * avocado)
[253]51         b = (2./9.) * rho_aer * g / visc
52        !print*,'molrad=',molrad
53        !print*,'visc=',visc
54        !print*,'a=',a
55        !print*,'b=',b
56        !print*,'rho_aer=',rho_aer
57        !stop
58 
[135]59         firstcall=.false.
60      end if
61
62!     Sedimentation velocity =
63!     Stokes' Law corrected for low pressures by the Cunningham
64!     slip-flow correction according to Rossow (Icarus 36, 1-50, 1978)
65      w = b * rd*rd * (1 + 1.333* (a*T/P)/rd ) 
66      return
67    end subroutine stokes
Note: See TracBrowser for help on using the repository browser.