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