[86] | 1 | SUBROUTINE dustlift(ngrid,nlay,nq,rho, |
---|
| 2 | $ pcdh_true,pcdh,co2ice, |
---|
[38] | 3 | $ dqslift) |
---|
[1036] | 4 | |
---|
[1038] | 5 | #ifndef MESOSCALE |
---|
[1036] | 6 | use tracer_mod, only: alpha_lift, radius |
---|
[1038] | 7 | #else |
---|
| 8 | use tracer_mod, only: alpha_lift, radius, |
---|
| 9 | & igcm_dust_mass, igcm_dust_number, |
---|
| 10 | & ref_r0,r3n_q |
---|
| 11 | #endif |
---|
[1226] | 12 | USE comcstfi_h |
---|
[38] | 13 | IMPLICIT NONE |
---|
| 14 | |
---|
| 15 | c======================================================================= |
---|
| 16 | c |
---|
| 17 | c Dust lifting by surface winds |
---|
| 18 | c Computing flux to the middle of the first layer |
---|
| 19 | c (Called by vdifc) |
---|
| 20 | c |
---|
| 21 | c======================================================================= |
---|
| 22 | |
---|
| 23 | c----------------------------------------------------------------------- |
---|
| 24 | c declarations: |
---|
| 25 | c ------------- |
---|
| 26 | |
---|
| 27 | c |
---|
| 28 | c arguments: |
---|
| 29 | c ---------- |
---|
| 30 | |
---|
| 31 | c INPUT |
---|
| 32 | integer ngrid, nlay, nq |
---|
| 33 | real rho(ngrid) ! density (kg.m-3) at surface |
---|
| 34 | real pcdh_true(ngrid) ! Cd |
---|
| 35 | real pcdh(ngrid) ! Cd * |V| |
---|
| 36 | real co2ice(ngrid) |
---|
| 37 | |
---|
| 38 | c OUTPUT |
---|
| 39 | real dqslift(ngrid,nq) !surface dust flux to mid-layer (<0 when lifing) |
---|
| 40 | c real pb(ngrid,nlay) ! diffusion to surface coeff. |
---|
| 41 | |
---|
| 42 | c local: |
---|
| 43 | c ------ |
---|
| 44 | INTEGER ig,iq |
---|
[1047] | 45 | REAL fhoriz(ngrid) ! Horizontal dust flux |
---|
[38] | 46 | REAL ust,us |
---|
| 47 | REAL stress_seuil |
---|
| 48 | SAVE stress_seuil |
---|
| 49 | DATA stress_seuil/0.0225/ ! stress seuil soulevement (N.m2) |
---|
[2616] | 50 | |
---|
| 51 | !$OMP THREADPRIVATE(stress_seuil) |
---|
[38] | 52 | |
---|
[86] | 53 | #ifdef MESOSCALE |
---|
| 54 | !!!! AS: In the mesoscale model we'd like to easily set |
---|
| 55 | !!!! AS: ... stress for lifting |
---|
| 56 | !!!! AS: you have to compile with -DMESOSCALE to do so |
---|
| 57 | REAL alpha |
---|
[310] | 58 | REAL r0_lift |
---|
[86] | 59 | INTEGER ierr |
---|
[310] | 60 | REAL ulim |
---|
[86] | 61 | OPEN(99,file='stress.def',status='old',form='formatted' |
---|
| 62 | . ,iostat=ierr) |
---|
| 63 | !!! no file => default values |
---|
| 64 | IF(ierr.EQ.0) THEN |
---|
[310] | 65 | READ(99,*) ulim !ulim = sqrt(stress_seuil/rho) avec rho = 0.02. |
---|
| 66 | !prendre ulim = 1.061 m/s pour avoir stress_seuil = 0.0225 |
---|
[86] | 67 | READ(99,*) alpha |
---|
[310] | 68 | stress_seuil = 0.02 * ulim * ulim |
---|
[86] | 69 | write(*,*) 'USER-DEFINED threshold: ', stress_seuil, alpha |
---|
| 70 | CLOSE(99) |
---|
[310] | 71 | alpha_lift(igcm_dust_mass) = alpha |
---|
| 72 | r0_lift = radius(igcm_dust_mass) / ref_r0 |
---|
| 73 | alpha_lift(igcm_dust_number)=r3n_q* |
---|
| 74 | & alpha_lift(igcm_dust_mass)/r0_lift**3 |
---|
| 75 | write(*,*) 'set dust number: ', alpha_lift(igcm_dust_number) |
---|
[86] | 76 | ENDIF |
---|
| 77 | #endif |
---|
[38] | 78 | |
---|
| 79 | c --------------------------------- |
---|
| 80 | c Computing horizontal flux: fhoriz |
---|
| 81 | c --------------------------------- |
---|
| 82 | |
---|
| 83 | do ig=1,ngrid |
---|
| 84 | fhoriz(ig) = 0. ! initialisation |
---|
| 85 | |
---|
| 86 | c Selection of points where surface dust is available |
---|
| 87 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 88 | c if (latid(ig).ge.80.) goto 99 ! N permanent polar caps |
---|
| 89 | c if (latid(ig).le.-80.) goto 99 ! S polar deposits |
---|
| 90 | c if ((longd(ig).ge.-141. .and. longd(ig).le.-127.) |
---|
| 91 | c & .and.(latid(ig).ge.12. .and. latid(ig).le.23.))goto 99 ! olympus |
---|
| 92 | c if ((longd(ig).ge.-125. .and. longd(ig).le.-118.) |
---|
| 93 | c & .and.(latid(ig).ge.-12. .and. latid(ig).le.-6.))goto 99 ! Arsia |
---|
| 94 | c if ((longd(ig).ge.-116. .and. longd(ig).le.-109.) |
---|
| 95 | c & .and.(latid(ig).ge.-5. .and. latid(ig).le. 5.))goto 99 ! pavonis |
---|
| 96 | c if ((longd(ig).ge.-109. .and. longd(ig).le.-100.) |
---|
| 97 | c & .and.(latid(ig).ge. 7. .and. latid(ig).le. 16.))goto 99 ! ascraeus |
---|
| 98 | c if ((longd(ig).ge. 61. .and. longd(ig).le. 63.) |
---|
| 99 | c & .and.(latid(ig).ge. 63. .and. latid(ig).le. 64.))goto 99 !weird point |
---|
| 100 | if (co2ice(ig).gt.0.) goto 99 |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | c Is the wind strong enough ? |
---|
| 104 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 105 | ust = sqrt(stress_seuil/rho(ig)) |
---|
| 106 | us = pcdh(ig) / sqrt(pcdh_true(ig)) ! ustar=cd*v /sqrt(cd) |
---|
| 107 | if (us.gt.ust) then |
---|
| 108 | c If lifting ? |
---|
| 109 | c Calcul du flux suivant Marticorena ( en fait white (1979)) |
---|
| 110 | |
---|
| 111 | fhoriz(ig) = 2.61*(rho(ig)/g) * |
---|
| 112 | & (us -ust) * (us + ust)**2 |
---|
| 113 | end if |
---|
| 114 | 99 continue |
---|
| 115 | end do |
---|
| 116 | |
---|
| 117 | c ------------------------------------- |
---|
| 118 | c Computing vertical flux and diffusion |
---|
| 119 | c ------------------------------------- |
---|
| 120 | |
---|
| 121 | do iq=1,nq |
---|
| 122 | do ig=1,ngrid |
---|
| 123 | dqslift(ig,iq)= -alpha_lift(iq)* fhoriz(ig) |
---|
| 124 | |
---|
| 125 | |
---|
| 126 | cc le flux vertical remplace le terme de diffusion turb. qui est mis a zero |
---|
| 127 | c zb(ig,1) = 0. |
---|
| 128 | cc If surface deposition by turbulence diffusion (impaction...) |
---|
| 129 | cc if(fhoriz(ig).ne.0) then |
---|
| 130 | cc zb(ig,1) = zcdh(ig)*zb0(ig,1) |
---|
| 131 | cc AMount of Surface deposition ! |
---|
| 132 | cc pdqs_dif(ig,iq)=pdqs_dif(ig,iq) + |
---|
| 133 | cc & zb(ig,1)*zq(ig,1,iq)/ptimestep |
---|
| 134 | cc write(*,*) 'zb(1) = ' , zb(ig,1),zcdh(ig),zb0(ig,1) |
---|
| 135 | cc |
---|
| 136 | |
---|
| 137 | enddo |
---|
| 138 | enddo |
---|
| 139 | |
---|
| 140 | RETURN |
---|
| 141 | END |
---|
| 142 | |
---|