|
Last change
on this file since 3237 was
3175,
checked in by emillour, 23 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 cosat(nsize,t,p,qsat,qsurf_n2,qsurf_ch4) |
|---|
| 2 | |
|---|
| 3 | IMPLICIT NONE |
|---|
| 4 | |
|---|
| 5 | !======================================================================= |
|---|
| 6 | ! |
|---|
| 7 | ! CO mass mixing ratio at saturation (kg/kg) for a given pressure (Pa) |
|---|
| 8 | ! and Temperature (K) array |
|---|
| 9 | ! |
|---|
| 10 | !======================================================================= |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | ! INPUT |
|---|
| 14 | integer nsize |
|---|
| 15 | real t(nsize) , p(nsize) |
|---|
| 16 | ! OUTPUT |
|---|
| 17 | real qsat(nsize),qsurf_n2(nsize),qsurf_ch4(nsize) |
|---|
| 18 | INTEGER i |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | do i=1,nsize |
|---|
| 22 | |
|---|
| 23 | ! from Fray and schmitt fit by formulation L = 2.74e5 J/kg |
|---|
| 24 | qsat(i)=0.1537*exp((28*274./8.314)*(1/68.1-1/t(i)))*100000*28.0/(28.0*p(i)) |
|---|
| 25 | |
|---|
| 26 | ! Raoult law if mixte in N2 ice and CH4 ice : assume 0.3% CO in N2 |
|---|
| 27 | ! (Merlin) and 0.3% in CH4 |
|---|
| 28 | ! if ((qsurf_n2(i).gt.0.001).or.(qsurf_ch4(i).gt.0.001)) then |
|---|
| 29 | |
|---|
| 30 | ! Raoult law if mixte in N2 ice : assume 0.3% CO in N2 |
|---|
| 31 | if ((qsurf_n2(i).gt.0.001)) then |
|---|
| 32 | qsat(i)=qsat(i)*0.3/100. |
|---|
| 33 | endif |
|---|
| 34 | |
|---|
| 35 | ! security : |
|---|
| 36 | qsat(i)=min(qsat(i),0.99) |
|---|
| 37 | enddo |
|---|
| 38 | |
|---|
| 39 | return |
|---|
| 40 | end subroutine cosat |
|---|
| 41 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.