source: trunk/LMDZ.TITAN/libf/phytitan/cld.F @ 1242

Last change on this file since 1242 was 495, checked in by slebonnois, 13 years ago

Mise a jour physique Titan, ajout des forces de marees (dans la dynamique, sous flag titan). SL.

File size: 1.8 KB
Line 
1      SUBROUTINE CLD(IPRINT)
2C PUT IN A METHANE CLOUD HERE
3C THIS ROUTINE SETS UP THE CLOUD DISTRIBUTION
4C
5#include "dimensions.h"
6      PARAMETER(NLAYER=llm,NLEVEL=NLAYER+1)
7      PARAMETER (NSPECI=46,NSPC1I=47,NSPECV=24,NSPC1V=25)
8      COMMON /ATM/ Z(NLEVEL),PRESS(NLEVEL),DEN(NLEVEL),TEMP(NLEVEL)
9      COMMON /GASS/ CH4(NLEVEL),XN2(NLEVEL),H2(NLEVEL),AR(NLEVEL)
10     & ,XMU(NLEVEL),GAS1(NLAYER),COLDEN(NLAYER)
11      COMMON /CLOUD/ RADCLD(NLAYER), XNCLD(NLAYER)
12     & , RCLDI(NSPECI), XICLDI(NSPECI), RCLDV(NSPECV), XICLDV(NSPECV)
13      COMMON /PLANT/ CSUBP,F0PI
14      COMMON /ADJUST/ RHCH4,FH2,FHAZE,FHVIS,FHIR,TAUFAC,RCLOUD,FARGON
15      COMMON /CONST/RGAS,RHOP,PI,SIGMA
16      TOTALC=0.0
17CCC
18      XC=.95
19      DO 190 J=1,NLAYER
20      XNCLD(J)=0.
21      RADCLD(J)=0.
22      IF ( CH4(J)*PRESS(J)/PCH4(TEMP(J)) .GT. XC) THEN
23          RADCLD(J)=RCLOUD
24C TO COLAPSE THE CLOUD INTO ONE LAYER:  XC=9.
25C LET 1% OF THE GAS BE CLOUD AS AN INTITIAL GUESS
26       XNCLD(J)=.01*COLDEN(J)*GAS1(J)/((4.*PI/3.)*RADCLD(J)**3*1.E-12)
27          IF (IPRINT .GT. 0 ) WRITE(6,95) J,RADCLD(J),XNCLD(J),Z(J)
28  95      FORMAT(' CLOUD INSERTED: ',I3,F8.2,1P5E10.3)
29          TOTALC=TOTALC+XNCLD(J)
30          ENDIF
31 190  CONTINUE
32C CALL THE MIE CODE TO GIVE THE AEROSOL PROPERTIES AT A REF WAVENO
33C WHICH IS THE REF WAVENO OF TOON ET AL.
34      WNOREF=200.
35      RREF=1.27
36      XIREF=REFLIQ(WNOREF)
37      CALL XMIE(RCLOUD,RREF,XIREF,
38     &                     QEXT,QSCT,QABS,CBAR,WNOREF)
39      CTAU=QEXT*TOTALC
40      IF (IPRINT .GT. 0) WRITE(6,98) WNOREF,RREF,XIREF,TOTALC,CTAU
41 98   FORMAT(' CLOUD AT REFERENCE WAVENUMBER OF ',F7.2,' REAL, IMG =',
42     & 1P2E10.2,'  COLUMN DENSITY , OPTICAL DEPTH= ',2E10.2)
43C SCALE THE CLOUD DENSITIES TO THE REFERENCE WAVENUMBER
44      DO 145 J=1,NLAYER
45      XNCLD(J)=XNCLD(J)*TAUFAC/CTAU
46 145  CONTINUE
47      RETURN
48      END
Note: See TracBrowser for help on using the repository browser.