Last change
on this file since 2362 was
2362,
checked in by cmathe, 4 years ago
|
New working version of CO2 microphysics.
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | c======================================================================= |
---|
2 | c SUBROUTINE co2sat |
---|
3 | c----------------------------------------------------------------------- |
---|
4 | c Aim: |
---|
5 | c ---- |
---|
6 | c Compute saturated steam pressure (from James et al, 1992) |
---|
7 | c======================================================================= |
---|
8 | subroutine co2sat(naersize, t, psat) |
---|
9 | |
---|
10 | implicit none |
---|
11 | c----------------------------------------------------------------------- |
---|
12 | c VARIABLES |
---|
13 | c----------------------------------------------------------------------- |
---|
14 | c Inputs: |
---|
15 | c ------- |
---|
16 | integer, intent(in) :: |
---|
17 | & naersize ! dimension of tables t and psat |
---|
18 | |
---|
19 | real, intent(in) :: |
---|
20 | & t(naersize) ! temperature table |
---|
21 | |
---|
22 | c Output: |
---|
23 | c ------- |
---|
24 | real, intent(out) :: |
---|
25 | & psat(naersize) ! Saturated steam pressure (Pa) |
---|
26 | |
---|
27 | c Local: |
---|
28 | c ------ |
---|
29 | integer :: |
---|
30 | & i ! loop on naersize |
---|
31 | c======================================================================= |
---|
32 | c===== BEGIN |
---|
33 | c======================================================================= |
---|
34 | do i = 1, naersize |
---|
35 | psat(i) = 1.382 * 1e12 * exp(-3182.48/t(i)) |
---|
36 | end do |
---|
37 | c======================================================================= |
---|
38 | c===== END |
---|
39 | c======================================================================= |
---|
40 | RETURN |
---|
41 | END |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.