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