Last change
on this file was
2,
checked in by lmdz, 25 years ago
|
Initial revision
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.5 KB
|
Line | |
---|
1 | FUNCTION q_sat(kelvin, millibar) |
---|
2 | c |
---|
3 | IMPLICIT none |
---|
4 | c====================================================================== |
---|
5 | c Autheur(s): Z.X. Li (LMD/CNRS) |
---|
6 | c Objet: calculer la vapeur d'eau saturante (formule Centre Euro.) |
---|
7 | c====================================================================== |
---|
8 | c Arguments: |
---|
9 | c kelvin---input-R: temperature en Kelvin |
---|
10 | c millibar--input-R: pression en mb |
---|
11 | c |
---|
12 | c q_sat----output-R: vapeur d'eau saturante en kg/kg |
---|
13 | c====================================================================== |
---|
14 | c |
---|
15 | REAL q_sat, kelvin, millibar |
---|
16 | c |
---|
17 | REAL r2es |
---|
18 | PARAMETER (r2es=611.14 *18.0153/28.9644) |
---|
19 | c |
---|
20 | REAL r3les, r3ies, r3es |
---|
21 | PARAMETER (R3LES=17.269) |
---|
22 | PARAMETER (R3IES=21.875) |
---|
23 | c |
---|
24 | REAL r4les, r4ies, r4es |
---|
25 | PARAMETER (R4LES=35.86) |
---|
26 | PARAMETER (R4IES=7.66) |
---|
27 | c |
---|
28 | REAL rtt |
---|
29 | PARAMETER (rtt=273.16) |
---|
30 | c |
---|
31 | REAL retv |
---|
32 | PARAMETER (retv=28.9644/18.0153 - 1.0) |
---|
33 | c |
---|
34 | REAL zqsat |
---|
35 | REAL temp, pres |
---|
36 | C ------------------------------------------------------------------ |
---|
37 | c |
---|
38 | c |
---|
39 | temp = kelvin |
---|
40 | pres = millibar * 100.0 |
---|
41 | c write(*,*)'kelvin,millibar=',kelvin,millibar |
---|
42 | c write(*,*)'temp,pres=',temp,pres |
---|
43 | c |
---|
44 | IF (temp .LE. rtt) THEN |
---|
45 | r3es = r3ies |
---|
46 | r4es = r4ies |
---|
47 | ELSE |
---|
48 | r3es = r3les |
---|
49 | r4es = r4les |
---|
50 | ENDIF |
---|
51 | c |
---|
52 | zqsat=r2es/pres * EXP ( r3es*(temp-rtt) / (temp-r4es) ) |
---|
53 | zqsat=MIN(0.5,ZQSAT) |
---|
54 | zqsat=zqsat/(1.-retv *zqsat) |
---|
55 | c |
---|
56 | q_sat = zqsat |
---|
57 | c |
---|
58 | RETURN |
---|
59 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.