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(cpp_) |
---|
5 | C |
---|
6 | #include "YOMCST.h" |
---|
7 | cIM cf. JLD |
---|
8 | REAL cpp_ ! from dynamics |
---|
9 | LOGICAL firstcall |
---|
10 | SAVE firstcall |
---|
11 | DATA firstcall /.TRUE./ |
---|
12 | IF (firstcall) THEN |
---|
13 | PRINT*, 'suphec initialise les constantes du GCM' |
---|
14 | firstcall = .FALSE. |
---|
15 | ELSE |
---|
16 | PRINT*, 'suphec DEJA APPELE ' |
---|
17 | RETURN |
---|
18 | ENDIF |
---|
19 | C ----------------------------------------------------------------- |
---|
20 | C |
---|
21 | C* 1. DEFINE FUNDAMENTAL CONSTANTS. |
---|
22 | C ----------------------------- |
---|
23 | C |
---|
24 | WRITE(UNIT=6,FMT='(''0*** Constants of the ICM ***'')') |
---|
25 | RPI=2.*ASIN(1.) |
---|
26 | RCLUM=299792458. |
---|
27 | RHPLA=6.6260755E-34 |
---|
28 | RKBOL=1.380658E-23 |
---|
29 | RNAVO=6.0221367E+23 |
---|
30 | WRITE(UNIT=6,FMT='('' *** Fundamental constants ***'')') |
---|
31 | WRITE(UNIT=6,FMT='('' PI = '',E13.7,'' -'')')RPI |
---|
32 | WRITE(UNIT=6,FMT='('' c = '',E13.7,''m s-1'')') |
---|
33 | S RCLUM |
---|
34 | WRITE(UNIT=6,FMT='('' h = '',E13.7,''J s'')') |
---|
35 | S RHPLA |
---|
36 | WRITE(UNIT=6,FMT='('' K = '',E13.7,''J K-1'')') |
---|
37 | S RKBOL |
---|
38 | WRITE(UNIT=6,FMT='('' N = '',E13.7,''mol-1'')') |
---|
39 | S RNAVO |
---|
40 | C |
---|
41 | C ---------------------------------------------------------------- |
---|
42 | C |
---|
43 | C* 2. DEFINE ASTRONOMICAL CONSTANTS. |
---|
44 | C ------------------------------ |
---|
45 | C |
---|
46 | c TERRE |
---|
47 | c RDAY=86400. |
---|
48 | c REA=149597870000. |
---|
49 | c REPSM=0.409093 |
---|
50 | C |
---|
51 | c RSIYEA=365.25*RDAY*2.*RPI/6.283076 |
---|
52 | c 1/(duree du jour) = 1/(periode rotation) - 1/(periode revolution) |
---|
53 | c RSIDAY=RDAY/(1.+RDAY/RSIYEA) |
---|
54 | c ROMEGA=2.*RPI/RSIDAY |
---|
55 | |
---|
56 | c VENUS |
---|
57 | RSIDAY=20.9961e6 ! 243.01 j |
---|
58 | RSIYEA=19.4141e6 ! 224.7 j |
---|
59 | ROMEGA=2.*RPI/RSIDAY |
---|
60 | c 1/(duree du jour) = 1/(periode rotation) + 1/(periode revolution) |
---|
61 | RDAY=RSIDAY/(1.+RSIDAY/RSIYEA) ! 116.748 j |
---|
62 | REA=108.15e9 |
---|
63 | REPSM=0. ! 0. veut dire qu'on commence au point vernal |
---|
64 | c |
---|
65 | cIM on mets R_ecc, R_peri, R_incl dans conf_phys.F90 |
---|
66 | |
---|
67 | WRITE(UNIT=6,FMT='('' *** Astronomical constants ***'')') |
---|
68 | WRITE(UNIT=6,FMT='('' day = '',E13.7,'' s'')')RDAY |
---|
69 | WRITE(UNIT=6,FMT='('' half g. axis = '',E13.7,'' m'')')REA |
---|
70 | WRITE(UNIT=6,FMT='('' mean anomaly = '',E13.7,'' -'')')REPSM |
---|
71 | WRITE(UNIT=6,FMT='('' sideral year = '',E13.7,'' s'')')RSIYEA |
---|
72 | WRITE(UNIT=6,FMT='('' sideral day = '',E13.7,'' s'')')RSIDAY |
---|
73 | WRITE(UNIT=6,FMT='('' omega = '',E13.7,'' s-1'')') |
---|
74 | S ROMEGA |
---|
75 | c write(unit=6,fmt='('' excentricite = '',e13.7,''-'')')R_ecc |
---|
76 | c write(unit=6,fmt='('' equinoxe = '',e13.7,''-'')')R_peri |
---|
77 | c write(unit=6,fmt='('' inclinaison = '',e13.7,''-'')')R_incl |
---|
78 | C |
---|
79 | C ------------------------------------------------------------------ |
---|
80 | C |
---|
81 | C* 3. DEFINE GEOIDE. |
---|
82 | C -------------- |
---|
83 | C |
---|
84 | c TERRE |
---|
85 | c RG=9.80665 |
---|
86 | c RA=6371229. |
---|
87 | |
---|
88 | c VENUS |
---|
89 | RG=8.87 |
---|
90 | RA=6051300. |
---|
91 | |
---|
92 | R1SA=SNGL(1.D0/DBLE(RA)) |
---|
93 | WRITE(UNIT=6,FMT='('' *** Geoide ***'')') |
---|
94 | WRITE(UNIT=6,FMT='('' Gravity = '',E13.7,'' m s-2'')') |
---|
95 | S RG |
---|
96 | WRITE(UNIT=6,FMT='('' Planet radius = '',E13.7,'' m'')')RA |
---|
97 | WRITE(UNIT=6,FMT='('' Inverse P.R. = '',E13.7,'' m-1'')')R1SA |
---|
98 | C |
---|
99 | C ----------------------------------------------------------------- |
---|
100 | C |
---|
101 | C* 4. DEFINE RADIATION CONSTANTS. |
---|
102 | C --------------------------- |
---|
103 | C |
---|
104 | c z.x.li RSIGMA=2. * RPI**5 * RKBOL**4 /(15.* RCLUM**2 * RHPLA**3) |
---|
105 | rsigma = 2.*rpi**5 * (rkbol/rhpla)**3 * rkbol/rclum/rclum/15. |
---|
106 | cIM init. dans conf_phys.F90 RI0=1365. |
---|
107 | WRITE(UNIT=6,FMT='('' *** Radiation ***'')') |
---|
108 | WRITE(UNIT=6,FMT='('' Stefan-Bol. = '',E13.7,'' W m-2 K-4'' |
---|
109 | S )') RSIGMA |
---|
110 | cIM init. dans conf_phys.F90 WRITE(UNIT=6,FMT='('' Solar const. = '',E13.7,'' W m-2'')') |
---|
111 | cIM init. dans conf_phys.F90 S RI0 |
---|
112 | C |
---|
113 | C ----------------------------------------------------------------- |
---|
114 | C |
---|
115 | C* 5. DEFINE THERMODYNAMIC CONSTANTS, GAS PHASE. |
---|
116 | C ------------------------------------------ |
---|
117 | C |
---|
118 | R=RNAVO*RKBOL |
---|
119 | c TERRE |
---|
120 | c RMD=28.9644 |
---|
121 | RMV=18.0153 |
---|
122 | |
---|
123 | c VENUS |
---|
124 | RMD=43.44 |
---|
125 | |
---|
126 | RD=1000.*R/RMD |
---|
127 | RV=1000.*R/RMV |
---|
128 | c TERRE |
---|
129 | c RCPD=3.5*RD |
---|
130 | RCPV=4. *RV |
---|
131 | c VENUS |
---|
132 | ! ADAPTATION GCM POUR CP(T) |
---|
133 | ! VENUS: Cp(T) = RCPD*(T/T0)^nu (RCPD phys = cpp dyn) |
---|
134 | ! avec RCPD=1000., T0=460. et nu=0.35 |
---|
135 | RCPD=cpp_ |
---|
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 |
---|