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