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

Last change on this file since 1849 was 1846, checked in by raasch, 8 years ago

last commit documented

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