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