[3] | 1 | SUBROUTINE orodrag( nlon,nlev |
---|
| 2 | i , kgwd, kdx, ktest |
---|
| 3 | r , ptsphy |
---|
| 4 | r , paphm1,papm1,pgeom1,pn2m1,ptm1,pum1,pvm1 |
---|
| 5 | r , pmea, pstd, psig, pgam, pthe, ppic, pval |
---|
| 6 | c outputs |
---|
| 7 | r , pulow,pvlow |
---|
| 8 | r , pvom,pvol,pte ) |
---|
| 9 | |
---|
[101] | 10 | use dimphy |
---|
[3] | 11 | IMPLICIT NONE |
---|
| 12 | |
---|
| 13 | c |
---|
| 14 | c |
---|
| 15 | c**** *orodrag* - does the SSO drag parametrization. |
---|
| 16 | c |
---|
| 17 | c purpose. |
---|
| 18 | c -------- |
---|
| 19 | c |
---|
| 20 | c this routine computes the physical tendencies of the |
---|
| 21 | c prognostic variables u,v and t due to vertical transports by |
---|
| 22 | c subgridscale orographically excited gravity waves, and to |
---|
| 23 | c low level blocked flow drag. |
---|
| 24 | c |
---|
| 25 | c** interface. |
---|
| 26 | c ---------- |
---|
| 27 | c called from *drag_noro*. |
---|
| 28 | c |
---|
| 29 | c the routine takes its input from the long-term storage: |
---|
| 30 | c u,v,t and p at t-1. |
---|
| 31 | c |
---|
| 32 | c explicit arguments : |
---|
| 33 | c -------------------- |
---|
| 34 | c ==== inputs === |
---|
| 35 | c nlon----input-I-Total number of horizontal points that get into physics |
---|
| 36 | c nlev----input-I-Number of vertical levels |
---|
| 37 | c |
---|
| 38 | c kgwd- -input-I: Total nb of points where the orography schemes are active |
---|
| 39 | c ktest--input-I: Flags to indicate active points |
---|
| 40 | c kdx----input-I: Locate the physical location of an active point. |
---|
| 41 | c ptsphy--input-R-Time-step (s) |
---|
| 42 | c paphm1--input-R: pressure at model 1/2 layer |
---|
| 43 | c papm1---input-R: pressure at model layer |
---|
| 44 | c pgeom1--input-R: Altitude of layer above ground |
---|
| 45 | c pn2m1---input-R-Brunt-Vaisala freq.^2 at 1/2 layers |
---|
| 46 | c ptm1, pum1, pvm1--R-: t, u and v |
---|
| 47 | c pmea----input-R-Mean Orography (m) |
---|
| 48 | C pstd----input-R-SSO standard deviation (m) |
---|
| 49 | c psig----input-R-SSO slope |
---|
| 50 | c pgam----input-R-SSO Anisotropy |
---|
| 51 | c pthe----input-R-SSO Angle |
---|
| 52 | c ppic----input-R-SSO Peacks elevation (m) |
---|
| 53 | c pval----input-R-SSO Valleys elevation (m) |
---|
| 54 | |
---|
| 55 | integer nlon,nlev,kgwd |
---|
| 56 | real ptsphy |
---|
| 57 | |
---|
| 58 | c ==== outputs === |
---|
| 59 | c pulow, pvlow -output-R: Low-level wind |
---|
| 60 | c |
---|
| 61 | c pte -----output-R: T tendency |
---|
| 62 | c pvom-----output-R: U tendency |
---|
| 63 | c pvol-----output-R: V tendency |
---|
| 64 | c |
---|
| 65 | c |
---|
| 66 | c Implicit Arguments: |
---|
| 67 | c =================== |
---|
| 68 | c |
---|
| 69 | c klon-common-I: Number of points seen by the physics |
---|
| 70 | c klev-common-I: Number of vertical layers |
---|
| 71 | c |
---|
| 72 | c method. |
---|
| 73 | c ------- |
---|
| 74 | c |
---|
| 75 | c externals. |
---|
| 76 | c ---------- |
---|
| 77 | Coff integer ismin, ismax |
---|
| 78 | Coff external ismin, ismax |
---|
| 79 | c |
---|
| 80 | c reference. |
---|
| 81 | c ---------- |
---|
| 82 | c |
---|
| 83 | c author. |
---|
| 84 | c ------- |
---|
| 85 | c m.miller + b.ritter e.c.m.w.f. 15/06/86. |
---|
| 86 | c |
---|
| 87 | c f.lott + m. miller e.c.m.w.f. 22/11/94 |
---|
| 88 | c----------------------------------------------------------------------- |
---|
| 89 | c |
---|
| 90 | c |
---|
| 91 | #include "YOMCST.h" |
---|
| 92 | #include "YOEGWD.h" |
---|
| 93 | |
---|
| 94 | c----------------------------------------------------------------------- |
---|
| 95 | c |
---|
| 96 | c* 0.1 arguments |
---|
| 97 | c --------- |
---|
| 98 | c |
---|
| 99 | c |
---|
| 100 | real pte(nlon,nlev), |
---|
| 101 | * pvol(nlon,nlev), |
---|
| 102 | * pvom(nlon,nlev), |
---|
| 103 | * pulow(nlon), |
---|
| 104 | * pvlow(nlon) |
---|
| 105 | real pum1(nlon,nlev), |
---|
| 106 | * pvm1(nlon,nlev), |
---|
| 107 | * ptm1(nlon,nlev), |
---|
| 108 | * pmea(nlon),pstd(nlon),psig(nlon), |
---|
| 109 | * pgam(nlon),pthe(nlon),ppic(nlon),pval(nlon), |
---|
| 110 | * pgeom1(nlon,nlev),pn2m1(nlon,nlev), |
---|
| 111 | * papm1(nlon,nlev), |
---|
| 112 | * paphm1(nlon,nlev+1) |
---|
| 113 | c |
---|
| 114 | integer kdx(nlon),ktest(nlon) |
---|
| 115 | c----------------------------------------------------------------------- |
---|
| 116 | c |
---|
| 117 | c* 0.2 local arrays |
---|
| 118 | c ------------ |
---|
| 119 | integer isect(klon), |
---|
| 120 | * icrit(klon), |
---|
| 121 | * ikcrith(klon), |
---|
| 122 | * ikenvh(klon), |
---|
| 123 | * iknu(klon), |
---|
| 124 | * iknu2(klon), |
---|
| 125 | * ikcrit(klon), |
---|
| 126 | * ikhlim(klon) |
---|
| 127 | c |
---|
| 128 | real ztau(klon,klev+1), |
---|
| 129 | * zstab(klon,klev+1), |
---|
| 130 | * zvph(klon,klev+1), |
---|
| 131 | * zrho(klon,klev+1), |
---|
| 132 | * zri(klon,klev+1), |
---|
| 133 | * zpsi(klon,klev+1), |
---|
| 134 | * zzdep(klon,klev) |
---|
| 135 | real zdudt(klon), |
---|
| 136 | * zdvdt(klon), |
---|
| 137 | * zdtdt(klon), |
---|
| 138 | * zdedt(klon), |
---|
| 139 | * zvidis(klon), |
---|
| 140 | * ztfr(klon), |
---|
| 141 | * znu(klon), |
---|
| 142 | * zd1(klon), |
---|
| 143 | * zd2(klon), |
---|
| 144 | * zdmod(klon) |
---|
| 145 | |
---|
| 146 | |
---|
| 147 | c local quantities: |
---|
| 148 | |
---|
| 149 | integer jl,jk,ji |
---|
| 150 | real ztmst,zdelp,ztemp,zforc,ztend,rover |
---|
| 151 | real zb,zc,zconb,zabsv,zzd1,ratio,zbet,zust,zvst,zdis |
---|
| 152 | |
---|
| 153 | c |
---|
| 154 | c------------------------------------------------------------------ |
---|
| 155 | c |
---|
| 156 | c* 1. initialization |
---|
| 157 | c -------------- |
---|
| 158 | c |
---|
| 159 | c print *,' in orodrag' |
---|
| 160 | 100 continue |
---|
| 161 | c |
---|
| 162 | c ------------------------------------------------------------------ |
---|
| 163 | c |
---|
| 164 | c* 1.1 computational constants |
---|
| 165 | c ----------------------- |
---|
| 166 | c |
---|
| 167 | 110 continue |
---|
| 168 | c |
---|
| 169 | c ztmst=twodt |
---|
| 170 | c if(nstep.eq.nstart) ztmst=0.5*twodt |
---|
| 171 | ztmst=ptsphy |
---|
| 172 | c ------------------------------------------------------------------ |
---|
| 173 | c |
---|
| 174 | 120 continue |
---|
| 175 | c |
---|
| 176 | c ------------------------------------------------------------------ |
---|
| 177 | c |
---|
| 178 | c* 1.3 check whether row contains point for printing |
---|
| 179 | c --------------------------------------------- |
---|
| 180 | c |
---|
| 181 | 130 continue |
---|
| 182 | c |
---|
| 183 | c ------------------------------------------------------------------ |
---|
| 184 | c |
---|
| 185 | c* 2. precompute basic state variables. |
---|
| 186 | c* ---------- ----- ----- ---------- |
---|
| 187 | c* define low level wind, project winds in plane of |
---|
| 188 | c* low level wind, determine sector in which to take |
---|
| 189 | c* the variance and set indicator for critical levels. |
---|
| 190 | c |
---|
| 191 | |
---|
| 192 | 200 continue |
---|
| 193 | c |
---|
| 194 | do jk=1,klev |
---|
| 195 | zstab(:,jk) = pn2m1(:,jk) |
---|
| 196 | enddo |
---|
| 197 | c |
---|
| 198 | call orosetup |
---|
| 199 | * ( nlon, nlev , ktest |
---|
| 200 | * , ikcrit, ikcrith, icrit, isect, ikhlim, ikenvh,iknu,iknu2 |
---|
| 201 | * , paphm1, papm1 , pum1 , pvm1 , ptm1 , pgeom1, zstab, pstd |
---|
| 202 | * , zrho , zri , ztau , zvph , zpsi, zzdep |
---|
| 203 | * , pulow, pvlow |
---|
| 204 | * , pthe,pgam,pmea,ppic,pval,znu ,zd1, zd2, zdmod ) |
---|
| 205 | |
---|
| 206 | c |
---|
| 207 | c |
---|
| 208 | c |
---|
| 209 | c*********************************************************** |
---|
| 210 | c |
---|
| 211 | c |
---|
| 212 | c* 3. compute low level stresses using subcritical and |
---|
| 213 | c* supercritical forms.computes anisotropy coefficient |
---|
| 214 | c* as measure of orographic twodimensionality. |
---|
| 215 | c |
---|
| 216 | 300 continue |
---|
| 217 | c |
---|
| 218 | call gwstress |
---|
| 219 | * ( nlon , nlev |
---|
| 220 | * , ikcrit, isect, ikhlim, ktest, ikcrith, icrit, ikenvh, iknu |
---|
| 221 | * , zrho , zstab, zvph , pstd, psig, pmea, ppic, pval |
---|
| 222 | * , ztfr , ztau |
---|
| 223 | * , pgeom1,pgam,zd1,zd2,zdmod,znu) |
---|
| 224 | |
---|
| 225 | c |
---|
| 226 | c |
---|
| 227 | c* 4. compute stress profile including |
---|
| 228 | c trapped waves, wave breaking, |
---|
| 229 | c linear decay in stratosphere. |
---|
| 230 | c |
---|
| 231 | 400 continue |
---|
| 232 | c |
---|
| 233 | c |
---|
| 234 | |
---|
| 235 | call gwprofil |
---|
| 236 | * ( nlon , nlev |
---|
| 237 | * , kgwd , kdx , ktest |
---|
| 238 | * , ikcrit, ikcrith, icrit , ikenvh, iknu |
---|
| 239 | * ,iknu2 , paphm1, zrho , zstab , ztfr , zvph |
---|
| 240 | * , zri , ztau |
---|
| 241 | |
---|
| 242 | * , zdmod , znu , psig , pgam , pstd , ppic , pval) |
---|
| 243 | |
---|
| 244 | c |
---|
| 245 | c* 5. Compute tendencies from waves stress profile. |
---|
| 246 | c Compute low level blocked flow drag. |
---|
| 247 | c* -------------------------------------------- |
---|
| 248 | c |
---|
| 249 | 500 continue |
---|
| 250 | |
---|
| 251 | |
---|
| 252 | c |
---|
| 253 | c explicit solution at all levels for the gravity wave |
---|
| 254 | c implicit solution for the blocked levels |
---|
| 255 | |
---|
| 256 | do 510 jl=kidia,kfdia |
---|
| 257 | zvidis(jl)=0.0 |
---|
| 258 | zdudt(jl)=0.0 |
---|
| 259 | zdvdt(jl)=0.0 |
---|
| 260 | zdtdt(jl)=0.0 |
---|
| 261 | 510 continue |
---|
| 262 | c |
---|
| 263 | |
---|
| 264 | do 524 jk=1,klev |
---|
| 265 | c |
---|
| 266 | |
---|
| 267 | C WAVE STRESS |
---|
| 268 | C------------- |
---|
| 269 | c |
---|
| 270 | c |
---|
| 271 | do 523 ji=kidia,kfdia |
---|
| 272 | |
---|
| 273 | if(ktest(ji).eq.1) then |
---|
| 274 | |
---|
| 275 | zdelp=paphm1(ji,jk+1)-paphm1(ji,jk) |
---|
| 276 | ztemp=-rg*(ztau(ji,jk+1)-ztau(ji,jk))/(zvph(ji,klev+1)*zdelp) |
---|
| 277 | |
---|
| 278 | zdudt(ji)=(pulow(ji)*zd1(ji)-pvlow(ji)*zd2(ji))*ztemp/zdmod(ji) |
---|
| 279 | zdvdt(ji)=(pvlow(ji)*zd1(ji)+pulow(ji)*zd2(ji))*ztemp/zdmod(ji) |
---|
| 280 | c |
---|
| 281 | c Control Overshoots |
---|
| 282 | c |
---|
| 283 | |
---|
| 284 | if(jk.ge.ntop)then |
---|
| 285 | rover=0.10 |
---|
| 286 | if(abs(zdudt(ji)).gt.rover*abs(pum1(ji,jk))/ztmst) |
---|
| 287 | C zdudt(ji)=rover*abs(pum1(ji,jk))/ztmst* |
---|
| 288 | C zdudt(ji)/(abs(zdudt(ji))+1.E-10) |
---|
| 289 | if(abs(zdvdt(ji)).gt.rover*abs(pvm1(ji,jk))/ztmst) |
---|
| 290 | C zdvdt(ji)=rover*abs(pvm1(ji,jk))/ztmst* |
---|
| 291 | C zdvdt(ji)/(abs(zdvdt(ji))+1.E-10) |
---|
| 292 | endif |
---|
| 293 | |
---|
| 294 | rover=0.25 |
---|
| 295 | zforc=sqrt(zdudt(ji)**2+zdvdt(ji)**2) |
---|
| 296 | ztend=sqrt(pum1(ji,jk)**2+pvm1(ji,jk)**2)/ztmst |
---|
| 297 | |
---|
| 298 | if(zforc.ge.rover*ztend)then |
---|
| 299 | zdudt(ji)=rover*ztend/zforc*zdudt(ji) |
---|
| 300 | zdvdt(ji)=rover*ztend/zforc*zdvdt(ji) |
---|
| 301 | endif |
---|
| 302 | c |
---|
| 303 | c BLOCKED FLOW DRAG: |
---|
| 304 | C ----------------- |
---|
| 305 | c |
---|
| 306 | if(jk.gt.ikenvh(ji)) then |
---|
| 307 | zb=1.0-0.18*pgam(ji)-0.04*pgam(ji)**2 |
---|
| 308 | zc=0.48*pgam(ji)+0.3*pgam(ji)**2 |
---|
| 309 | zconb=2.*ztmst*gkwake*psig(ji)/(4.*pstd(ji)) |
---|
| 310 | zabsv=sqrt(pum1(ji,jk)**2+pvm1(ji,jk)**2)/2. |
---|
| 311 | zzd1=zb*cos(zpsi(ji,jk))**2+zc*sin(zpsi(ji,jk))**2 |
---|
| 312 | ratio=(cos(zpsi(ji,jk))**2+pgam(ji)*sin(zpsi(ji,jk))**2)/ |
---|
| 313 | * (pgam(ji)*cos(zpsi(ji,jk))**2+sin(zpsi(ji,jk))**2) |
---|
| 314 | zbet=max(0.,2.-1./ratio)*zconb*zzdep(ji,jk)*zzd1*zabsv |
---|
| 315 | c |
---|
| 316 | c OPPOSED TO THE WIND |
---|
| 317 | c |
---|
| 318 | zdudt(ji)=-pum1(ji,jk)/ztmst |
---|
| 319 | zdvdt(ji)=-pvm1(ji,jk)/ztmst |
---|
| 320 | c |
---|
| 321 | c PERPENDICULAR TO THE SSO MAIN AXIS: |
---|
| 322 | C |
---|
| 323 | cmod zdudt(ji)=-(pum1(ji,jk)*cos(pthe(ji)*rpi/180.) |
---|
| 324 | cmod * +pvm1(ji,jk)*sin(pthe(ji)*rpi/180.)) |
---|
| 325 | cmod * *cos(pthe(ji)*rpi/180.)/ztmst |
---|
| 326 | cmod zdvdt(ji)=-(pum1(ji,jk)*cos(pthe(ji)*rpi/180.) |
---|
| 327 | cmod * +pvm1(ji,jk)*sin(pthe(ji)*rpi/180.)) |
---|
| 328 | cmod * *sin(pthe(ji)*rpi/180.)/ztmst |
---|
| 329 | C |
---|
| 330 | zdudt(ji)=zdudt(ji)*(zbet/(1.+zbet)) |
---|
| 331 | zdvdt(ji)=zdvdt(ji)*(zbet/(1.+zbet)) |
---|
| 332 | end if |
---|
| 333 | pvom(ji,jk)=zdudt(ji) |
---|
| 334 | pvol(ji,jk)=zdvdt(ji) |
---|
| 335 | zust=pum1(ji,jk)+ztmst*zdudt(ji) |
---|
| 336 | zvst=pvm1(ji,jk)+ztmst*zdvdt(ji) |
---|
| 337 | zdis=0.5*(pum1(ji,jk)**2+pvm1(ji,jk)**2-zust**2-zvst**2) |
---|
| 338 | zdedt(ji)=zdis/ztmst |
---|
| 339 | zvidis(ji)=zvidis(ji)+zdis*zdelp |
---|
| 340 | c VENUS ATTENTION: CP VARIABLE |
---|
| 341 | zdtdt(ji)=zdedt(ji)/rcpd |
---|
| 342 | c |
---|
| 343 | c NO TENDENCIES ON TEMPERATURE ..... |
---|
| 344 | c |
---|
| 345 | c Instead of, pte(ji,jk)=zdtdt(ji), due to mechanical dissipation |
---|
| 346 | c |
---|
| 347 | pte(ji,jk)=0.0 |
---|
| 348 | |
---|
| 349 | endif |
---|
| 350 | |
---|
| 351 | 523 continue |
---|
| 352 | 524 continue |
---|
| 353 | c |
---|
| 354 | c |
---|
| 355 | 501 continue |
---|
| 356 | |
---|
| 357 | return |
---|
| 358 | end |
---|
| 359 | |
---|