1 | SUBROUTINE co2snow (ngrid,nlayer,ptimestep,emisref,condsub,pplev, |
---|
2 | & pcondicea,pcondices,pfallice,pemisurf) |
---|
3 | |
---|
4 | IMPLICIT NONE |
---|
5 | |
---|
6 | c======================================================================= |
---|
7 | c Program for simulate the impact of the CO2 snow fall on |
---|
8 | c the surface infrared emission (emissivity) and on |
---|
9 | c the airborne dust |
---|
10 | c F.Forget 1996 |
---|
11 | c======================================================================= |
---|
12 | |
---|
13 | c Declarations |
---|
14 | c ------------ |
---|
15 | |
---|
16 | #include "dimensions.h" |
---|
17 | #include "dimphys.h" |
---|
18 | #include "comcstfi.h" |
---|
19 | #include "surfdat.h" |
---|
20 | #include "callkeys.h" |
---|
21 | |
---|
22 | c input |
---|
23 | c ----- |
---|
24 | |
---|
25 | INTEGER ngrid,nlayer |
---|
26 | REAL ptimestep , emisref(ngrid) ! grd or ice emissivity without snow |
---|
27 | logical condsub(ngrid) |
---|
28 | |
---|
29 | REAL pplev(ngrid,nlayer+1) |
---|
30 | REAL pcondicea(ngrid,nlayer), pcondices(ngrid) |
---|
31 | REAL pfallice(ngrid,nlayer+1) |
---|
32 | |
---|
33 | c output |
---|
34 | c ------ |
---|
35 | |
---|
36 | REAL pemisurf(ngrid) |
---|
37 | |
---|
38 | c local |
---|
39 | c ----- |
---|
40 | integer ig , l , icap |
---|
41 | |
---|
42 | REAL zdemisurf ,dtemis |
---|
43 | REAL sumdaer |
---|
44 | |
---|
45 | c saved |
---|
46 | c ----- |
---|
47 | REAL Kscat(2), scaveng |
---|
48 | LOGICAL firstcall |
---|
49 | SAVE firstcall |
---|
50 | save Kscat , scaveng |
---|
51 | DATA firstcall/.true./ |
---|
52 | |
---|
53 | c -------------- |
---|
54 | c Initialisation |
---|
55 | c -------------- |
---|
56 | |
---|
57 | if (firstcall) then |
---|
58 | |
---|
59 | c Kscat : coefficient for decreasing the surface emissivity |
---|
60 | c =(0.001/3.)*alpha/iceradius , |
---|
61 | c with 0.3< alpha < 0.6, set to 0.45 (coeff from emis = f (tau)) |
---|
62 | c and iceradius the mean radius of the |
---|
63 | c scaterring particles (200.e-6<iceradius<10.e-6) |
---|
64 | |
---|
65 | Kscat(1)=(0.001/3.)*0.45/iceradius(1) |
---|
66 | Kscat(2)=(0.001/3.)*0.45/iceradius(2) |
---|
67 | |
---|
68 | c Scavenging Ratio (dust concentration in the air / in the snow) |
---|
69 | scaveng = 100.0 |
---|
70 | |
---|
71 | c Collision Scavenging coefficient (m2.kg-1) |
---|
72 | c Csca = 2.3 ! not used yet !!!!!!!!!!! |
---|
73 | firstcall = .false. |
---|
74 | |
---|
75 | end if |
---|
76 | |
---|
77 | |
---|
78 | c LOOP on grid points |
---|
79 | c ------------------- |
---|
80 | do ig=1,ngrid |
---|
81 | if (condsub(ig)) then |
---|
82 | |
---|
83 | c IF (scavenging) then |
---|
84 | c Airborne Dust |
---|
85 | c ------------- |
---|
86 | c sumdaer=0. |
---|
87 | c do l=nlayer, 1, -1 |
---|
88 | c pdaerosol(ig,l)= -paerosol(ig,l,1)* |
---|
89 | c & (1-exp(-scaveng*pcondicea(ig,l)*ptimestep*g/ |
---|
90 | c & (pplev(ig,l)-pplev(ig,l+1))))/ptimestep |
---|
91 | |
---|
92 | c & - Csca*paerosol(ig,l,1) ! Scavenging by collision |
---|
93 | c & * 0.5*(pfallice(ig,l)) ! not included |
---|
94 | |
---|
95 | c test to avoid releasing to much dust when subliming: |
---|
96 | c if(pdaerosol(ig,l).gt.-sumdaer)pdaerosol(ig,l)=-sumdaer |
---|
97 | c sumdaer=sumdaer + pdaerosol(ig,l) |
---|
98 | |
---|
99 | c if (-pdaerosol(ig,l)*ptimestep.gt.paerosol(ig,l,1)) then |
---|
100 | c write(*,*) 'ds co2snow: aerosol < 0.0 !!!' |
---|
101 | c write(*,*) 'ig =' , ig |
---|
102 | c end if |
---|
103 | c end do |
---|
104 | c END IF |
---|
105 | |
---|
106 | c Surface emissivity |
---|
107 | c ------------------ |
---|
108 | c dtemis: Time scale for increasing the ice emissivity |
---|
109 | |
---|
110 | IF(ig.GT.ngrid/2+1) THEN |
---|
111 | icap=2 |
---|
112 | ELSE |
---|
113 | icap=1 |
---|
114 | ENDIF |
---|
115 | |
---|
116 | zdemisurf = |
---|
117 | & (emisref(ig)-pemisurf(ig))/(dtemisice(icap)*daysec) |
---|
118 | c Using directly the diferential equation: |
---|
119 | c & -Kscat(icap)*emisref(ig)* |
---|
120 | c & (pemisurf(ig)/emisref(ig))**4 *pfallice(ig,1) |
---|
121 | c Using an integrated form for numerical safety instead |
---|
122 | & +(emisref(ig)* ((pemisurf(ig)/emisref(ig))**(-3)+3.*Kscat(icap)* |
---|
123 | & pfallice(ig,1)*ptimestep)**(-1/3.) -pemisurf(ig))/ptimestep |
---|
124 | |
---|
125 | |
---|
126 | pemisurf(ig) = pemisurf(ig) + zdemisurf*ptimestep |
---|
127 | |
---|
128 | if (pemisurf(ig).lt.0.1) then |
---|
129 | write(*,*) 'ds co2snow: emis < 0.1 !!!' |
---|
130 | write(*,*) 'ig =' , ig |
---|
131 | write(*,*)'pemisurf(ig)',pemisurf(ig) |
---|
132 | write(*,*) 'zdemisurf*ptimestep',zdemisurf*ptimestep |
---|
133 | end if |
---|
134 | else |
---|
135 | pemisurf(ig) = emisref(ig) |
---|
136 | end if |
---|
137 | end do |
---|
138 | |
---|
139 | return |
---|
140 | end |
---|