Last change
on this file since 3436 was
3175,
checked in by emillour, 11 months ago
|
Pluto PCM:
Add the old Pluto LMDZ for reference (required prior step to making
an LMDZ.PLUTO using the same framework as the other physics packages).
TB+EM
|
File size:
1.1 KB
|
Line | |
---|
1 | subroutine methanesat(nsize,t,p,qsat,qsurf_n2) |
---|
2 | |
---|
3 | IMPLICIT NONE |
---|
4 | |
---|
5 | !======================================================================= |
---|
6 | ! |
---|
7 | ! Methane mass mixing ratio at saturation (kg/kg) for a given pressure (Pa) |
---|
8 | ! and Temperature (K) array |
---|
9 | ! |
---|
10 | !======================================================================= |
---|
11 | |
---|
12 | |
---|
13 | #include "dimensions.h" |
---|
14 | #include "dimphys.h" |
---|
15 | #include "callkeys.h" |
---|
16 | |
---|
17 | |
---|
18 | ! INPUT |
---|
19 | integer nsize |
---|
20 | real t(nsize) , p(nsize) |
---|
21 | ! OUTPUT |
---|
22 | real qsat(nsize),qsurf_n2(nsize) |
---|
23 | INTEGER i |
---|
24 | |
---|
25 | do i=1,nsize |
---|
26 | |
---|
27 | ! from Fray and schmitt fit by formulation L = 6.125e5 J/kg |
---|
28 | ! qsat(i)=0.117*exp((16*612.5/8.314)*(1/90.7-1/t(i)))*100000 |
---|
29 | qsat(i)=0.117*exp((1178.734664)*(0.01102536-1/t(i)))*100000 |
---|
30 | qsat(i)=qsat(i)* 16.0 / (28.0*p(i)) |
---|
31 | |
---|
32 | ! security : |
---|
33 | qsat(i)=min(qsat(i),0.99) |
---|
34 | |
---|
35 | enddo |
---|
36 | |
---|
37 | ! Raoult law if mixte in N2 ice : assume 0.5% CH4 in N2 |
---|
38 | if (nsize.le.ngridmx) then |
---|
39 | do i=1,nsize |
---|
40 | if (qsurf_n2(i).gt.0.001) qsat(i)=qsat(i)*0.005 !*(1.-dayfrac) ! .5 /100 |
---|
41 | end do |
---|
42 | endif |
---|
43 | |
---|
44 | return |
---|
45 | end subroutine methanesat |
---|
46 | |
---|
Note: See
TracBrowser
for help on using the repository browser.