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 VENUS |
---|
56 | RSIDAY=20.9961e6 ! 243.01 j |
---|
57 | RSIYEA=19.4141e6 ! 224.7 j |
---|
58 | ROMEGA=2.*RPI/RSIDAY |
---|
59 | c 1/(duree du jour) = 1/(periode rotation) + 1/(periode revolution) |
---|
60 | RDAY=RSIDAY/(1.+RSIDAY/RSIYEA) ! 116.748 j |
---|
61 | REA=108.15e9 |
---|
62 | REPSM=0. ! 0. veut dire qu'on commence au point vernal |
---|
63 | c |
---|
64 | cIM on mets R_ecc, R_peri, R_incl dans conf_phys.F90 |
---|
65 | |
---|
66 | WRITE(UNIT=6,FMT='('' *** Astronomical constants ***'')') |
---|
67 | WRITE(UNIT=6,FMT='('' day = '',E13.7,'' s'')')RDAY |
---|
68 | WRITE(UNIT=6,FMT='('' half g. axis = '',E13.7,'' m'')')REA |
---|
69 | WRITE(UNIT=6,FMT='('' mean anomaly = '',E13.7,'' -'')')REPSM |
---|
70 | WRITE(UNIT=6,FMT='('' sideral year = '',E13.7,'' s'')')RSIYEA |
---|
71 | WRITE(UNIT=6,FMT='('' sideral day = '',E13.7,'' s'')')RSIDAY |
---|
72 | WRITE(UNIT=6,FMT='('' omega = '',E13.7,'' s-1'')') |
---|
73 | S ROMEGA |
---|
74 | c write(unit=6,fmt='('' excentricite = '',e13.7,''-'')')R_ecc |
---|
75 | c write(unit=6,fmt='('' equinoxe = '',e13.7,''-'')')R_peri |
---|
76 | c write(unit=6,fmt='('' inclinaison = '',e13.7,''-'')')R_incl |
---|
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 | RG=8.87 |
---|
89 | RA=6051300. |
---|
90 | |
---|
91 | R1SA=SNGL(1.D0/DBLE(RA)) |
---|
92 | WRITE(UNIT=6,FMT='('' *** Geoide ***'')') |
---|
93 | WRITE(UNIT=6,FMT='('' Gravity = '',E13.7,'' m s-2'')') |
---|
94 | S RG |
---|
95 | WRITE(UNIT=6,FMT='('' Planet radius = '',E13.7,'' m'')')RA |
---|
96 | WRITE(UNIT=6,FMT='('' Inverse P.R. = '',E13.7,'' m-1'')')R1SA |
---|
97 | C |
---|
98 | C ----------------------------------------------------------------- |
---|
99 | C |
---|
100 | C* 4. DEFINE RADIATION CONSTANTS. |
---|
101 | C --------------------------- |
---|
102 | C |
---|
103 | c z.x.li RSIGMA=2. * RPI**5 * RKBOL**4 /(15.* RCLUM**2 * RHPLA**3) |
---|
104 | rsigma = 2.*rpi**5 * (rkbol/rhpla)**3 * rkbol/rclum/rclum/15. |
---|
105 | cIM init. dans conf_phys.F90 RI0=1365. |
---|
106 | WRITE(UNIT=6,FMT='('' *** Radiation ***'')') |
---|
107 | WRITE(UNIT=6,FMT='('' Stefan-Bol. = '',E13.7,'' W m-2 K-4'' |
---|
108 | S )') RSIGMA |
---|
109 | cIM init. dans conf_phys.F90 WRITE(UNIT=6,FMT='('' Solar const. = '',E13.7,'' W m-2'')') |
---|
110 | cIM init. dans conf_phys.F90 S RI0 |
---|
111 | C |
---|
112 | C ----------------------------------------------------------------- |
---|
113 | C |
---|
114 | C* 5. DEFINE THERMODYNAMIC CONSTANTS, GAS PHASE. |
---|
115 | C ------------------------------------------ |
---|
116 | C |
---|
117 | R=RNAVO*RKBOL |
---|
118 | c TERRE |
---|
119 | c RMD=28.9644 |
---|
120 | RMV=18.0153 |
---|
121 | |
---|
122 | c VENUS |
---|
123 | RMD=43.44 |
---|
124 | |
---|
125 | RD=1000.*R/RMD |
---|
126 | RV=1000.*R/RMV |
---|
127 | c TERRE |
---|
128 | c RCPD=3.5*RD |
---|
129 | RCPV=4. *RV |
---|
130 | c VENUS |
---|
131 | ! ADAPTATION GCM POUR CP(T) |
---|
132 | ! VENUS: Cp(T) = RCPD*(T/T0)^nu (RCPD phys = cpp dyn) |
---|
133 | ! avec RCPD=1000., T0=460. et nu=0.35 |
---|
134 | RCPD=1.0e3 |
---|
135 | ! RCPD=9.0e2 ! Version constante |
---|
136 | |
---|
137 | RCVD=RCPD-RD |
---|
138 | RCVV=RCPV-RV |
---|
139 | RKAPPA=RD/RCPD |
---|
140 | RETV=RV/RD-1. |
---|
141 | WRITE(UNIT=6,FMT='('' *** Thermodynamic, gas ***'')') |
---|
142 | WRITE(UNIT=6,FMT='('' Perfect gas = '',e13.7)') R |
---|
143 | WRITE(UNIT=6,FMT='('' Dry air mass = '',e13.7)') RMD |
---|
144 | WRITE(UNIT=6,FMT='('' Vapour mass = '',e13.7)') RMV |
---|
145 | WRITE(UNIT=6,FMT='('' Dry air cst. = '',e13.7)') RD |
---|
146 | WRITE(UNIT=6,FMT='('' Vapour cst. = '',e13.7)') RV |
---|
147 | WRITE(UNIT=6,FMT='('' Cpd0 = '',e13.7)') RCPD |
---|
148 | WRITE(UNIT=6,FMT='('' Cvd = '',e13.7)') RCVD |
---|
149 | WRITE(UNIT=6,FMT='('' Cpv = '',e13.7)') RCPV |
---|
150 | WRITE(UNIT=6,FMT='('' Cvv = '',e13.7)') RCVV |
---|
151 | WRITE(UNIT=6,FMT='('' Rd/Cpd0 = '',e13.7)') RKAPPA |
---|
152 | WRITE(UNIT=6,FMT='('' Rv/Rd-1 = '',e13.7)') RETV |
---|
153 | C |
---|
154 | RETURN |
---|
155 | END |
---|