1 | ! |
---|
2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/radlwsw.F,v 1.2 2004/10/27 10:14:46 lmdzadmin Exp $ |
---|
3 | ! |
---|
4 | SUBROUTINE radlwsw(dist, rmu0, fract, zzlev, |
---|
5 | . paprs, pplay,tsol, pt) |
---|
6 | |
---|
7 | c====================================================================== |
---|
8 | c Auteur(s): Z.X. Li (LMD/CNRS) date: 19960719 |
---|
9 | c Objet: interface entre le modele et les rayonnements |
---|
10 | c Arguments: |
---|
11 | c dist-----input-R- distance astronomique terre-soleil |
---|
12 | c rmu0-----input-R- cosinus de l'angle zenithal |
---|
13 | c fract----input-R- duree d'ensoleillement normalisee |
---|
14 | c paprs----input-R- pression a inter-couche (Pa) |
---|
15 | c pplay----input-R- pression au milieu de couche (Pa) |
---|
16 | c tsol-----input-R- temperature du sol (en K) |
---|
17 | c pt-------input-R- temperature (K) |
---|
18 | c |
---|
19 | |
---|
20 | c S. Lebonnois 12/04/2007 |
---|
21 | c VERSION NEWTONIAN COOLING pour Venus (no diurnal cycle) |
---|
22 | c update 01/2014 |
---|
23 | |
---|
24 | c====================================================================== |
---|
25 | use dimphy |
---|
26 | USE comgeomphy |
---|
27 | USE phys_state_var_mod, only: heat,cool,radsol, |
---|
28 | . topsw,toplw,solsw,sollw,sollwdown,lwnet,swnet |
---|
29 | USE write_field_phy |
---|
30 | IMPLICIT none |
---|
31 | #include "dimensions.h" |
---|
32 | #include "YOMCST.h" |
---|
33 | #include "clesphys.h" |
---|
34 | |
---|
35 | c ARGUMENTS |
---|
36 | real rmu0(klon), fract(klon), dist |
---|
37 | |
---|
38 | real zzlev(klon,klev+1),paprs(klon,klev+1), pplay(klon,klev) |
---|
39 | real tsol(klon) |
---|
40 | real pt(klon,klev) |
---|
41 | |
---|
42 | c LOCAL VARIABLES |
---|
43 | INTEGER i,j,k |
---|
44 | integer nlevCLee,level |
---|
45 | parameter (nlevCLee=30) |
---|
46 | REAL pressCLee(nlevCLee+1),tempCLee(nlevCLee+1) |
---|
47 | real dt_epCLee(nlevCLee+1),etaCLee(nlevCLee+1) |
---|
48 | real tauCLee |
---|
49 | parameter (tauCLee=25*86400) ! en s |
---|
50 | real ztemp,zdt,fact |
---|
51 | real dTsdt(klev),zt_eq(klon,klev) |
---|
52 | save zt_eq |
---|
53 | |
---|
54 | data etaCLee/9.602e-1,8.679e-1,7.577e-1,6.420e-1,5.299e-1, |
---|
55 | . 4.273e-1,3.373e-1,2.610e-1,1.979e-1,1.472e-1, |
---|
56 | . 1.074e-1,7.672e-2,5.361e-2,3.657e-2,2.430e-2, |
---|
57 | . 1.569e-2,9.814e-3,5.929e-3,3.454e-3,1.934e-3, |
---|
58 | . 1.043e-3,5.400e-4,2.710e-4,1.324e-4,6.355e-5, |
---|
59 | . 3.070e-5,1.525e-5,7.950e-6,4.500e-6,2.925e-6, |
---|
60 | . 2.265e-6/ |
---|
61 | data tempCLee/728.187,715.129,697.876,677.284,654.078,628.885, |
---|
62 | . 602.225,574.542,546.104,517.339,488.560,459.932, |
---|
63 | . 431.741,404.202,377.555,352.042,327.887,305.313, |
---|
64 | . 284.556,265.697,248.844,233.771,220.368,208.247, |
---|
65 | . 197.127,187.104,178.489,171.800,167.598,165.899, |
---|
66 | . 165.676/ |
---|
67 | data dt_epCLee/6.101 , 6.136 , 6.176 , 6.410 , 6.634 , 6.678 , |
---|
68 | . 6.719 , 6.762 , 7.167 , 7.524 , 9.840 ,14.948 , |
---|
69 | . 21.370 ,28.746 ,36.373 ,43.315 ,48.534 ,51.175 , |
---|
70 | . 50.757 ,47.342 ,41.536 ,34.295 ,26.758 ,19.807 , |
---|
71 | . 14.001 , 9.599 , 6.504 , 4.439 , 3.126 , 2.370 , |
---|
72 | . 2.000/ |
---|
73 | c |
---|
74 | |
---|
75 | logical firstcall |
---|
76 | data firstcall/.true./ |
---|
77 | save firstcall |
---|
78 | |
---|
79 | c Initialisations |
---|
80 | c----------------- |
---|
81 | |
---|
82 | if (firstcall) then |
---|
83 | |
---|
84 | PRINT*,"******* ATTENTION, NEWTONIAN COOLING ********" |
---|
85 | |
---|
86 | pressCLee = etaCLee * 9.2e6 |
---|
87 | |
---|
88 | DO i = 1, klon |
---|
89 | |
---|
90 | do k = 1,klev |
---|
91 | |
---|
92 | level = 1 |
---|
93 | do j=1,nlevCLee |
---|
94 | if (pressCLee(j).gt.pplay(i,k)) level = j |
---|
95 | enddo |
---|
96 | |
---|
97 | fact = (log10(pplay(i,k))-log10(pressCLee(level))) |
---|
98 | . /(log10(pressCLee(level+1))-log10(pressCLee(level))) |
---|
99 | ztemp = tempCLee(level)*(1-fact)+tempCLee(level+1)*fact |
---|
100 | zdt = dt_epCLee(level)*(1-fact)+dt_epCLee(level+1)*fact |
---|
101 | c zt_eq(i,k) = ztemp + zdt*(cos(rlatd(i)*RPI/180.)-2./RPI) |
---|
102 | zt_eq(i,k) = ztemp + zdt*(cos(rlatd(i)*RPI/180.)-RPI/4.) |
---|
103 | |
---|
104 | enddo |
---|
105 | |
---|
106 | ENDDO !i |
---|
107 | |
---|
108 | endif ! firstcall |
---|
109 | |
---|
110 | c+++++++ BOUCLE SUR LA GRILLE +++++++++++++++++++++++++ |
---|
111 | DO j = 1,klon |
---|
112 | |
---|
113 | do k = 1,klev |
---|
114 | dTsdt(k) = -(t(j,k)-zt_eq(j,k))/tauCLee ! en K/s |
---|
115 | enddo |
---|
116 | |
---|
117 | radsol(j) = 0. ! + vers bas |
---|
118 | topsw(j) = 0. ! + vers bas |
---|
119 | toplw(j) = 0. ! + vers haut |
---|
120 | solsw(j) = 0. ! + vers bas |
---|
121 | sollw(j) = 0. ! + vers bas |
---|
122 | sollwdown(j) = 0. ! + vers bas |
---|
123 | |
---|
124 | DO k = 1, klev+1 |
---|
125 | lwnet (j,k) = 0. |
---|
126 | swnet (j,k) = 0. |
---|
127 | ENDDO |
---|
128 | |
---|
129 | DO k = 1, klev |
---|
130 | heat (j,k) = dTsdt(k) ! K/s |
---|
131 | cool (j,k) = 0. |
---|
132 | ENDDO |
---|
133 | c |
---|
134 | ENDDO !j |
---|
135 | c+++++++ FIN BOUCLE SUR LA GRILLE +++++++++++++++++++++++++ |
---|
136 | |
---|
137 | firstcall = .false. |
---|
138 | RETURN |
---|
139 | END |
---|
140 | |
---|