1 | SUBROUTINE dustdevil(ngrid,nlay,nq, pplev,pu,pv,pt, ptsurf,pq2, |
---|
2 | & pdqdev,pdqs_dev) |
---|
3 | IMPLICIT NONE |
---|
4 | |
---|
5 | c======================================================================= |
---|
6 | c |
---|
7 | c |
---|
8 | c VERSION SPECIAL TRACEURS : |
---|
9 | c Parameterization of dust devil activities |
---|
10 | c to estimate dust lifting |
---|
11 | c The dust devil activity is estimated based on |
---|
12 | c Renno et al. 1998 (JAS 55, 3244-3252) |
---|
13 | c |
---|
14 | c It is proportional to (1-b)*Fs |
---|
15 | c |
---|
16 | c With b= [ps**(rcp+1) - ptop**(rcp+1)] / [(ps-ptop)*(rcp+1)* ps**rcp] |
---|
17 | c with ptop pressure of the top of the boundary layer |
---|
18 | c rcp = R/cp |
---|
19 | c |
---|
20 | c and Fs the surface sensible heat flux = Cd*|U|*(T(1) -Tsurf) |
---|
21 | c |
---|
22 | c======================================================================= |
---|
23 | |
---|
24 | c----------------------------------------------------------------------- |
---|
25 | c declarations: |
---|
26 | c ------------- |
---|
27 | |
---|
28 | #include "dimensions.h" |
---|
29 | #include "dimphys.h" |
---|
30 | #include "comcstfi.h" |
---|
31 | c#include "comconst.h" ! TEMPORAIRE AVEC ANLDEVIL !!!! |
---|
32 | #include "planete.h" |
---|
33 | #include "comgeomfi.h" |
---|
34 | #include "tracer.h" |
---|
35 | c arguments: |
---|
36 | c ---------- |
---|
37 | |
---|
38 | INTEGER ngrid,nlay |
---|
39 | REAL pplev(ngrid,nlay+1) |
---|
40 | REAL pt(ngrid,nlay) |
---|
41 | REAL pu(ngrid,nlay) |
---|
42 | REAL pv(ngrid,nlay) |
---|
43 | REAL pq2(ngrid,nlay+1) |
---|
44 | REAL ptsurf(ngrid) |
---|
45 | |
---|
46 | c Traceurs : |
---|
47 | integer nq |
---|
48 | real pdqdev(ngrid,nlay,nq) |
---|
49 | real pdqs_dev(ngrid,nq) |
---|
50 | |
---|
51 | c local: |
---|
52 | c ------ |
---|
53 | |
---|
54 | INTEGER ig,l,iq |
---|
55 | real Cd, z1 |
---|
56 | save Cd |
---|
57 | |
---|
58 | LOGICAL firstcall |
---|
59 | SAVE firstcall |
---|
60 | |
---|
61 | |
---|
62 | REAL devila(ngridmx) |
---|
63 | integer ltop(ngridmx) |
---|
64 | real b,rho,Fs,wind |
---|
65 | |
---|
66 | |
---|
67 | |
---|
68 | REAL q2top , seuil |
---|
69 | SAVE q2top , seuil |
---|
70 | DATA q2top/.5/ ! value of q2 at the top of PBL |
---|
71 | DATA seuil/.3/ ! value of minimum dust devil activity for dust lifting |
---|
72 | |
---|
73 | |
---|
74 | DATA firstcall/.true./ |
---|
75 | |
---|
76 | c TEMPORAIRE AVEC ANLDEVIL : ************* |
---|
77 | c real b_diag(ngridmx) |
---|
78 | c real localtime(ngridmx) |
---|
79 | c common/temporaire/localtime |
---|
80 | c real ztop(ngridmx),magwind(ngridmx),t1(ngridmx) |
---|
81 | c real rcp ,cpp |
---|
82 | c rcp = kappa |
---|
83 | c cpp = r/rcp |
---|
84 | c ********************************** |
---|
85 | |
---|
86 | |
---|
87 | c----------------------------------------------------------------------- |
---|
88 | c initialisation |
---|
89 | c -------------- |
---|
90 | |
---|
91 | IF (firstcall) THEN |
---|
92 | |
---|
93 | write(*,*) 'In dustdevil :' |
---|
94 | write(*,*) ' q2top= ',q2top,' seuil= ', seuil |
---|
95 | c un petit test de coherence: |
---|
96 | IF(ngrid.NE.ngridmx) THEN |
---|
97 | PRINT*,'STOP dans coefdifv' |
---|
98 | PRINT*,'probleme de dimensions :' |
---|
99 | PRINT*,'ngrid =',ngrid |
---|
100 | PRINT*,'ngridmx =',ngridmx |
---|
101 | STOP |
---|
102 | ENDIF |
---|
103 | |
---|
104 | c A rough estimation of the horizontal drag coefficient Cd |
---|
105 | c (the scale heigh is taken to be 13 km since we are typically |
---|
106 | c dealing with daytime temperature around 250K. |
---|
107 | c |
---|
108 | z1= -0.5*13.e3*log(pplev(1,2)/pplev(1,1)) |
---|
109 | Cd = (0.4/log(z1/z0))**2 |
---|
110 | |
---|
111 | firstcall=.false. |
---|
112 | |
---|
113 | c Temporaire |
---|
114 | c open(77,file='devil') |
---|
115 | |
---|
116 | ENDIF |
---|
117 | |
---|
118 | c----------------------------------------------------------------------- |
---|
119 | c Initialisation |
---|
120 | do iq=1,nq |
---|
121 | do l=1,nlay |
---|
122 | do ig=1,ngrid |
---|
123 | pdqdev(ig,l,iq)= 0 |
---|
124 | end do |
---|
125 | end do |
---|
126 | end do |
---|
127 | |
---|
128 | |
---|
129 | c----------------------------------------------------------------------- |
---|
130 | c Determining the top of the boundary layer |
---|
131 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
132 | do ig=1,ngrid |
---|
133 | do l=2,nlay-1 |
---|
134 | if (pq2(ig,l).lt.q2top)then |
---|
135 | ltop(ig)=l |
---|
136 | goto 99 |
---|
137 | end if |
---|
138 | enddo |
---|
139 | 99 continue |
---|
140 | |
---|
141 | c *************************************** |
---|
142 | cc if (ptsurf(ig).gt.255)then |
---|
143 | c write(*,*) 'tsurf, ztop (km): ', ig, |
---|
144 | c & ptsurf(ig), -12.*log(pplev(ig,ltop(ig))/pplev(ig,1)) |
---|
145 | c if ((ptsurf(ig).gt.50.).and.( |
---|
146 | c & (-12.*log(pplev(ig,ltop(ig))/pplev(ig,1))).gt.60.))then |
---|
147 | c do l=1,nlay |
---|
148 | c write(*,*) l, |
---|
149 | c & -12.*log(pplev(ig,l)/pplev(ig,1)),pq2(ig,l) |
---|
150 | c end do |
---|
151 | c end if |
---|
152 | cc end if |
---|
153 | c *************************************** |
---|
154 | |
---|
155 | enddo |
---|
156 | |
---|
157 | c *************************************** |
---|
158 | c do ig=100,148 |
---|
159 | c write(*,*)'time,tsurf,ztop', localtime(ig),ptsurf(ig), |
---|
160 | c & -12.*log(pplev(ig,ltop(ig))/pplev(ig,1)) |
---|
161 | c end do |
---|
162 | c *************************************** |
---|
163 | |
---|
164 | |
---|
165 | c Calculation : dust devil intensity |
---|
166 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
167 | do ig=1,ngrid |
---|
168 | |
---|
169 | c -------------------------------------------------- |
---|
170 | c 1) Version 1 : sensible heat flux using actual wind : |
---|
171 | c Wind magnitude: |
---|
172 | c wind = sqrt(pu(ig,1)**2+pv(ig,1)**2) |
---|
173 | c |
---|
174 | c -------------------------------------------------- |
---|
175 | c 2) Version 2 : sensible heat flux using wind = 15 m/s |
---|
176 | wind = 15. |
---|
177 | c ---------------------------------------------------- |
---|
178 | c Density : |
---|
179 | rho=pplev(ig,1)/(R*pt(ig,1)) |
---|
180 | |
---|
181 | c Sensible heat flux (W.m-2) (>0 if up) |
---|
182 | Fs= rho*cpp*Cd * wind |
---|
183 | & * (ptsurf(ig) -pt(ig,1)) |
---|
184 | b= (pplev(ig,1)**(rcp+1) - pplev(ig,ltop(ig))**(rcp+1)) / |
---|
185 | & ( (pplev(ig,1)-pplev(ig,ltop(ig)))*(rcp+1)*pplev(ig,1)**rcp) |
---|
186 | |
---|
187 | c b_diag(ig) = b ! TEMPORAIRE (pour diagnostique) |
---|
188 | |
---|
189 | c Energy flux available to drive dust devil (W.m-2) : (1-b)*Fs |
---|
190 | c Dust devil activity : |
---|
191 | devila(ig)= max( 0. , (1-b)*Fs - seuil ) |
---|
192 | enddo |
---|
193 | c |
---|
194 | c lifted dust (kg m-2 s-1) (<0 when lifting) |
---|
195 | c ~~~~~~~~~~ |
---|
196 | do iq=1,nq |
---|
197 | do ig=1,ngrid |
---|
198 | pdqs_dev(ig,iq)= - alpha_devil(iq) * devila(ig) |
---|
199 | end do |
---|
200 | end do |
---|
201 | |
---|
202 | c Injection of dust in the atmosphere (up to the top of pbl) |
---|
203 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
204 | do iq=1,nq |
---|
205 | do ig=1,ngrid |
---|
206 | if (devila(ig).ne.0.) then |
---|
207 | do l=1,ltop(ig) |
---|
208 | pdqdev(ig,l,iq)=-pdqs_dev(ig,iq)*g/ |
---|
209 | & (pplev(ig,1)-pplev(ig,ltop(ig))) |
---|
210 | end do |
---|
211 | end if |
---|
212 | end do |
---|
213 | end do |
---|
214 | |
---|
215 | c ********************************************************* |
---|
216 | c TEMPORAIRE AVEC ANLDEVIL: |
---|
217 | c IF (ngrid.gt.1) THEN |
---|
218 | c do ig=2,ngridmx-1 |
---|
219 | c write(77,88) lati(ig)*180./pi,localtime(ig), |
---|
220 | c & -12.*log(pplev(ig,ltop(ig))/pplev(ig,1)), |
---|
221 | c & devil(ig),min(sqrt(pu(ig,1)**2+pv(ig,1)**2),40.), |
---|
222 | c & ptsurf(ig)-pt(ig,1),ptsurf(ig),pplev(ig,1) |
---|
223 | c end do |
---|
224 | c88 format (f7.3,1x,f7.3,1x,f6.3,1x,f6.4,1x,f7.4,1x, |
---|
225 | c & f7.3,1x,f7.3,1x,f9.3) |
---|
226 | c do ig=1,ngridmx |
---|
227 | c ztop(ig) = -12.*log(pplev(ig,ltop(ig))/pplev(ig,1)) |
---|
228 | c magwind(ig) = sqrt(pu(ig,1)**2+pv(ig,1)**2) |
---|
229 | c t1(ig) =max(ptsurf(ig)- pt(ig,1),0.) |
---|
230 | c end do |
---|
231 | |
---|
232 | c call WRITEDIAGFI(ngridmx,'dqs_dev','dqs devil', |
---|
233 | c & 'kg.m-2.s-1',2,pdqs_dev) |
---|
234 | c call WRITEDIAGFI(ngridmx,'wind','wind', |
---|
235 | c & 'm.s-1',2,magwind) |
---|
236 | c call WRITEDIAGFI(ngridmx,'ztop','top pbl', |
---|
237 | c & 'km',2,ztop) |
---|
238 | c call WRITEDIAGFI(ngridmx,'tsurf','tsurf', |
---|
239 | c & 'K',2,ptsurf) |
---|
240 | c call WRITEDIAGFI(ngridmx,'T1','T(1)', |
---|
241 | c & 'K',2,t1) |
---|
242 | c call WRITEDIAGFI(ngridmx,'b','b', |
---|
243 | c & ' ',2,b_diag) |
---|
244 | c END If |
---|
245 | c ********************************************************* |
---|
246 | |
---|
247 | RETURN |
---|
248 | END |
---|
249 | |
---|
250 | |
---|