[3466] | 1 | module deposition_mod |
---|
| 2 | |
---|
| 3 | implicit none |
---|
| 4 | |
---|
| 5 | contains |
---|
| 6 | |
---|
[1047] | 7 | subroutine deposition(ngrid, nlayer, nq, |
---|
| 8 | & ig, ig_vl1, pplay, pplev, zzlay, zzlev, |
---|
[415] | 9 | $ zu, zv, zt, zycol, ptimestep, co2ice) |
---|
| 10 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
| 11 | c |
---|
| 12 | c dry deposition of chemical species |
---|
| 13 | c |
---|
| 14 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
| 15 | c |
---|
[1047] | 16 | use surfdat_h, only: z0 ! surface roughness |
---|
| 17 | use conc_mod, only: rnew ! specific gas constant |
---|
[415] | 18 | implicit none |
---|
| 19 | c |
---|
| 20 | c |
---|
| 21 | c input |
---|
| 22 | c |
---|
[1047] | 23 | integer,intent(in) :: ngrid ! number of atmospheric columns |
---|
| 24 | integer,intent(in) :: nlayer ! number of atmospheric layers |
---|
| 25 | integer,intent(in) :: nq ! number of tracers |
---|
| 26 | integer ig ! grid point index |
---|
| 27 | integer ig_vl1 ! viking 1 grid point |
---|
| 28 | real pplay(ngrid,nlayer) ! pressure at the middle of the layers (pa) |
---|
| 29 | real pplev(ngrid,nlayer+1) ! pressure at layer boundaries (pa) |
---|
| 30 | real zzlay(ngrid,nlayer) ! altitude at the middle of the layers (m) |
---|
| 31 | real zzlev(ngrid,nlayer+1) ! altitude at layer boundaries (m) |
---|
| 32 | real zu(ngrid,nlayer) ! u component of the wind (m.s-1) |
---|
| 33 | real zv(ngrid,nlayer) ! v component of the wind (m.s-1) |
---|
| 34 | real zt(ngrid,nlayer) ! temperature (k) |
---|
| 35 | real zycol(nlayer,nq) ! composition (volume mixing ratio) |
---|
| 36 | real ptimestep ! physical timestep (s) |
---|
| 37 | real co2ice(ngrid) ! co2 ice surface layer (kg.m-2) |
---|
[415] | 38 | c |
---|
| 39 | c local |
---|
| 40 | c |
---|
| 41 | real ubar ! wind module (m.s-1) |
---|
| 42 | real ustar ! friction velocity (m.s-1) |
---|
| 43 | real karman ! von karman constant |
---|
| 44 | real ra ! aerodynamic resistance (s.m-1) |
---|
| 45 | real rb ! quasi-laminar layer resistance (s.m-1) |
---|
| 46 | real vd ! dry deposition velocity (cm.s-1) |
---|
| 47 | real deltaz ! thickness of first layer (m) |
---|
| 48 | real mu0 ! dynamic viscosity of co2 at 293.15 k (pa.s) |
---|
| 49 | real mu ! dynamic viscosity of co2 (pa.s) |
---|
| 50 | real nu ! kinematic viscosity of co2 (cm2.s-1) |
---|
| 51 | real rho ! density |
---|
| 52 | real d ! molecular diffusivity of methane (cm2.s-1) |
---|
| 53 | real schmidt ! schmidt number |
---|
| 54 | real prandtl ! prandtl number |
---|
| 55 | real p0 ! reference pressure (pa) |
---|
| 56 | real loss ! loss rate (s-1) |
---|
| 57 | integer iq |
---|
| 58 | c |
---|
| 59 | real nuch4 |
---|
| 60 | real tau |
---|
| 61 | real gravity |
---|
| 62 | real gam |
---|
| 63 | real dp |
---|
| 64 | real cd |
---|
| 65 | c |
---|
| 66 | data karman / 0.4 / |
---|
| 67 | data prandtl / 0.72 / |
---|
| 68 | data mu0 / 14.8e-6 / |
---|
| 69 | data p0 /1.e5/ |
---|
| 70 | c |
---|
| 71 | c deposition is only active on surface uncovered by ice |
---|
| 72 | c |
---|
| 73 | c if ((.not. watercaptag(ig)) .and. (co2ice(ig) .eq. 0.)) then |
---|
| 74 | c |
---|
| 75 | c wind module (m.s-1) |
---|
| 76 | c |
---|
| 77 | ubar = (zu(ig,1)**2. + zv(ig,1)**2.)**0.5 |
---|
| 78 | c |
---|
| 79 | c friction velocity (m.s-1) |
---|
| 80 | c |
---|
[421] | 81 | ustar = ubar*karman/log(zzlay(ig,1)/z0(ig)) |
---|
[415] | 82 | c |
---|
| 83 | c aerodynamic resistance (s.m-1) |
---|
| 84 | c |
---|
[421] | 85 | ra = 1./(karman*ustar)*log(zzlay(ig,1)/z0(ig)) |
---|
[415] | 86 | c |
---|
| 87 | c molecular diffusivity of methane in *air* (cm2.s-1) |
---|
| 88 | c massman, atmospheric environment, 32, 1111-1127, 1998 |
---|
| 89 | c |
---|
| 90 | d = 0.1952*(p0/pplay(ig,1))*(zt(ig,1)/273.15)**1.81 |
---|
| 91 | c |
---|
| 92 | c dynamic viscosity: temperature dependance (pa.s) |
---|
| 93 | c sutherland's formula |
---|
| 94 | c |
---|
| 95 | mu = mu0*(293.15 + 240.)/(zt(ig,1) + 240.) |
---|
| 96 | $ *(zt(ig,1)/293.15)**(3./2.) |
---|
| 97 | c |
---|
| 98 | c density (kg.m-3) |
---|
| 99 | c |
---|
| 100 | rho = pplay(ig,1)/(rnew(ig,1)*zt(ig,1)) |
---|
| 101 | c |
---|
| 102 | c kinematic viscosity (cm2.s-1) |
---|
| 103 | c |
---|
| 104 | nu = mu/rho*1.e4 |
---|
| 105 | c |
---|
| 106 | c schmidt number |
---|
| 107 | c |
---|
| 108 | schmidt = nu/d |
---|
| 109 | c |
---|
| 110 | c quasi-laminar layer resistance (s.m-1) |
---|
| 111 | c |
---|
| 112 | rb = (2./(karman*ustar))*(schmidt/prandtl)**2./3. |
---|
| 113 | c |
---|
| 114 | c dry deposition velocity (m.s-1) |
---|
| 115 | c |
---|
| 116 | vd = 1./(ra + rb) |
---|
| 117 | c |
---|
| 118 | c thickness of first layer (m) |
---|
| 119 | c |
---|
| 120 | deltaz = zzlev(ig,2) - zzlev(ig,1) |
---|
| 121 | c |
---|
| 122 | c loss rate (s-1) |
---|
| 123 | c |
---|
| 124 | loss = vd/deltaz |
---|
| 125 | c |
---|
| 126 | c test |
---|
| 127 | c |
---|
| 128 | c loss = 1./(3600.*6.) |
---|
| 129 | c vd = loss*deltaz |
---|
| 130 | c |
---|
| 131 | nuch4 = sqrt(8.*8.31*zt(ig,1) |
---|
| 132 | $ /(3.1416*16.e-3)) |
---|
| 133 | tau = 6.*3600. |
---|
| 134 | gravity = 3.7 |
---|
| 135 | dp = pplev(ig,1) - pplev(ig,2) |
---|
[421] | 136 | cd = (karman/log(zzlay(ig,1)/z0(ig)))**2. |
---|
[415] | 137 | c |
---|
| 138 | gam = (4./nuch4)*dp |
---|
| 139 | $ /(tau*gravity*rho - 1./(cd*ubar)) |
---|
| 140 | c |
---|
| 141 | c methane index |
---|
| 142 | c |
---|
| 143 | iq = 12 |
---|
| 144 | c |
---|
| 145 | c update methane in first layer |
---|
| 146 | c |
---|
| 147 | c zycol(1,iq) = zycol(1,iq)*exp(-loss*ptimestep) |
---|
| 148 | c |
---|
| 149 | if (ig .eq. ig_vl1) then |
---|
| 150 | print*,'**** deposition ****' |
---|
[421] | 151 | print*,'z0 = ', z0(ig), 'm' |
---|
[415] | 152 | print*,'deltaz = ', deltaz, ' m' |
---|
| 153 | print*,'deltap = ', dp, 'pa' |
---|
| 154 | print*,'zzlay = ', zzlay(ig, 1), ' m' |
---|
| 155 | print*,'pplay = ', pplay(ig, 1), ' pa' |
---|
| 156 | print*,'t = ', zt(ig,1), ' k' |
---|
| 157 | print*,'u = ', zu(ig,1), ' m.s-1' |
---|
| 158 | print*,'v = ', zv(ig,1), ' m.s-1' |
---|
| 159 | print*,'rho = ', rho, ' kg.m-3' |
---|
| 160 | print*,'ubar = ', ubar, ' m.s-1' |
---|
| 161 | print*,'d = ', d, ' cm2.s-1' |
---|
| 162 | print*,'mu = ', mu, ' pa.s' |
---|
| 163 | print*,'nu = ', nu, ' cm2.s-1' |
---|
| 164 | print*,'schmi = ', schmidt |
---|
| 165 | print*,'Ra = ', ra, ' s.m-1' |
---|
| 166 | print*,'Rb = ', rb, ' s.m-1' |
---|
| 167 | print*,'vd = ', vd*100., 'cm.s-1' |
---|
| 168 | print*,'tau dep= ', 1./loss, 's' |
---|
| 169 | print*,'R = ', rnew(ig,1) |
---|
| 170 | print*,'nuch4 = ', nuch4, 'm.s-1' |
---|
| 171 | print*,'tau = ', tau, ' s' |
---|
| 172 | print*,'gamma = ', gam |
---|
| 173 | print*,'taugrho= ',tau*gravity*rho |
---|
| 174 | print*,'1surcdu= ', 1./(cd*ubar) |
---|
| 175 | |
---|
| 176 | print*,'********************' |
---|
| 177 | end if |
---|
| 178 | c |
---|
| 179 | c end if |
---|
| 180 | c |
---|
[3466] | 181 | end subroutine deposition |
---|
| 182 | |
---|
| 183 | end module deposition_mod |
---|