Last change
on this file since 2347 was
2347,
checked in by aslmd, 4 years ago
|
CO2 cloud microphysics
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Rev | Line | |
---|
[1617] | 1 | c======================================================================= |
---|
[2347] | 2 | c SUBROUTINE co2sat |
---|
| 3 | c----------------------------------------------------------------------- |
---|
| 4 | c Aim: |
---|
| 5 | c ---- |
---|
| 6 | c Compute saturated steam pressure (from James et al, 1992) |
---|
[1617] | 7 | c======================================================================= |
---|
[2347] | 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 |
---|
[1617] | 21 | |
---|
[2347] | 22 | c Output: |
---|
| 23 | c ------- |
---|
| 24 | real, intent(out) :: |
---|
| 25 | & psat(naersize) ! Saturated steam pressure (Pa) |
---|
[1617] | 26 | |
---|
[2347] | 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======================================================================= |
---|
[1617] | 40 | RETURN |
---|
| 41 | END |
---|
| 42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.