1 | ! |
---|
2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/suphec.F,v 1.1.1.1 2004/05/19 12:53:08 lmdzadmin Exp $ |
---|
3 | ! |
---|
4 | SUBROUTINE suphec |
---|
5 | C |
---|
6 | #include "YOMCST.h" |
---|
7 | cIM cf. JLD |
---|
8 | LOGICAL firstcall |
---|
9 | SAVE firstcall |
---|
10 | DATA firstcall /.TRUE./ |
---|
11 | IF (firstcall) THEN |
---|
12 | PRINT*, 'suphec initialise les constantes du GCM' |
---|
13 | firstcall = .FALSE. |
---|
14 | ELSE |
---|
15 | PRINT*, 'suphec DEJA APPELE ' |
---|
16 | RETURN |
---|
17 | ENDIF |
---|
18 | C ----------------------------------------------------------------- |
---|
19 | C |
---|
20 | C* 1. DEFINE FUNDAMENTAL CONSTANTS. |
---|
21 | C ----------------------------- |
---|
22 | C |
---|
23 | WRITE(UNIT=6,FMT='(''0*** Constants of the ICM ***'')') |
---|
24 | RPI=2.*ASIN(1.) |
---|
25 | RCLUM=299792458. |
---|
26 | RHPLA=6.6260755E-34 |
---|
27 | RKBOL=1.380658E-23 |
---|
28 | RNAVO=6.0221367E+23 |
---|
29 | WRITE(UNIT=6,FMT='('' *** Fundamental constants ***'')') |
---|
30 | WRITE(UNIT=6,FMT='('' PI = '',E13.7,'' -'')')RPI |
---|
31 | WRITE(UNIT=6,FMT='('' c = '',E13.7,''m s-1'')') |
---|
32 | S RCLUM |
---|
33 | WRITE(UNIT=6,FMT='('' h = '',E13.7,''J s'')') |
---|
34 | S RHPLA |
---|
35 | WRITE(UNIT=6,FMT='('' K = '',E13.7,''J K-1'')') |
---|
36 | S RKBOL |
---|
37 | WRITE(UNIT=6,FMT='('' N = '',E13.7,''mol-1'')') |
---|
38 | S RNAVO |
---|
39 | C |
---|
40 | C ---------------------------------------------------------------- |
---|
41 | C |
---|
42 | C* 2. DEFINE ASTRONOMICAL CONSTANTS. |
---|
43 | C ------------------------------ |
---|
44 | C |
---|
45 | c TERRE |
---|
46 | c RDAY=86400. |
---|
47 | c REA=149597870000. |
---|
48 | c REPSM=0.409093 |
---|
49 | C |
---|
50 | c RSIYEA=365.25*RDAY*2.*RPI/6.283076 |
---|
51 | c 1/(duree du jour) = 1/(periode rotation) - 1/(periode revolution) |
---|
52 | c RSIDAY=RDAY/(1.+RDAY/RSIYEA) |
---|
53 | c ROMEGA=2.*RPI/RSIDAY |
---|
54 | |
---|
55 | c TITAN |
---|
56 | RSIYEA=9.28e8 ! 673 jTitan |
---|
57 | c LEQUEL DES 2 ?? A VERIFIER !! |
---|
58 | c RSIDAY=1.37889e6 ! 15.96 j |
---|
59 | RDAY=1.37889e6 ! 15.96 j |
---|
60 | c 1/(duree du jour) = 1/(periode rotation) - 1/(periode revolution) |
---|
61 | c RDAY=RSIDAY/(1.-RSIDAY/RSIYEA) |
---|
62 | RSIDAY=RDAY/(1.+RDAY/RSIYEA) |
---|
63 | ROMEGA=2.*RPI/RSIDAY |
---|
64 | REA=1.5e12 |
---|
65 | REPSM=0. ! 0. veut dire qu'on commence au point vernal |
---|
66 | c |
---|
67 | cIM on mets R_ecc, R_peri, R_incl dans conf_phys.F90 |
---|
68 | |
---|
69 | WRITE(UNIT=6,FMT='('' *** Astronomical constants ***'')') |
---|
70 | WRITE(UNIT=6,FMT='('' day = '',E13.7,'' s'')')RDAY |
---|
71 | WRITE(UNIT=6,FMT='('' half g. axis = '',E13.7,'' m'')')REA |
---|
72 | WRITE(UNIT=6,FMT='('' mean anomaly = '',E13.7,'' -'')')REPSM |
---|
73 | WRITE(UNIT=6,FMT='('' sideral year = '',E13.7,'' s'')')RSIYEA |
---|
74 | WRITE(UNIT=6,FMT='('' sideral day = '',E13.7,'' s'')')RSIDAY |
---|
75 | WRITE(UNIT=6,FMT='('' omega = '',E13.7,'' s-1'')') |
---|
76 | S ROMEGA |
---|
77 | C |
---|
78 | C ------------------------------------------------------------------ |
---|
79 | C |
---|
80 | C* 3. DEFINE GEOIDE. |
---|
81 | C -------------- |
---|
82 | C |
---|
83 | c TERRE |
---|
84 | c RG=9.80665 |
---|
85 | c RA=6371229. |
---|
86 | |
---|
87 | c VENUS |
---|
88 | c RG=8.87 |
---|
89 | c RA=6051300. |
---|
90 | |
---|
91 | c TITAN |
---|
92 | RG=1.35 |
---|
93 | RA=2575000. |
---|
94 | |
---|
95 | R1SA=SNGL(1.D0/DBLE(RA)) |
---|
96 | WRITE(UNIT=6,FMT='('' *** Geoide ***'')') |
---|
97 | WRITE(UNIT=6,FMT='('' Gravity = '',E13.7,'' m s-2'')') |
---|
98 | S RG |
---|
99 | WRITE(UNIT=6,FMT='('' Planet radius = '',E13.7,'' m'')')RA |
---|
100 | WRITE(UNIT=6,FMT='('' Inverse P.R. = '',E13.7,'' m-1'')')R1SA |
---|
101 | C |
---|
102 | C ----------------------------------------------------------------- |
---|
103 | C |
---|
104 | C* 4. DEFINE RADIATION CONSTANTS. |
---|
105 | C --------------------------- |
---|
106 | C |
---|
107 | c z.x.li RSIGMA=2. * RPI**5 * RKBOL**4 /(15.* RCLUM**2 * RHPLA**3) |
---|
108 | rsigma = 2.*rpi**5 * (rkbol/rhpla)**3 * rkbol/rclum/rclum/15. |
---|
109 | cIM init. dans conf_phys.F90 RI0=1365. |
---|
110 | WRITE(UNIT=6,FMT='('' *** Radiation ***'')') |
---|
111 | WRITE(UNIT=6,FMT='('' Stefan-Bol. = '',E13.7,'' W m-2 K-4'' |
---|
112 | S )') RSIGMA |
---|
113 | cIM init. dans conf_phys.F90 WRITE(UNIT=6,FMT='('' Solar const. = '',E13.7,'' W m-2'')') |
---|
114 | cIM init. dans conf_phys.F90 S RI0 |
---|
115 | C |
---|
116 | C ----------------------------------------------------------------- |
---|
117 | C |
---|
118 | C* 5. DEFINE THERMODYNAMIC CONSTANTS, GAS PHASE. |
---|
119 | C ------------------------------------------ |
---|
120 | C |
---|
121 | R=RNAVO*RKBOL |
---|
122 | c TERRE |
---|
123 | c RMD=28.9644 |
---|
124 | RMV=18.0153 |
---|
125 | |
---|
126 | c VENUS |
---|
127 | RMD=43.44 |
---|
128 | |
---|
129 | c TITAN |
---|
130 | RMD=28. |
---|
131 | |
---|
132 | RD=1000.*R/RMD |
---|
133 | RV=1000.*R/RMV |
---|
134 | c TERRE |
---|
135 | c RCPD=3.5*RD |
---|
136 | RCPV=4. *RV |
---|
137 | c VENUS |
---|
138 | ! ADAPTATION GCM POUR CP(T) |
---|
139 | ! VENUS: Cp(T) = RCPD*(T/T0)^nu (RCPD phys = cpp dyn) |
---|
140 | ! avec RCPD=1000., T0=460. et nu=0.35 |
---|
141 | ! RCPD=1.0e3 |
---|
142 | ! RCPD=9.0e2 ! Version constante |
---|
143 | c TITAN |
---|
144 | RCPD=1.039e3 |
---|
145 | RCVD=RCPD-RD |
---|
146 | RCVV=RCPV-RV |
---|
147 | RKAPPA=RD/RCPD |
---|
148 | RETV=RV/RD-1. |
---|
149 | WRITE(UNIT=6,FMT='('' *** Thermodynamic, gas ***'')') |
---|
150 | WRITE(UNIT=6,FMT='('' Perfect gas = '',e13.7)') R |
---|
151 | WRITE(UNIT=6,FMT='('' Dry air mass = '',e13.7)') RMD |
---|
152 | WRITE(UNIT=6,FMT='('' Vapour mass = '',e13.7)') RMV |
---|
153 | WRITE(UNIT=6,FMT='('' Dry air cst. = '',e13.7)') RD |
---|
154 | WRITE(UNIT=6,FMT='('' Vapour cst. = '',e13.7)') RV |
---|
155 | WRITE(UNIT=6,FMT='('' Cpd0 = '',e13.7)') RCPD |
---|
156 | WRITE(UNIT=6,FMT='('' Cvd = '',e13.7)') RCVD |
---|
157 | WRITE(UNIT=6,FMT='('' Cpv = '',e13.7)') RCPV |
---|
158 | WRITE(UNIT=6,FMT='('' Cvv = '',e13.7)') RCVV |
---|
159 | WRITE(UNIT=6,FMT='('' Rd/Cpd0 = '',e13.7)') RKAPPA |
---|
160 | WRITE(UNIT=6,FMT='('' Rv/Rd-1 = '',e13.7)') RETV |
---|
161 | C |
---|
162 | RETURN |
---|
163 | END |
---|