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