[1] | 1 | MODULE interaction_droplets_ptq_mod |
---|
| 2 | |
---|
[1036] | 3 | !--------------------------------------------------------------------------------! |
---|
| 4 | ! This file is part of PALM. |
---|
| 5 | ! |
---|
| 6 | ! PALM is free software: you can redistribute it and/or modify it under the terms |
---|
| 7 | ! of the GNU General Public License as published by the Free Software Foundation, |
---|
| 8 | ! either version 3 of the License, or (at your option) any later version. |
---|
| 9 | ! |
---|
| 10 | ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
| 11 | ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
| 12 | ! A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
| 13 | ! |
---|
| 14 | ! You should have received a copy of the GNU General Public License along with |
---|
| 15 | ! PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
| 16 | ! |
---|
| 17 | ! Copyright 1997-2012 Leibniz University Hannover |
---|
| 18 | !--------------------------------------------------------------------------------! |
---|
| 19 | ! |
---|
[484] | 20 | ! Current revisions: |
---|
[1] | 21 | ! ----------------- |
---|
| 22 | ! |
---|
[800] | 23 | ! |
---|
[1] | 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
[3] | 26 | ! $Id: interaction_droplets_ptq.f90 1036 2012-10-22 13:43:42Z raasch $ |
---|
[800] | 27 | ! |
---|
| 28 | ! 799 2011-12-21 17:48:03Z franke |
---|
| 29 | ! Bugfix: pt_d_t(k) was missing in calculation of pt_p |
---|
| 30 | ! |
---|
[3] | 31 | ! RCS Log replace by Id keyword, revision history cleaned up |
---|
| 32 | ! |
---|
[1] | 33 | ! Revision 1.1 2005/06/26 19:57:47 raasch |
---|
| 34 | ! Initial revision |
---|
| 35 | ! |
---|
| 36 | ! |
---|
| 37 | ! Description: |
---|
| 38 | ! ------------ |
---|
| 39 | ! Release of latent heat and change of specific humidity due to condensation / |
---|
| 40 | ! evaporation of droplets. |
---|
| 41 | !------------------------------------------------------------------------------! |
---|
| 42 | |
---|
| 43 | PRIVATE |
---|
| 44 | PUBLIC interaction_droplets_ptq |
---|
| 45 | |
---|
| 46 | INTERFACE interaction_droplets_ptq |
---|
| 47 | MODULE PROCEDURE interaction_droplets_ptq |
---|
| 48 | MODULE PROCEDURE interaction_droplets_ptq_ij |
---|
| 49 | END INTERFACE interaction_droplets_ptq |
---|
| 50 | |
---|
| 51 | CONTAINS |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | !------------------------------------------------------------------------------! |
---|
| 55 | ! Call for all grid points |
---|
| 56 | !------------------------------------------------------------------------------! |
---|
| 57 | SUBROUTINE interaction_droplets_ptq |
---|
| 58 | |
---|
| 59 | USE arrays_3d |
---|
| 60 | USE cloud_parameters |
---|
| 61 | USE control_parameters |
---|
| 62 | USE indices |
---|
| 63 | |
---|
| 64 | USE pegrid |
---|
| 65 | |
---|
| 66 | IMPLICIT NONE |
---|
| 67 | |
---|
| 68 | INTEGER :: i, j, k |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | DO i = nxl, nxr |
---|
| 72 | DO j = nys, nyn |
---|
| 73 | DO k = nzb_2d(j,i)+1, nzt |
---|
| 74 | q_p(k,j,i) = q_p(k,j,i) - ql_c(k,j,i) |
---|
[799] | 75 | pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k) |
---|
[1] | 76 | ENDDO |
---|
| 77 | ENDDO |
---|
| 78 | ENDDO |
---|
| 79 | |
---|
| 80 | END SUBROUTINE interaction_droplets_ptq |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | !------------------------------------------------------------------------------! |
---|
| 84 | ! Call for grid point i,j |
---|
| 85 | !------------------------------------------------------------------------------! |
---|
| 86 | SUBROUTINE interaction_droplets_ptq_ij( i, j ) |
---|
| 87 | |
---|
| 88 | USE arrays_3d |
---|
| 89 | USE cloud_parameters |
---|
| 90 | USE control_parameters |
---|
| 91 | USE indices |
---|
| 92 | |
---|
| 93 | USE pegrid |
---|
| 94 | |
---|
| 95 | IMPLICIT NONE |
---|
| 96 | |
---|
| 97 | INTEGER :: i, j, k |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | DO k = nzb_2d(j,i)+1, nzt |
---|
| 101 | q_p(k,j,i) = q_p(k,j,i) - ql_c(k,j,i) |
---|
[799] | 102 | pt_p(k,j,i) = pt_p(k,j,i) + l_d_cp * ql_c(k,j,i) * pt_d_t(k) |
---|
[1] | 103 | ENDDO |
---|
| 104 | |
---|
| 105 | END SUBROUTINE interaction_droplets_ptq_ij |
---|
| 106 | |
---|
| 107 | END MODULE interaction_droplets_ptq_mod |
---|