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 | IF (firstcall) THEN |
---|
89 | |
---|
90 | write(*,*) 'In dustdevil :' |
---|
91 | write(*,*) ' q2top= ',q2top,' seuil= ', seuil |
---|
92 | |
---|
93 | c A rough estimation of the horizontal drag coefficient Cd |
---|
94 | c (the scale heigh is taken to be 13 km since we are typically |
---|
95 | c dealing with daytime temperature around 250K. |
---|
96 | c |
---|
97 | z1= -0.5*13.e3*log(pplev(1,2)/pplev(1,1)) |
---|
98 | Cd = (0.4/log(z1/z0_default))**2 |
---|
99 | |
---|
100 | firstcall=.false. |
---|
101 | |
---|
102 | c Temporaire |
---|
103 | c open(77,file='devil') |
---|
104 | |
---|
105 | ENDIF |
---|
106 | |
---|
107 | c----------------------------------------------------------------------- |
---|
108 | c Initialisation |
---|
109 | do iq=1,nq |
---|
110 | do l=1,nlay |
---|
111 | do ig=1,ngrid |
---|
112 | pdqdev(ig,l,iq)= 0 |
---|
113 | end do |
---|
114 | end do |
---|
115 | end do |
---|
116 | |
---|
117 | |
---|
118 | c----------------------------------------------------------------------- |
---|
119 | c Determining the top of the boundary layer |
---|
120 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
121 | do ig=1,ngrid |
---|
122 | do l=2,nlay-1 |
---|
123 | if (pq2(ig,l).lt.q2top)then |
---|
124 | ltop(ig)=l |
---|
125 | goto 99 |
---|
126 | end if |
---|
127 | enddo |
---|
128 | 99 continue |
---|
129 | |
---|
130 | c *************************************** |
---|
131 | cc if (ptsurf(ig).gt.255)then |
---|
132 | c write(*,*) 'tsurf, ztop (km): ', ig, |
---|
133 | c & ptsurf(ig), -12.*log(pplev(ig,ltop(ig))/pplev(ig,1)) |
---|
134 | c if ((ptsurf(ig).gt.50.).and.( |
---|
135 | c & (-12.*log(pplev(ig,ltop(ig))/pplev(ig,1))).gt.60.))then |
---|
136 | c do l=1,nlay |
---|
137 | c write(*,*) l, |
---|
138 | c & -12.*log(pplev(ig,l)/pplev(ig,1)),pq2(ig,l) |
---|
139 | c end do |
---|
140 | c end if |
---|
141 | cc end if |
---|
142 | c *************************************** |
---|
143 | |
---|
144 | enddo |
---|
145 | |
---|
146 | c *************************************** |
---|
147 | c do ig=100,148 |
---|
148 | c write(*,*)'time,tsurf,ztop', localtime(ig),ptsurf(ig), |
---|
149 | c & -12.*log(pplev(ig,ltop(ig))/pplev(ig,1)) |
---|
150 | c end do |
---|
151 | c *************************************** |
---|
152 | |
---|
153 | |
---|
154 | c Calculation : dust devil intensity |
---|
155 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
156 | do ig=1,ngrid |
---|
157 | |
---|
158 | c -------------------------------------------------- |
---|
159 | c 1) Version 1 : sensible heat flux using actual wind : |
---|
160 | c Wind magnitude: |
---|
161 | c wind = sqrt(pu(ig,1)**2+pv(ig,1)**2) |
---|
162 | c |
---|
163 | c -------------------------------------------------- |
---|
164 | c 2) Version 2 : sensible heat flux using wind = 15 m/s |
---|
165 | wind = 15. |
---|
166 | c ---------------------------------------------------- |
---|
167 | c Density : |
---|
168 | rho=pplev(ig,1)/(R*pt(ig,1)) |
---|
169 | |
---|
170 | c Sensible heat flux (W.m-2) (>0 if up) |
---|
171 | Fs= rho*cpp*Cd * wind |
---|
172 | & * (ptsurf(ig) -pt(ig,1)) |
---|
173 | b= (pplev(ig,1)**(rcp+1) - pplev(ig,ltop(ig))**(rcp+1)) / |
---|
174 | & ( (pplev(ig,1)-pplev(ig,ltop(ig)))*(rcp+1)*pplev(ig,1)**rcp) |
---|
175 | |
---|
176 | c b_diag(ig) = b ! TEMPORAIRE (pour diagnostique) |
---|
177 | |
---|
178 | c Energy flux available to drive dust devil (W.m-2) : (1-b)*Fs |
---|
179 | c Dust devil activity : |
---|
180 | devila(ig)= max( 0. , (1-b)*Fs - seuil ) |
---|
181 | enddo |
---|
182 | c |
---|
183 | c lifted dust (kg m-2 s-1) (<0 when lifting) |
---|
184 | c ~~~~~~~~~~ |
---|
185 | do iq=1,nq |
---|
186 | do ig=1,ngrid |
---|
187 | pdqs_dev(ig,iq)= - alpha_devil(iq) * devila(ig) |
---|
188 | end do |
---|
189 | end do |
---|
190 | |
---|
191 | c Injection of dust in the atmosphere (up to the top of pbl) |
---|
192 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
193 | do iq=1,nq |
---|
194 | do ig=1,ngrid |
---|
195 | if (devila(ig).ne.0.) then |
---|
196 | do l=1,ltop(ig) |
---|
197 | pdqdev(ig,l,iq)=-pdqs_dev(ig,iq)*g/ |
---|
198 | & (pplev(ig,1)-pplev(ig,ltop(ig))) |
---|
199 | end do |
---|
200 | end if |
---|
201 | end do |
---|
202 | end do |
---|
203 | |
---|
204 | c ********************************************************* |
---|
205 | c TEMPORAIRE AVEC ANLDEVIL: |
---|
206 | c IF (ngrid.gt.1) THEN |
---|
207 | c do ig=2,ngrid-1 |
---|
208 | c write(77,88) lati(ig)*180./pi,localtime(ig), |
---|
209 | c & -12.*log(pplev(ig,ltop(ig))/pplev(ig,1)), |
---|
210 | c & devil(ig),min(sqrt(pu(ig,1)**2+pv(ig,1)**2),40.), |
---|
211 | c & ptsurf(ig)-pt(ig,1),ptsurf(ig),pplev(ig,1) |
---|
212 | c end do |
---|
213 | c88 format (f7.3,1x,f7.3,1x,f6.3,1x,f6.4,1x,f7.4,1x, |
---|
214 | c & f7.3,1x,f7.3,1x,f9.3) |
---|
215 | c do ig=1,ngrid |
---|
216 | c ztop(ig) = -12.*log(pplev(ig,ltop(ig))/pplev(ig,1)) |
---|
217 | c magwind(ig) = sqrt(pu(ig,1)**2+pv(ig,1)**2) |
---|
218 | c t1(ig) =max(ptsurf(ig)- pt(ig,1),0.) |
---|
219 | c end do |
---|
220 | |
---|
221 | c call WRITEDIAGFI(ngrid,'dqs_dev','dqs devil', |
---|
222 | c & 'kg.m-2.s-1',2,pdqs_dev) |
---|
223 | c call WRITEDIAGFI(ngrid,'wind','wind', |
---|
224 | c & 'm.s-1',2,magwind) |
---|
225 | c call WRITEDIAGFI(ngrid,'ztop','top pbl', |
---|
226 | c & 'km',2,ztop) |
---|
227 | c call WRITEDIAGFI(ngrid,'tsurf','tsurf', |
---|
228 | c & 'K',2,ptsurf) |
---|
229 | c call WRITEDIAGFI(ngrid,'T1','T(1)', |
---|
230 | c & 'K',2,t1) |
---|
231 | c call WRITEDIAGFI(ngrid,'b','b', |
---|
232 | c & ' ',2,b_diag) |
---|
233 | c END If |
---|
234 | c ********************************************************* |
---|
235 | |
---|
236 | RETURN |
---|
237 | END |
---|
238 | |
---|
239 | |
---|