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