[1437] | 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 |
---|
[2597] | 12 | USE comconst_mod, ONLY: pi, g, molmass, kappa, cpp, omeg, rad, & |
---|
| 13 | year_day, daylen, daysec, ihf |
---|
[2600] | 14 | USE comvert_mod, ONLY: preff, pa |
---|
[1437] | 15 | IMPLICIT NONE |
---|
| 16 | ! |
---|
| 17 | ! |
---|
| 18 | ! Declarations : |
---|
| 19 | ! -------------- |
---|
[2600] | 20 | |
---|
[1437] | 21 | ! |
---|
| 22 | ! local: |
---|
| 23 | ! ------ |
---|
| 24 | |
---|
| 25 | ! --------------------------------------------- |
---|
| 26 | ! Initialisations de constantes de la dynamique |
---|
| 27 | ! --------------------------------------------- |
---|
| 28 | ! Pi |
---|
| 29 | pi=2.*asin(1.) |
---|
| 30 | |
---|
| 31 | !Reference surface pressure (Pa) |
---|
| 32 | preff=101325. |
---|
| 33 | CALL getin('preff', preff) |
---|
| 34 | ! Reference pressure at which hybrid coord. become purely pressure |
---|
| 35 | ! pa=50000. |
---|
| 36 | pa=preff/2. |
---|
| 37 | CALL getin('pa', pa) |
---|
| 38 | ! Gravity |
---|
| 39 | g=9.80665 |
---|
| 40 | CALL getin('g',g) |
---|
| 41 | ! Molar mass of the atmosphere |
---|
| 42 | molmass = 28.9644 |
---|
| 43 | CALL getin('molmass',molmass) |
---|
| 44 | ! kappa=R/Cp et Cp |
---|
| 45 | kappa = 2./7. |
---|
| 46 | CALL getin('kappa',kappa) |
---|
| 47 | cpp=8.3145/molmass/kappa*1000. |
---|
| 48 | CALL getin('cpp',cpp) |
---|
| 49 | ! Radius of the planet |
---|
| 50 | rad = 6371229. |
---|
| 51 | CALL getin('radius',rad) |
---|
| 52 | ! Length of a standard day (s) |
---|
| 53 | daysec=86400. |
---|
| 54 | CALL getin('daysec',daysec) |
---|
| 55 | ! Rotation rate of the planet: |
---|
| 56 | ! Length of a solar day, in standard days |
---|
| 57 | daylen = 1. |
---|
| 58 | CALL getin('daylen',daylen) |
---|
| 59 | ! Number of days (standard) per year: |
---|
| 60 | year_day = 365.25 |
---|
| 61 | CALL getin('year_day',year_day) |
---|
| 62 | ! Omega |
---|
| 63 | ! omeg=2.*pi/86400. |
---|
| 64 | omeg=2.*pi/daysec*(1./daylen+1./year_day) |
---|
| 65 | CALL getin('omeg',omeg) |
---|
| 66 | |
---|
[1505] | 67 | ! Intrinsic heat flux (default: none) (only used if planet_type="giant") |
---|
| 68 | ihf = 0. |
---|
| 69 | call getin('ihf',ihf) |
---|
| 70 | |
---|
[1437] | 71 | END SUBROUTINE conf_planete |
---|