[358] | 1 | subroutine simpleclouds(ngrid,nlay,ptimestep, |
---|
[645] | 2 | & pplay,pzlay,pt,pdt, |
---|
[520] | 3 | & pq,pdq,pdqcloud,pdtcloud, |
---|
[633] | 4 | & nq,tau,rice) |
---|
[740] | 5 | USE updaterad |
---|
[1996] | 6 | USE watersat_mod, ONLY: watersat |
---|
[1036] | 7 | use tracer_mod, only: igcm_h2o_vap, igcm_h2o_ice |
---|
[1226] | 8 | USE comcstfi_h |
---|
[1246] | 9 | use dimradmars_mod, only: naerkind |
---|
[358] | 10 | implicit none |
---|
| 11 | c------------------------------------------------------------------ |
---|
| 12 | c This routine is used to form clouds when a parcel of the GCM is |
---|
| 13 | c saturated. It is a simplified scheme, and there is almost no |
---|
| 14 | c microphysics involved. When the air is saturated, water-ice |
---|
| 15 | c clouds form on a fraction of the dust particles, specified by |
---|
| 16 | c the constant called "ccn_factor". There is no supersaturation, |
---|
| 17 | c and no nucleation rates computed. A more accurate scheme can |
---|
| 18 | c be found in the routine called "improvedclouds.F". |
---|
| 19 | |
---|
| 20 | c Modif de zq si saturation dans l'atmosphere |
---|
| 21 | c si zq(ig,l)> zqsat(ig,l) -> zq(ig,l)=zqsat(ig,l) |
---|
| 22 | c Le test est effectue de bas en haut. L'eau condensee |
---|
| 23 | c (si saturation) est remise dans la couche en dessous. |
---|
| 24 | c L'eau condensee dans la couche du bas est deposee a la surface |
---|
| 25 | |
---|
| 26 | c Authors: Franck Montmessin (water ice scheme) |
---|
| 27 | c Francois Forget (changed nuclei density & outputs) |
---|
| 28 | c Ehouarn Millour (sept.2008, tracers are now handled |
---|
| 29 | c by name and not fixed index) |
---|
| 30 | c J.-B. Madeleine (developed a single routine called |
---|
| 31 | c simpleclouds.F, and corrected calculations |
---|
| 32 | c of the typical CCN profile, Oct. 2011) |
---|
| 33 | c------------------------------------------------------------------ |
---|
| 34 | #include "callkeys.h" |
---|
[1047] | 35 | |
---|
[358] | 36 | c------------------------------------------------------------------ |
---|
| 37 | c Arguments: |
---|
| 38 | c --------- |
---|
| 39 | c Inputs: |
---|
| 40 | INTEGER ngrid,nlay |
---|
| 41 | integer nq ! nombre de traceurs |
---|
| 42 | REAL ptimestep ! pas de temps physique (s) |
---|
| 43 | REAL pplay(ngrid,nlay) ! pression au milieu des couches (Pa) |
---|
| 44 | REAL pzlay(ngrid,nlay) ! altitude at the middle of the layers |
---|
| 45 | REAL pt(ngrid,nlay) ! temperature at the middle of the |
---|
| 46 | ! layers (K) |
---|
| 47 | REAL pdt(ngrid,nlay) ! tendance temperature des autres |
---|
| 48 | ! param. |
---|
| 49 | real pq(ngrid,nlay,nq) ! traceur (kg/kg) |
---|
| 50 | real pdq(ngrid,nlay,nq) ! tendance avant condensation |
---|
| 51 | ! (kg/kg.s-1) |
---|
[1047] | 52 | REAL tau(ngrid,naerkind) ! Column dust optical depth at each point |
---|
[358] | 53 | |
---|
| 54 | c Output: |
---|
| 55 | REAL rice(ngrid,nlay) ! Ice mass mean radius (m) |
---|
| 56 | ! (r_c in montmessin_2004) |
---|
| 57 | real pdqcloud(ngrid,nlay,nq) ! tendance de la condensation |
---|
| 58 | ! H2O(kg/kg.s-1) |
---|
| 59 | REAL pdtcloud(ngrid,nlay) ! tendance temperature due |
---|
| 60 | ! a la chaleur latente |
---|
| 61 | |
---|
| 62 | c------------------------------------------------------------------ |
---|
| 63 | c Local variables: |
---|
| 64 | |
---|
[1047] | 65 | REAL rhocloud(ngrid,nlay) ! Cloud density (kg.m-3) |
---|
[358] | 66 | |
---|
| 67 | INTEGER ig,l |
---|
| 68 | |
---|
[1047] | 69 | REAL zq(ngrid,nlay,nq) ! local value of tracers |
---|
| 70 | REAL zq0(ngrid,nlay,nq) ! local initial value of tracers |
---|
| 71 | REAL zt(ngrid,nlay) ! local value of temperature |
---|
| 72 | REAL zqsat(ngrid,nlay) ! saturation |
---|
[358] | 73 | REAL*8 dzq ! masse de glace echangee (kg/kg) |
---|
| 74 | REAL lw !Latent heat of sublimation (J.kg-1) |
---|
| 75 | REAL,PARAMETER :: To=273.15 ! reference temperature, T=273.15 K |
---|
[1047] | 76 | real rdusttyp(ngrid,nlay) ! Typical dust geom. mean radius (m) |
---|
| 77 | REAL ccntyp(ngrid,nlay) |
---|
[358] | 78 | ! Typical dust number density (#/kg) |
---|
| 79 | c CCN reduction factor |
---|
[420] | 80 | c REAL, PARAMETER :: ccn_factor = 4.5 !! comme TESTS_JB // 1. avant |
---|
[358] | 81 | |
---|
| 82 | |
---|
| 83 | c----------------------------------------------------------------------- |
---|
| 84 | c 1. initialisation |
---|
| 85 | c ----------------- |
---|
| 86 | |
---|
[1036] | 87 | c On "update" la valeur de q(nq) (water vapor) et temperature. |
---|
[358] | 88 | c On effectue qqes calculs preliminaires sur les couches : |
---|
| 89 | |
---|
| 90 | do l=1,nlay |
---|
| 91 | do ig=1,ngrid |
---|
| 92 | zq(ig,l,igcm_h2o_vap)= |
---|
| 93 | & pq(ig,l,igcm_h2o_vap)+pdq(ig,l,igcm_h2o_vap)*ptimestep |
---|
| 94 | zq(ig,l,igcm_h2o_vap)=max(zq(ig,l,igcm_h2o_vap),1.E-30) ! FF 12/2004 |
---|
| 95 | zq0(ig,l,igcm_h2o_vap)=zq(ig,l,igcm_h2o_vap) |
---|
| 96 | zt(ig,l)=pt(ig,l)+ pdt(ig,l)*ptimestep |
---|
| 97 | |
---|
| 98 | zq(ig,l,igcm_h2o_ice)= |
---|
| 99 | & pq(ig,l,igcm_h2o_ice)+pdq(ig,l,igcm_h2o_ice)*ptimestep |
---|
| 100 | zq(ig,l,igcm_h2o_ice)=max(zq(ig,l,igcm_h2o_ice),0.) ! FF 12/2004 |
---|
| 101 | zq0(ig,l,igcm_h2o_ice)=zq(ig,l,igcm_h2o_ice) |
---|
| 102 | enddo |
---|
| 103 | enddo |
---|
| 104 | |
---|
| 105 | |
---|
| 106 | pdqcloud(1:ngrid,1:nlay,1:nq)=0 |
---|
| 107 | pdtcloud(1:ngrid,1:nlay)=0 |
---|
| 108 | |
---|
| 109 | c ---------------------------------------------- |
---|
| 110 | c |
---|
| 111 | c |
---|
| 112 | c Rapport de melange a saturation dans la couche l : ------- |
---|
| 113 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 114 | |
---|
[1047] | 115 | call watersat(ngrid*nlay,zt,pplay,zqsat) |
---|
[358] | 116 | |
---|
| 117 | c taux de condensation (kg/kg/s-1) dans les differentes couches |
---|
| 118 | c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 119 | |
---|
| 120 | do l=1,nlay |
---|
| 121 | do ig=1,ngrid |
---|
| 122 | |
---|
| 123 | if (zq(ig,l,igcm_h2o_vap).ge.zqsat(ig,l))then ! Condensation |
---|
| 124 | dzq=zq(ig,l,igcm_h2o_vap)-zqsat(ig,l) |
---|
| 125 | elseif(zq(ig,l,igcm_h2o_vap).lt.zqsat(ig,l))then ! Sublimation |
---|
| 126 | dzq=-min(zqsat(ig,l)-zq(ig,l,igcm_h2o_vap), |
---|
| 127 | & zq(ig,l,igcm_h2o_ice)) |
---|
| 128 | endif |
---|
| 129 | |
---|
| 130 | c Water Mass change |
---|
| 131 | c ~~~~~~~~~~~~~~~~~ |
---|
| 132 | zq(ig,l,igcm_h2o_ice)=zq(ig,l,igcm_h2o_ice)+dzq |
---|
| 133 | zq(ig,l,igcm_h2o_vap)=zq(ig,l,igcm_h2o_vap)-dzq |
---|
| 134 | |
---|
| 135 | |
---|
| 136 | enddo ! of do ig=1,ngrid |
---|
| 137 | enddo ! of do l=1,nlay |
---|
| 138 | |
---|
| 139 | c Tendance finale |
---|
| 140 | c ~~~~~~~~~~~~~~~ |
---|
| 141 | do l=1, nlay |
---|
[1047] | 142 | do ig=1,ngrid |
---|
[358] | 143 | pdqcloud(ig,l,igcm_h2o_vap)=(zq(ig,l,igcm_h2o_vap) |
---|
| 144 | & -zq0(ig,l,igcm_h2o_vap))/ptimestep |
---|
| 145 | pdqcloud(ig,l,igcm_h2o_ice) = |
---|
| 146 | & (zq(ig,l,igcm_h2o_ice) - zq0(ig,l,igcm_h2o_ice))/ptimestep |
---|
| 147 | lw=(2834.3-0.28*(zt(ig,l)-To)-0.004*(zt(ig,l)-To)**2)*1.e+3 |
---|
| 148 | pdtcloud(ig,l)=-pdqcloud(ig,l,igcm_h2o_vap)*lw/cpp |
---|
| 149 | end do |
---|
| 150 | end do |
---|
| 151 | |
---|
[740] | 152 | c ice crystal radius |
---|
| 153 | do l=1, nlay |
---|
[1047] | 154 | do ig=1,ngrid |
---|
[740] | 155 | call updaterice_typ(zq(ig,l,igcm_h2o_ice), |
---|
| 156 | & tau(ig,1),pzlay(ig,l),rice(ig,l)) |
---|
| 157 | end do |
---|
| 158 | end do |
---|
| 159 | |
---|
[358] | 160 | c------------------------------------------------------------------ |
---|
| 161 | return |
---|
| 162 | end |
---|