| Line | |
|---|
| 1 | subroutine methanesat(nsize,t,p,qsat,qsurf_n2) |
|---|
| 2 | |
|---|
| 3 | ! use callkeys_mod |
|---|
| 4 | use dimphy, only: klon |
|---|
| 5 | |
|---|
| 6 | IMPLICIT NONE |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | !======================================================================= |
|---|
| 10 | ! |
|---|
| 11 | ! Methane mass mixing ratio at saturation (kg/kg) for a given pressure (Pa) |
|---|
| 12 | ! and Temperature (K) array |
|---|
| 13 | ! |
|---|
| 14 | !======================================================================= |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | #include "dimensions.h" |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | ! INPUT |
|---|
| 21 | integer nsize |
|---|
| 22 | real t(nsize) , p(nsize) |
|---|
| 23 | ! OUTPUT |
|---|
| 24 | real qsat(nsize),qsurf_n2(nsize) |
|---|
| 25 | INTEGER i |
|---|
| 26 | |
|---|
| 27 | do i=1,nsize |
|---|
| 28 | |
|---|
| 29 | ! from Fray and schmitt fit by formulation L = 6.125e5 J/kg |
|---|
| 30 | ! qsat(i)=0.117*exp((16*612.5/8.314)*(1/90.7-1/t(i)))*100000 |
|---|
| 31 | qsat(i)=0.117*exp((1178.734664)*(0.01102536-1/t(i)))*100000 |
|---|
| 32 | qsat(i)=qsat(i)* 16.0 / (28.0*p(i)) |
|---|
| 33 | |
|---|
| 34 | ! security : |
|---|
| 35 | qsat(i)=min(qsat(i),0.99) |
|---|
| 36 | |
|---|
| 37 | enddo |
|---|
| 38 | |
|---|
| 39 | ! Raoult law if mixte in N2 ice : assume 0.5% CH4 in N2 |
|---|
| 40 | if (nsize.le.klon) then |
|---|
| 41 | do i=1,nsize |
|---|
| 42 | if (qsurf_n2(i).gt.0.001) qsat(i)=qsat(i)*0.005 !*(1.-dayfrac) ! .5 /100 |
|---|
| 43 | end do |
|---|
| 44 | endif |
|---|
| 45 | |
|---|
| 46 | return |
|---|
| 47 | end subroutine methanesat |
|---|
| 48 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.