1 | !> @file interaction_droplets_ptq.f90 |
---|
2 | !--------------------------------------------------------------------------------! |
---|
3 | ! This file is part of PALM. |
---|
4 | ! |
---|
5 | ! PALM is free software: you can redistribute it and/or modify it under the terms |
---|
6 | ! of the GNU General Public License as published by the Free Software Foundation, |
---|
7 | ! either version 3 of the License, or (at your option) any later version. |
---|
8 | ! |
---|
9 | ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
10 | ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
11 | ! A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
12 | ! |
---|
13 | ! You should have received a copy of the GNU General Public License along with |
---|
14 | ! PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
15 | ! |
---|
16 | ! Copyright 1997-2014 Leibniz Universitaet Hannover |
---|
17 | !--------------------------------------------------------------------------------! |
---|
18 | ! |
---|
19 | ! Current revisions: |
---|
20 | ! ----------------- |
---|
21 | ! |
---|
22 | ! |
---|
23 | ! Former revisions: |
---|
24 | ! ----------------- |
---|
25 | ! $Id: interaction_droplets_ptq.f90 1683 2015-10-07 23:57:51Z knoop $ |
---|
26 | ! |
---|
27 | ! 1682 2015-10-07 23:56:08Z knoop |
---|
28 | ! Code annotations made doxygen readable |
---|
29 | ! |
---|
30 | ! 1320 2014-03-20 08:40:49Z raasch |
---|
31 | ! ONLY-attribute added to USE-statements, |
---|
32 | ! kind-parameters added to all INTEGER and REAL declaration statements, |
---|
33 | ! kinds are defined in new module kinds, |
---|
34 | ! revision history before 2012 removed, |
---|
35 | ! comment fields (!:) to be used for variable explanations added to |
---|
36 | ! all variable declaration statements |
---|
37 | ! |
---|
38 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
39 | ! code put under GPL (PALM 3.9) |
---|
40 | ! |
---|
41 | ! 799 2011-12-21 17:48:03Z franke |
---|
42 | ! Bugfix: pt_d_t(k) was missing in calculation of pt_p |
---|
43 | ! |
---|
44 | ! RCS Log replace by Id keyword, revision history cleaned up |
---|
45 | ! |
---|
46 | ! Revision 1.1 2005/06/26 19:57:47 raasch |
---|
47 | ! Initial revision |
---|
48 | ! |
---|
49 | ! |
---|
50 | ! Description: |
---|
51 | ! ------------ |
---|
52 | !> Release of latent heat and change of specific humidity due to condensation / |
---|
53 | !> evaporation of droplets. |
---|
54 | !------------------------------------------------------------------------------! |
---|
55 | MODULE interaction_droplets_ptq_mod |
---|
56 | |
---|
57 | |
---|
58 | PRIVATE |
---|
59 | PUBLIC interaction_droplets_ptq |
---|
60 | |
---|
61 | INTERFACE interaction_droplets_ptq |
---|
62 | MODULE PROCEDURE interaction_droplets_ptq |
---|
63 | MODULE PROCEDURE interaction_droplets_ptq_ij |
---|
64 | END INTERFACE interaction_droplets_ptq |
---|
65 | |
---|
66 | CONTAINS |
---|
67 | |
---|
68 | |
---|
69 | !------------------------------------------------------------------------------! |
---|
70 | ! Description: |
---|
71 | ! ------------ |
---|
72 | !> Call for all grid points |
---|
73 | !------------------------------------------------------------------------------! |
---|
74 | SUBROUTINE interaction_droplets_ptq |
---|
75 | |
---|
76 | USE arrays_3d, & |
---|
77 | ONLY: pt_p, ql_c, q_p |
---|
78 | |
---|
79 | USE cloud_parameters, & |
---|
80 | ONLY: l_d_cp, pt_d_t |
---|
81 | |
---|
82 | USE indices, & |
---|
83 | ONLY: nxl, nxr, nyn, nys, nzb_2d, nzt |
---|
84 | |
---|
85 | USE kinds |
---|
86 | |
---|
87 | USE pegrid |
---|
88 | |
---|
89 | IMPLICIT NONE |
---|
90 | |
---|
91 | INTEGER(iwp) :: i !< |
---|
92 | INTEGER(iwp) :: j !< |
---|
93 | INTEGER(iwp) :: k !< |
---|
94 | |
---|
95 | |
---|
96 | DO i = nxl, nxr |
---|
97 | DO j = nys, nyn |
---|
98 | DO k = nzb_2d(j,i)+1, nzt |
---|
99 | q_p(k,j,i) = q_p(k,j,i) - ql_c(k,j,i) |
---|
100 | pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k) |
---|
101 | ENDDO |
---|
102 | ENDDO |
---|
103 | ENDDO |
---|
104 | |
---|
105 | END SUBROUTINE interaction_droplets_ptq |
---|
106 | |
---|
107 | |
---|
108 | !------------------------------------------------------------------------------! |
---|
109 | ! Description: |
---|
110 | ! ------------ |
---|
111 | !> Call for grid point i,j |
---|
112 | !------------------------------------------------------------------------------! |
---|
113 | SUBROUTINE interaction_droplets_ptq_ij( i, j ) |
---|
114 | |
---|
115 | USE arrays_3d, & |
---|
116 | ONLY: pt_p, ql_c, q_p |
---|
117 | |
---|
118 | USE cloud_parameters, & |
---|
119 | ONLY: l_d_cp, pt_d_t |
---|
120 | |
---|
121 | USE indices, & |
---|
122 | ONLY: nxl, nxr, nyn, nys, nzb_2d, nzt |
---|
123 | |
---|
124 | USE kinds, & |
---|
125 | ONLY: iwp, wp |
---|
126 | |
---|
127 | USE pegrid |
---|
128 | |
---|
129 | IMPLICIT NONE |
---|
130 | |
---|
131 | INTEGER(iwp) :: i !< |
---|
132 | INTEGER(iwp) :: j !< |
---|
133 | INTEGER(iwp) :: k !< |
---|
134 | |
---|
135 | |
---|
136 | DO k = nzb_2d(j,i)+1, nzt |
---|
137 | q_p(k,j,i) = q_p(k,j,i) - ql_c(k,j,i) |
---|
138 | pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k) |
---|
139 | ENDDO |
---|
140 | |
---|
141 | END SUBROUTINE interaction_droplets_ptq_ij |
---|
142 | |
---|
143 | END MODULE interaction_droplets_ptq_mod |
---|