source: trunk/LMDZ.GENERIC/libf/phystd/watersat_2.F90 @ 220

Last change on this file since 220 was 135, checked in by aslmd, 14 years ago

CHANGEMENT ARBORESCENCE ETAPE 2 -- NON COMPLET

File size: 1019 bytes
Line 
1subroutine watersat_2(T,p,qsat)
2
3  use watercommon_h, only: T_coup, epsi
4  implicit none
5
6!==================================================================
7!     Purpose
8!     -------
9!     Compute the water mass mixing ratio at saturation (kg/kg)
10!     for a given pressure (Pa) and temperature (K)
11!     A replacement for the old watersat.F in the Martian GCM.
12!     Based on FCTTRE.h in the LMDTERRE model.
13!
14!     Authors
15!     -------
16!     Robin Wordsworth (2010)
17!
18!==================================================================
19
20!   input
21  real T, p
22 
23!   output
24  real qsat
25
26
27  if (T.lt.T_coup) then ! solid / vapour
28     qsat = 100.0 * epsi * 10**(2.07023 - 0.00320991             &
29          * T - 2484.896 / T + 3.56654 * alog10(T))
30  else                 ! liquid / vapour
31     qsat = 100.0 * epsi * 10**(23.8319 - 2948.964 / T - 5.028  &
32          * alog10(T) - 29810.16 * exp( -0.0699382 * T)  &
33          + 25.21935 * exp(-2999.924/T))
34  endif
35  qsat=qsat/p
36
37  return
38end subroutine watersat_2
39
Note: See TracBrowser for help on using the repository browser.