Last change
on this file since 304 was
135,
checked in by aslmd, 14 years ago
|
CHANGEMENT ARBORESCENCE ETAPE 2 -- NON COMPLET
|
File size:
981 bytes
|
Line | |
---|
1 | subroutine watersat_grad(T,qsat,dqsat) |
---|
2 | |
---|
3 | use watercommon_h, only: T_coup, RLVTT, RCPD |
---|
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 | ! |
---|
12 | ! Authors |
---|
13 | ! ------- |
---|
14 | ! Robin Wordsworth (2010) |
---|
15 | ! |
---|
16 | !================================================================== |
---|
17 | |
---|
18 | ! input |
---|
19 | real T,qsat |
---|
20 | |
---|
21 | ! output |
---|
22 | real dqsat |
---|
23 | |
---|
24 | if (T.lt.T_coup) then ! solid / vapour |
---|
25 | dqsat = RLVTT/RCPD*qsat*(3.56654/T & |
---|
26 | +2484.896*LOG(10.)/T**2 & |
---|
27 | -0.00320991*LOG(10.)) |
---|
28 | else ! liquid / vapour |
---|
29 | dqsat = RLVTT/RCPD*qsat*LOG(10.)* & |
---|
30 | (2948.964/T**2-5.028/LOG(10.)/T & |
---|
31 | +25.21935*2999.924/T**2*EXP(-2999.924/T) & |
---|
32 | +29810.16*0.0699382*EXP(-0.0699382*T)) |
---|
33 | end if |
---|
34 | |
---|
35 | return |
---|
36 | end subroutine watersat_grad |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.