[463] | 1 | subroutine surfacearea(ngrid, nlay, ptimestep, |
---|
| 2 | $ pplay, pzlay, |
---|
| 3 | $ pt, pq, pdq, nq, rdust, rice, tau, |
---|
| 4 | $ tauscaling, |
---|
[459] | 5 | $ surfdust, surfice) |
---|
| 6 | |
---|
[1036] | 7 | use tracer_mod, only: nuice_sed, igcm_dust_number, |
---|
| 8 | & igcm_ccn_number, varian, ccn_factor |
---|
[1047] | 9 | use conc_mod, only: rnew |
---|
[459] | 10 | implicit none |
---|
| 11 | |
---|
| 12 | !========================================================================== |
---|
| 13 | ! calculation of the ice and dust surface area (m2/m3) |
---|
| 14 | ! available for heterogeneous reactions |
---|
| 15 | ! |
---|
| 16 | ! Franck Lefevre |
---|
[635] | 17 | ! version 1.2 april 2012 |
---|
[459] | 18 | !========================================================================== |
---|
| 19 | |
---|
| 20 | #include "dimensions.h" |
---|
[1047] | 21 | !#include "dimphys.h" |
---|
[459] | 22 | #include "comcstfi.h" |
---|
| 23 | #include "callkeys.h" |
---|
[1036] | 24 | !#include "tracer.h" |
---|
[1047] | 25 | !#include "dimradmars.h" |
---|
| 26 | ! naerkind is set in scatterers.h (built when compiling with makegcm -s #) |
---|
| 27 | #include"scatterers.h" |
---|
[459] | 28 | #include "chimiedata.h" |
---|
[1047] | 29 | !#include "conc.h" |
---|
[459] | 30 | |
---|
| 31 | ! input |
---|
| 32 | |
---|
[463] | 33 | integer,intent(in) :: ngrid, nlay |
---|
| 34 | integer,intent(in) :: nq ! number of tracers |
---|
| 35 | real,intent(in) :: ptimestep ! physics time step (s) |
---|
| 36 | real,intent(in) :: pplay(ngrid,nlay) ! pressure at mid-layers (Pa) |
---|
| 37 | real,intent(in) :: pzlay(ngrid,nlay) ! altitude at mid-layers (m) |
---|
| 38 | real,intent(in) :: pt(ngrid,nlay) ! temperature at mid-layers (K) |
---|
| 39 | real,intent(in) :: pq(ngrid,nlay,nq) ! tracers (kg/kg) |
---|
| 40 | real,intent(in) :: pdq(ngrid,nlay,nq) ! physical tendency (kg/kg.s-1) |
---|
| 41 | real,intent(in) :: rdust(ngrid,nlay) ! dust geometric mean radius (m) |
---|
| 42 | real,intent(in) :: rice(ngrid,nlay) ! ice mass mean radius (m) |
---|
| 43 | real,intent(in) :: tau(ngrid,naerkind) ! column dust optical depth at each point |
---|
| 44 | real,intent(in) :: tauscaling(ngrid) ! conversion factor for dust amount |
---|
[459] | 45 | |
---|
| 46 | ! output |
---|
| 47 | |
---|
[463] | 48 | real,intent(out) :: surfdust(ngrid,nlay) ! dust surface area (m2/m3) |
---|
| 49 | real,intent(out) :: surfice(ngrid,nlay) ! water-ice surface area (m2/m3) |
---|
[459] | 50 | |
---|
| 51 | ! local |
---|
| 52 | |
---|
[635] | 53 | integer :: l, ig |
---|
| 54 | real :: rho ! density (kg/m3) |
---|
| 55 | real :: dustnd, icend ! uodated dust and ice number densities (kg/kg) |
---|
| 56 | real, save :: factor_ice, factor_dust ! multiplying factor to compute total surface area |
---|
| 57 | ! from the mass-mean radius |
---|
| 58 | real :: sigma_ice, sigma_dust ! variance of the ice and dust distributions |
---|
| 59 | real :: ccntyp ! typical dust number density (#/kg) |
---|
| 60 | ! (microphys = false) |
---|
| 61 | real :: rdusttyp ! typical dust radius (m) |
---|
| 62 | ! (microphys = false) |
---|
[459] | 63 | |
---|
[635] | 64 | logical, save :: firstcall = .true. |
---|
| 65 | |
---|
[459] | 66 | !========================================================================== |
---|
| 67 | |
---|
[635] | 68 | if (firstcall) then ! compute the multiplying factors |
---|
| 69 | sigma_dust = varian |
---|
| 70 | sigma_ice = sqrt(log(nuice_sed + 1.)) |
---|
| 71 | factor_dust = exp(0.5*(log(sigma_dust))**2) |
---|
| 72 | factor_ice = exp(0.5*(log(sigma_ice))**2) |
---|
| 73 | write(*,*) 'surfacearea : factor_dust = ', factor_dust |
---|
| 74 | write(*,*) 'surfacearea : factor_ice = ', factor_ice |
---|
| 75 | firstcall = .false. |
---|
| 76 | end if |
---|
| 77 | |
---|
[459] | 78 | if (microphys) then ! improvedclouds |
---|
| 79 | do l = 1,nlay |
---|
| 80 | do ig = 1,ngrid |
---|
[463] | 81 | ! atmospheric density |
---|
[459] | 82 | rho = pplay(ig,l)/(rnew(ig,l)*pt(ig,l)) |
---|
[463] | 83 | ! updated dust number density |
---|
| 84 | dustnd = pq(ig,l,igcm_dust_number) |
---|
| 85 | $ + pdq(ig,l,igcm_dust_number)*ptimestep |
---|
| 86 | ! updated ice number density |
---|
| 87 | icend = pq(ig,l,igcm_ccn_number) |
---|
| 88 | $ + pdq(ig,l,igcm_ccn_number)*ptimestep |
---|
| 89 | ! dust surface area |
---|
[635] | 90 | surfdust(ig,l) = factor_dust*dustnd*rho*tauscaling(ig) |
---|
[459] | 91 | $ *4.*pi*rdust(ig,l)**2 |
---|
[463] | 92 | ! ice surface area |
---|
[635] | 93 | surfice(ig,l) = factor_ice*icend*rho*tauscaling(ig) |
---|
[459] | 94 | $ *4.*pi*rice(ig,l)**2 |
---|
| 95 | end do |
---|
| 96 | end do |
---|
[463] | 97 | else ! simpleclouds |
---|
[459] | 98 | do l = 1,nlay |
---|
| 99 | do ig = 1,ngrid |
---|
[463] | 100 | ! atmospheric density |
---|
[459] | 101 | rho = pplay(ig,l)/(rnew(ig,l)*pt(ig,l)) |
---|
[463] | 102 | ! typical dust radius |
---|
[459] | 103 | rdusttyp = max(.8e-6*exp(-pzlay(ig,l)/18000.),1.e-9) |
---|
[463] | 104 | ! typical dust number density |
---|
[459] | 105 | ccntyp = 1.3e+8*max(tau(ig,1),0.001)/0.1 |
---|
| 106 | $ *exp(-pzlay(ig,l)/10000.) |
---|
| 107 | ccntyp = ccntyp/ccn_factor |
---|
| 108 | if (rice(ig,l) .gt. rdust(ig,l)) then |
---|
[635] | 109 | surfdust(ig,l) = factor_dust*ccntyp*(ccn_factor - 1.) |
---|
| 110 | $ *rho*4.*pi*rdusttyp**2 |
---|
| 111 | surfice(ig,l) = factor_ice*ccntyp*4.*pi*rice(ig,l)**2 |
---|
[459] | 112 | else |
---|
[635] | 113 | surfdust(ig,l) = factor_dust*ccntyp*ccn_factor |
---|
| 114 | $ *rho*4.*pi*rdusttyp**2 |
---|
[459] | 115 | surfice(ig,l) = 0. |
---|
| 116 | end if |
---|
| 117 | end do |
---|
| 118 | end do |
---|
| 119 | end if ! of microphys |
---|
| 120 | |
---|
| 121 | ! write diagnostics in micron2/cm3 |
---|
[476] | 122 | |
---|
| 123 | if (callstats) then |
---|
| 124 | call wstats(ngrid,"surfdust", "Dust surface area", |
---|
[459] | 125 | $ "micron2 cm-3",3,surfdust*1.e6) |
---|
[476] | 126 | call wstats(ngrid,"surfice", "Ice cloud surface area", |
---|
[459] | 127 | $ "micron2 cm-3",3,surfice*1.e6) |
---|
[476] | 128 | endif |
---|
[635] | 129 | call writediagfi(ngrid,"surfdust", "Dust surface area", |
---|
| 130 | $ "micron2 cm-3",3,surfdust*1.e6) |
---|
[459] | 131 | call writediagfi(ngrid,"surfice", "Ice cloud surface area", |
---|
| 132 | $ "micron2 cm-3",3,surfice*1.e6) |
---|
| 133 | |
---|
| 134 | return |
---|
| 135 | end |
---|