source: trunk/LMDZ.TITAN/libf/phytitan/gasses.F @ 134

Last change on this file since 134 was 3, checked in by slebonnois, 14 years ago

Creation de repertoires:

  • chantiers : pour communiquer sur nos projets de modifs
  • documentation : pour stocker les docs

Ajout de:

  • libf/phytitan : physique de Titan
  • libf/chimtitan: chimie de Titan
  • libf/phyvenus : physique de Venus
File size: 1.7 KB
Line 
1      SUBROUTINE GASSES(IPRINT)
2C THIS SUBROUTINE SETS UP THE MASS MIXING RATIOS OF THE
3C OPTICALLY ACTIVE GASES: CH4, C2H2, AND C2H6
4#include "dimensions.h"
5      PARAMETER(NLAYER=llm,NLEVEL=NLAYER+1)
6      COMMON /ATM/ Z(NLEVEL),PRESS(NLEVEL),DEN(NLEVEL),TEMP(NLEVEL)
7      COMMON /GASS/ CH4(NLEVEL),XN2(NLEVEL),H2(NLEVEL),AR(NLEVEL)
8     & ,XMU(NLEVEL),GAS1(NLAYER),COLDEN(NLAYER)
9      COMMON /STRATO/ C2H2(NLAYER),C2H6(NLAYER)
10      COMMON /ADJUST/ RHCH4,FH2,FHAZE,FHVIS,FHIR,TAUFAC,RCLOUD,FARGON
11      COMMON /CONST/RGAS,RHOP,PI,SIGMA
12C*
13C NOW CALCULATE THE LAYER AVERAGE GAS MIXING RATIOS.
14C OF THE ABSORBING GAS IN UNITS OF GRAMS PER GRAM
15C AND THE TOTAL LAYER COLUMN MASS GRAMS CM-2.
16      DO 159 J=1,NLAYER
17      EMU=(XMU(J+1)+XMU(J))*0.5
18      COLDEN(J)=RHOP*(PRESS(J+1)-PRESS(J))/EFFG(Z(J))
19      GAS1(J)=(16./EMU)*AVERGE(CH4(J+1),CH4(J))
20159   CONTINUE
21C WE NOW ALSO CALCULTE THE MASS MIXING RATIOS OF THE
22C STRATOSPHERIC GASES USED IN THE IR WITHIN EACH LAYER.
23      J=1
24      FC2H2=1.8E-6 ! NEW FROM ATHENA OLD= 2.E-6
25      FC2H6=1.2E-5 ! NEW FORM ATHENA OLD= 2.E-5
26      C2H2(J) = MIN(FC2H2,PC2H2(TEMP(J))/PRESS(J))
27      C2H6(J) = MIN(FC2H6,PC2H6(TEMP(J))/PRESS(J))
28      DO 101 J=2,NLAYER
29      C2H2(J) = MIN(FC2H2,PC2H2(TEMP(J))/PRESS(J),C2H2(J-1))
30      C2H6(J) = MIN(FC2H6,PC2H6(TEMP(J))/PRESS(J),C2H6(J-1))
31101   CONTINUE
32C NOW CONVERT TO MASS MIXING RATIO
33      DO 102 J=1,NLAYER
34      EMU=(XMU(J+1)+XMU(J))*0.5
35      C2H2(J)=C2H2(J)*26.0/EMU
36      C2H6(J)=C2H6(J)*30.0/EMU
37102   CONTINUE
38C
39      IF (IPRINT .LT. 1) RETURN
40      WRITE (6,9)
41  9   FORMAT(///' ALT   CH4      C2H2        C2H6: MASS MIXING RATIOS')
42      DO 103 J=1,NLAYER
43      WRITE (6,10)Z(J),GAS1(J),C2H2(J),C2H6(J)
44103   CONTINUE
45 10   FORMAT(1X,F6.2,1P3E9.1)
46      RETURN
47      END
Note: See TracBrowser for help on using the repository browser.