subroutine surfacearea(ngrid, nlay, ptimestep, $ pplay, pzlay, $ pt, pq, pdq, nq, rdust, rice, tau, $ tauscaling, $ surfdust, surfice) implicit none !========================================================================== ! calculation of the ice and dust surface area (m2/m3) ! available for heterogeneous reactions ! ! Franck Lefevre ! version 1.1 november 2011 !========================================================================== #include "dimensions.h" #include "dimphys.h" #include "comcstfi.h" #include "callkeys.h" #include "tracer.h" #include "dimradmars.h" #include "chimiedata.h" #include "conc.h" ! input integer,intent(in) :: ngrid, nlay integer,intent(in) :: nq ! number of tracers real,intent(in) :: ptimestep ! physics time step (s) real,intent(in) :: pplay(ngrid,nlay) ! pressure at mid-layers (Pa) real,intent(in) :: pzlay(ngrid,nlay) ! altitude at mid-layers (m) real,intent(in) :: pt(ngrid,nlay) ! temperature at mid-layers (K) real,intent(in) :: pq(ngrid,nlay,nq) ! tracers (kg/kg) real,intent(in) :: pdq(ngrid,nlay,nq) ! physical tendency (kg/kg.s-1) real,intent(in) :: rdust(ngrid,nlay) ! dust geometric mean radius (m) real,intent(in) :: rice(ngrid,nlay) ! ice mass mean radius (m) real,intent(in) :: tau(ngrid,naerkind) ! column dust optical depth at each point real,intent(in) :: tauscaling(ngrid) ! conversion factor for dust amount ! output real,intent(out) :: surfdust(ngrid,nlay) ! dust surface area (m2/m3) real,intent(out) :: surfice(ngrid,nlay) ! water-ice surface area (m2/m3) ! local integer l, ig real rho ! density (kg/m3) real dustnd ! uodated dust number density (kg/kg) real icend ! uodated ice number density (kg/kg) real ccntyp ! typical dust number density (#/kg) ! (microphys = false) real rdusttyp ! typical dust radius (m) ! (microphys = false) !========================================================================== if (microphys) then ! improvedclouds do l = 1,nlay do ig = 1,ngrid ! atmospheric density rho = pplay(ig,l)/(rnew(ig,l)*pt(ig,l)) ! updated dust number density dustnd = pq(ig,l,igcm_dust_number) $ + pdq(ig,l,igcm_dust_number)*ptimestep ! updated ice number density icend = pq(ig,l,igcm_ccn_number) $ + pdq(ig,l,igcm_ccn_number)*ptimestep ! dust surface area surfdust(ig,l) = dustnd*rho*tauscaling(ig) $ *4.*pi*rdust(ig,l)**2 ! ice surface area surfice(ig,l) = icend*rho*tauscaling(ig) $ *4.*pi*rice(ig,l)**2 end do end do else ! simpleclouds do l = 1,nlay do ig = 1,ngrid ! atmospheric density rho = pplay(ig,l)/(rnew(ig,l)*pt(ig,l)) ! typical dust radius rdusttyp = max(.8e-6*exp(-pzlay(ig,l)/18000.),1.e-9) ! typical dust number density ccntyp = 1.3e+8*max(tau(ig,1),0.001)/0.1 $ *exp(-pzlay(ig,l)/10000.) ccntyp = ccntyp/ccn_factor if (rice(ig,l) .gt. rdust(ig,l)) then surfdust(ig,l) = ccntyp*(ccn_factor - 1.)*rho $ *4.*pi*rdusttyp**2 surfice(ig,l) = ccntyp*4.*pi*rice(ig,l)**2 else surfdust(ig,l) = ccntyp*ccn_factor*rho $ *4.*pi*rdusttyp**2 surfice(ig,l) = 0. end if end do end do end if ! of microphys ! write diagnostics in micron2/cm3 if (callstats) then call wstats(ngrid,"surfdust", "Dust surface area", $ "micron2 cm-3",3,surfdust*1.e6) endif call writediagfi(ngrid,"surfdust", "Dust cloud surface area", $ "micron2 cm-3",3,surfdust*1.e6) if (callstats) then call wstats(ngrid,"surfice", "Ice cloud surface area", $ "micron2 cm-3",3,surfice*1.e6) endif call writediagfi(ngrid,"surfice", "Ice cloud surface area", $ "micron2 cm-3",3,surfice*1.e6) return end