source: palm/tags/release-3.10/SOURCE/interaction_droplets_ptq.f90 @ 4417

Last change on this file since 4417 was 1037, checked in by raasch, 11 years ago

last commit documented

  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1 MODULE interaction_droplets_ptq_mod
2
3!--------------------------------------------------------------------------------!
4! This file is part of PALM.
5!
6! PALM is free software: you can redistribute it and/or modify it under the terms
7! of the GNU General Public License as published by the Free Software Foundation,
8! either version 3 of the License, or (at your option) any later version.
9!
10! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
11! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13!
14! You should have received a copy of the GNU General Public License along with
15! PALM. If not, see <http://www.gnu.org/licenses/>.
16!
17! Copyright 1997-2012  Leibniz University Hannover
18!--------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22!
23!
24! Former revisions:
25! -----------------
26! $Id: interaction_droplets_ptq.f90 1037 2012-10-22 14:10:22Z monakurppa $
27!
28! 1036 2012-10-22 13:43:42Z raasch
29! code put under GPL (PALM 3.9)
30!
31! 799 2011-12-21 17:48:03Z franke
32! Bugfix: pt_d_t(k) was missing in calculation of pt_p
33!
34! RCS Log replace by Id keyword, revision history cleaned up
35!
36! Revision 1.1  2005/06/26 19:57:47  raasch
37! Initial revision
38!
39!
40! Description:
41! ------------
42! Release of latent heat and change of specific humidity due to condensation /
43! evaporation of droplets.
44!------------------------------------------------------------------------------!
45
46    PRIVATE
47    PUBLIC interaction_droplets_ptq
48
49    INTERFACE interaction_droplets_ptq
50       MODULE PROCEDURE interaction_droplets_ptq
51       MODULE PROCEDURE interaction_droplets_ptq_ij
52    END INTERFACE interaction_droplets_ptq
53 
54 CONTAINS
55
56
57!------------------------------------------------------------------------------!
58! Call for all grid points
59!------------------------------------------------------------------------------!
60    SUBROUTINE interaction_droplets_ptq
61
62       USE arrays_3d
63       USE cloud_parameters
64       USE control_parameters
65       USE indices
66
67       USE pegrid
68
69       IMPLICIT NONE
70
71       INTEGER ::  i, j, k
72
73 
74       DO  i = nxl, nxr
75          DO  j = nys, nyn
76             DO  k = nzb_2d(j,i)+1, nzt
77                q_p(k,j,i)  = q_p(k,j,i)  - ql_c(k,j,i)
78                pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k)
79             ENDDO
80          ENDDO
81       ENDDO
82
83    END SUBROUTINE interaction_droplets_ptq
84
85
86!------------------------------------------------------------------------------!
87! Call for grid point i,j
88!------------------------------------------------------------------------------!
89    SUBROUTINE interaction_droplets_ptq_ij( i, j )
90
91       USE arrays_3d
92       USE cloud_parameters
93       USE control_parameters
94       USE indices
95
96       USE pegrid
97
98       IMPLICIT NONE
99
100       INTEGER ::  i, j, k
101
102
103       DO  k = nzb_2d(j,i)+1, nzt
104          q_p(k,j,i)  = q_p(k,j,i)  - ql_c(k,j,i)
105          pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k)
106       ENDDO
107
108    END SUBROUTINE interaction_droplets_ptq_ij
109
110 END MODULE interaction_droplets_ptq_mod
Note: See TracBrowser for help on using the repository browser.