Last change
on this file since 799 was
799,
checked in by franke, 13 years ago
|
Implementation of Wang collision kernel and bugfix for calculation of vpt, pt_p, and ec in case of cloud droplets
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Line | |
---|
1 | SUBROUTINE compute_vpt |
---|
2 | |
---|
3 | !-------------------------------------------------------------------------------! |
---|
4 | ! Current revisions: |
---|
5 | ! ----------------- |
---|
6 | ! Bugfix: ql is now included in calculation of vpt in case of |
---|
7 | ! cloud droplets |
---|
8 | ! |
---|
9 | ! Former revisions: |
---|
10 | ! ----------------- |
---|
11 | ! $Id: compute_vpt.f90 799 2011-12-21 17:48:03Z franke $ |
---|
12 | ! RCS Log replace by Id keyword, revision history cleaned up |
---|
13 | ! |
---|
14 | ! Revision 1.5 2001/03/30 06:58:52 raasch |
---|
15 | ! Translation of remaining German identifiers (variables, subroutines, etc.) |
---|
16 | ! |
---|
17 | ! Revision 1.1 2000/04/13 14:40:53 schroeter |
---|
18 | ! Initial revision |
---|
19 | ! |
---|
20 | ! |
---|
21 | ! Description: |
---|
22 | ! ------------- |
---|
23 | ! Computation of the virtual potential temperature |
---|
24 | !-------------------------------------------------------------------------------! |
---|
25 | |
---|
26 | USE arrays_3d |
---|
27 | USE indices |
---|
28 | USE cloud_parameters |
---|
29 | USE control_parameters |
---|
30 | |
---|
31 | IMPLICIT NONE |
---|
32 | |
---|
33 | INTEGER :: k |
---|
34 | |
---|
35 | IF ( .NOT. cloud_physics .AND. .NOT. cloud_droplets ) THEN |
---|
36 | vpt = pt * ( 1.0 + 0.61 * q ) |
---|
37 | ELSE IF (cloud_physics) THEN |
---|
38 | DO k = nzb, nzt+1 |
---|
39 | vpt(k,:,:) = ( pt(k,:,:) + pt_d_t(k) * l_d_cp * ql(k,:,:) ) * & |
---|
40 | ( 1.0 + 0.61 * q(k,:,:) - 1.61 * ql(k,:,:) ) |
---|
41 | ENDDO |
---|
42 | ELSE |
---|
43 | vpt = pt * ( 1.0 + 0.61 * q - 1.61 * ql ) |
---|
44 | ENDIF |
---|
45 | |
---|
46 | END SUBROUTINE compute_vpt |
---|
Note: See
TracBrowser
for help on using the repository browser.