source: palm/trunk/SOURCE/interaction_droplets_ptq.f90 @ 1682

Last change on this file since 1682 was 1682, checked in by knoop, 9 years ago

Code annotations made doxygen readable

  • Property svn:keywords set to Id
File size: 4.3 KB
Line 
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! Code annotations made doxygen readable
22!
23! Former revisions:
24! -----------------
25! $Id: interaction_droplets_ptq.f90 1682 2015-10-07 23:56:08Z knoop $
26!
27! 1320 2014-03-20 08:40:49Z raasch
28! ONLY-attribute added to USE-statements,
29! kind-parameters added to all INTEGER and REAL declaration statements,
30! kinds are defined in new module kinds,
31! revision history before 2012 removed,
32! comment fields (!:) to be used for variable explanations added to
33! all variable declaration statements
34!
35! 1036 2012-10-22 13:43:42Z raasch
36! code put under GPL (PALM 3.9)
37!
38! 799 2011-12-21 17:48:03Z franke
39! Bugfix: pt_d_t(k) was missing in calculation of pt_p
40!
41! RCS Log replace by Id keyword, revision history cleaned up
42!
43! Revision 1.1  2005/06/26 19:57:47  raasch
44! Initial revision
45!
46!
47! Description:
48! ------------
49!> Release of latent heat and change of specific humidity due to condensation /
50!> evaporation of droplets.
51!------------------------------------------------------------------------------!
52 MODULE interaction_droplets_ptq_mod
53 
54
55    PRIVATE
56    PUBLIC interaction_droplets_ptq
57
58    INTERFACE interaction_droplets_ptq
59       MODULE PROCEDURE interaction_droplets_ptq
60       MODULE PROCEDURE interaction_droplets_ptq_ij
61    END INTERFACE interaction_droplets_ptq
62 
63 CONTAINS
64
65
66!------------------------------------------------------------------------------!
67! Description:
68! ------------
69!> Call for all grid points
70!------------------------------------------------------------------------------!
71    SUBROUTINE interaction_droplets_ptq
72
73       USE arrays_3d,                                                          &
74           ONLY:  pt_p, ql_c, q_p
75           
76       USE cloud_parameters,                                                   &
77           ONLY:  l_d_cp, pt_d_t
78           
79       USE indices,                                                            &
80           ONLY:  nxl, nxr, nyn, nys, nzb_2d, nzt
81           
82       USE kinds
83
84       USE pegrid
85
86       IMPLICIT NONE
87
88       INTEGER(iwp) ::  i !<
89       INTEGER(iwp) ::  j !<
90       INTEGER(iwp) ::  k !<
91
92 
93       DO  i = nxl, nxr
94          DO  j = nys, nyn
95             DO  k = nzb_2d(j,i)+1, nzt
96                q_p(k,j,i)  = q_p(k,j,i)  - ql_c(k,j,i)
97                pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k)
98             ENDDO
99          ENDDO
100       ENDDO
101
102    END SUBROUTINE interaction_droplets_ptq
103
104
105!------------------------------------------------------------------------------!
106! Description:
107! ------------
108!> Call for grid point i,j
109!------------------------------------------------------------------------------!
110    SUBROUTINE interaction_droplets_ptq_ij( i, j )
111
112       USE arrays_3d,                                                          &
113           ONLY:  pt_p, ql_c, q_p
114
115       USE cloud_parameters,                                                   &
116           ONLY:  l_d_cp, pt_d_t
117
118       USE indices,                                                            &
119           ONLY:  nxl, nxr, nyn, nys, nzb_2d, nzt
120
121       USE kinds,                                                              &
122           ONLY:  iwp, wp
123
124       USE pegrid
125
126       IMPLICIT NONE
127
128       INTEGER(iwp) ::  i !<
129       INTEGER(iwp) ::  j !<
130       INTEGER(iwp) ::  k !<
131
132
133       DO  k = nzb_2d(j,i)+1, nzt
134          q_p(k,j,i)  = q_p(k,j,i)  - ql_c(k,j,i)
135          pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k)
136       ENDDO
137
138    END SUBROUTINE interaction_droplets_ptq_ij
139
140 END MODULE interaction_droplets_ptq_mod
Note: See TracBrowser for help on using the repository browser.