source: trunk/LMDZ.PLUTO/libf/phypluto/cosat.F90 @ 3957

Last change on this file since 3957 was 3844, checked in by tbertrand, 5 months ago

Pluto PCM
CO cycle now possible with the option no_n2frost (CO condensation and sublimation is limited to within the N2 ice deposits only).
NLTE factor 0.33 on the cooling rates now removed in callcorrk.
TB

File size: 874 bytes
Line 
1subroutine cosat(nsize,t,p,qsat,qsurf_n2)
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)
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 : assume 0.3% CO in N2
27        if ((qsurf_n2(i).gt.0.001)) then
28           qsat(i)=qsat(i)*0.3/100.
29        endif
30
31!       security :
32        qsat(i)=min(qsat(i),0.99)
33      enddo
34
35  return
36end subroutine cosat
37
Note: See TracBrowser for help on using the repository browser.