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