1 | |
---|
2 | ! $Id$ |
---|
3 | |
---|
4 | SUBROUTINE conf_planete |
---|
5 | |
---|
6 | USE IOIPSL |
---|
7 | USE comconst_mod, ONLY: pi, g, molmass, kappa, cpp, omeg, rad, & |
---|
8 | year_day, daylen, daysec, ihf |
---|
9 | USE comvert_mod, ONLY: preff, pa |
---|
10 | IMPLICIT NONE |
---|
11 | |
---|
12 | |
---|
13 | ! Declarations : |
---|
14 | ! -------------- |
---|
15 | |
---|
16 | ! local: |
---|
17 | ! ------ |
---|
18 | |
---|
19 | ! --------------------------------------------- |
---|
20 | ! Initialisations de constantes de la dynamique |
---|
21 | ! --------------------------------------------- |
---|
22 | ! Pi |
---|
23 | pi=2.*asin(1.) |
---|
24 | |
---|
25 | !Reference surface pressure (Pa) |
---|
26 | ! 101080 : specific value for CMIP5 aqua/terra planets |
---|
27 | ! "Specify the initial dry mass to be equivalent to |
---|
28 | ! a global mean surface pressure (101325 minus 245) Pa." |
---|
29 | preff=101080. |
---|
30 | CALL getin('preff', preff) |
---|
31 | |
---|
32 | ! Reference pressure at which hybrid coord. become purely pressure |
---|
33 | ! pa=50000. |
---|
34 | pa=preff/2. |
---|
35 | CALL getin('pa', pa) |
---|
36 | |
---|
37 | ! Gravity |
---|
38 | g=9.80665 |
---|
39 | |
---|
40 | CALL getin('g',g) |
---|
41 | ! Molar mass of the atmosphere |
---|
42 | |
---|
43 | molmass = 28.9644 |
---|
44 | CALL getin('molmass',molmass) |
---|
45 | ! kappa=R/Cp et Cp |
---|
46 | |
---|
47 | kappa = 2./7. |
---|
48 | CALL getin('kappa',kappa) |
---|
49 | |
---|
50 | cpp=8.3145/molmass/kappa*1000. |
---|
51 | CALL getin('cpp',cpp) |
---|
52 | ! Radius of the planet |
---|
53 | |
---|
54 | rad = 6371229. |
---|
55 | CALL getin('radius',rad) |
---|
56 | |
---|
57 | ! Length of a standard day (s) |
---|
58 | daysec=86400. |
---|
59 | CALL getin('daysec',daysec) |
---|
60 | |
---|
61 | ! Rotation rate of the planet: |
---|
62 | ! Length of a solar day, in standard days |
---|
63 | daylen = 1. |
---|
64 | |
---|
65 | CALL getin('daylen',daylen) |
---|
66 | ! Number of days (standard) per year: |
---|
67 | |
---|
68 | year_day = 365.25 |
---|
69 | CALL getin('year_day',year_day) |
---|
70 | ! Omega |
---|
71 | ! omeg=2.*pi/86400. |
---|
72 | |
---|
73 | omeg=2.*pi/daysec*(1./daylen+1./year_day) |
---|
74 | CALL getin('omeg',omeg) |
---|
75 | |
---|
76 | ! Intrinsic heat flux (default: none) (only used if planet_type="giant") |
---|
77 | ihf = 0. |
---|
78 | CALL getin('ihf',ihf) |
---|
79 | |
---|
80 | END SUBROUTINE conf_planete |
---|