[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 | ! ----------------- |
---|
[1683] | 21 | ! |
---|
| 22 | ! |
---|
[1] | 23 | ! Former revisions: |
---|
| 24 | ! ----------------- |
---|
[3] | 25 | ! $Id: interaction_droplets_ptq.f90 1683 2015-10-07 23:57:51Z hoffmann $ |
---|
[800] | 26 | ! |
---|
[1683] | 27 | ! 1682 2015-10-07 23:56:08Z knoop |
---|
| 28 | ! Code annotations made doxygen readable |
---|
| 29 | ! |
---|
[1321] | 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 | ! |
---|
[1037] | 38 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
| 39 | ! code put under GPL (PALM 3.9) |
---|
| 40 | ! |
---|
[800] | 41 | ! 799 2011-12-21 17:48:03Z franke |
---|
| 42 | ! Bugfix: pt_d_t(k) was missing in calculation of pt_p |
---|
| 43 | ! |
---|
[3] | 44 | ! RCS Log replace by Id keyword, revision history cleaned up |
---|
| 45 | ! |
---|
[1] | 46 | ! Revision 1.1 2005/06/26 19:57:47 raasch |
---|
| 47 | ! Initial revision |
---|
| 48 | ! |
---|
| 49 | ! |
---|
| 50 | ! Description: |
---|
| 51 | ! ------------ |
---|
[1682] | 52 | !> Release of latent heat and change of specific humidity due to condensation / |
---|
| 53 | !> evaporation of droplets. |
---|
[1] | 54 | !------------------------------------------------------------------------------! |
---|
[1682] | 55 | MODULE interaction_droplets_ptq_mod |
---|
| 56 | |
---|
[1] | 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 | !------------------------------------------------------------------------------! |
---|
[1682] | 70 | ! Description: |
---|
| 71 | ! ------------ |
---|
| 72 | !> Call for all grid points |
---|
[1] | 73 | !------------------------------------------------------------------------------! |
---|
| 74 | SUBROUTINE interaction_droplets_ptq |
---|
| 75 | |
---|
[1320] | 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 |
---|
[1] | 86 | |
---|
| 87 | USE pegrid |
---|
| 88 | |
---|
| 89 | IMPLICIT NONE |
---|
| 90 | |
---|
[1682] | 91 | INTEGER(iwp) :: i !< |
---|
| 92 | INTEGER(iwp) :: j !< |
---|
| 93 | INTEGER(iwp) :: k !< |
---|
[1] | 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) |
---|
[799] | 100 | pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k) |
---|
[1] | 101 | ENDDO |
---|
| 102 | ENDDO |
---|
| 103 | ENDDO |
---|
| 104 | |
---|
| 105 | END SUBROUTINE interaction_droplets_ptq |
---|
| 106 | |
---|
| 107 | |
---|
| 108 | !------------------------------------------------------------------------------! |
---|
[1682] | 109 | ! Description: |
---|
| 110 | ! ------------ |
---|
| 111 | !> Call for grid point i,j |
---|
[1] | 112 | !------------------------------------------------------------------------------! |
---|
| 113 | SUBROUTINE interaction_droplets_ptq_ij( i, j ) |
---|
| 114 | |
---|
[1320] | 115 | USE arrays_3d, & |
---|
| 116 | ONLY: pt_p, ql_c, q_p |
---|
[1] | 117 | |
---|
[1320] | 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 | |
---|
[1] | 127 | USE pegrid |
---|
| 128 | |
---|
| 129 | IMPLICIT NONE |
---|
| 130 | |
---|
[1682] | 131 | INTEGER(iwp) :: i !< |
---|
| 132 | INTEGER(iwp) :: j !< |
---|
| 133 | INTEGER(iwp) :: k !< |
---|
[1] | 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) |
---|
[799] | 138 | pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k) |
---|
[1] | 139 | ENDDO |
---|
| 140 | |
---|
| 141 | END SUBROUTINE interaction_droplets_ptq_ij |
---|
| 142 | |
---|
| 143 | END MODULE interaction_droplets_ptq_mod |
---|