[1682] | 1 | !> @file compute_vpt.f90 |
---|
[2000] | 2 | !------------------------------------------------------------------------------! |
---|
[2696] | 3 | ! This file is part of the PALM model system. |
---|
[1036] | 4 | ! |
---|
[2000] | 5 | ! PALM is free software: you can redistribute it and/or modify it under the |
---|
| 6 | ! terms of the GNU General Public License as published by the Free Software |
---|
| 7 | ! Foundation, either version 3 of the License, or (at your option) any later |
---|
| 8 | ! version. |
---|
[1036] | 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 | ! |
---|
[4360] | 17 | ! Copyright 1997-2020 Leibniz Universitaet Hannover |
---|
[2000] | 18 | !------------------------------------------------------------------------------! |
---|
[1036] | 19 | ! |
---|
[484] | 20 | ! Current revisions: |
---|
[1] | 21 | ! ----------------- |
---|
[1354] | 22 | ! |
---|
[2001] | 23 | ! |
---|
[1321] | 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
| 26 | ! $Id: compute_vpt.f90 4521 2020-05-06 11:39:49Z moh.hefny $ |
---|
[4521] | 27 | ! Rename variable |
---|
| 28 | ! |
---|
| 29 | ! 4502 2020-04-17 16:14:16Z schwenkel |
---|
[4502] | 30 | ! Implementation of ice microphysics |
---|
| 31 | ! |
---|
| 32 | ! 4360 2020-01-07 11:25:50Z suehring |
---|
[4182] | 33 | ! Corrected "Former revisions" section |
---|
| 34 | ! |
---|
| 35 | ! 3655 2019-01-07 16:51:22Z knoop |
---|
[3274] | 36 | ! Modularization of all bulk cloud physics code components |
---|
[1321] | 37 | ! |
---|
[4182] | 38 | ! Revision 1.1 2000/04/13 14:40:53 schroeter |
---|
| 39 | ! Initial revision |
---|
| 40 | ! |
---|
| 41 | ! |
---|
[1] | 42 | ! Description: |
---|
| 43 | ! ------------- |
---|
[1682] | 44 | !> Computation of the virtual potential temperature |
---|
[1320] | 45 | !------------------------------------------------------------------------------! |
---|
[1682] | 46 | SUBROUTINE compute_vpt |
---|
| 47 | |
---|
[1] | 48 | |
---|
[1320] | 49 | USE arrays_3d, & |
---|
[4502] | 50 | ONLY: pt, q, ql, vpt, d_exner, qi |
---|
[3274] | 51 | |
---|
| 52 | USE basic_constants_and_equations_mod, & |
---|
[4502] | 53 | ONLY: lv_d_cp, ls_d_cp |
---|
[3274] | 54 | |
---|
| 55 | USE control_parameters, & |
---|
| 56 | ONLY: cloud_droplets |
---|
| 57 | |
---|
[1320] | 58 | USE indices, & |
---|
| 59 | ONLY: nzb, nzt |
---|
[3274] | 60 | |
---|
[1320] | 61 | USE kinds |
---|
[1] | 62 | |
---|
[3274] | 63 | USE bulk_cloud_model_mod, & |
---|
[4521] | 64 | ONLY: bulk_cloud_model, microphysics_ice_phase |
---|
[3274] | 65 | |
---|
[1] | 66 | IMPLICIT NONE |
---|
| 67 | |
---|
[1682] | 68 | INTEGER(iwp) :: k !< |
---|
[1] | 69 | |
---|
[3274] | 70 | IF ( .NOT. bulk_cloud_model .AND. .NOT. cloud_droplets ) THEN |
---|
[1353] | 71 | vpt = pt * ( 1.0_wp + 0.61_wp * q ) |
---|
[4521] | 72 | ELSEIF ( bulk_cloud_model .AND. .NOT. microphysics_ice_phase ) THEN |
---|
[1] | 73 | DO k = nzb, nzt+1 |
---|
[4502] | 74 | vpt(k,:,:) = ( pt(k,:,:) + d_exner(k) * lv_d_cp * ql(k,:,:) ) * & |
---|
| 75 | ( 1.0_wp + 0.61_wp * q(k,:,:) - 1.61_wp * ql(k,:,:) ) |
---|
[1] | 76 | ENDDO |
---|
[4521] | 77 | ELSEIF ( bulk_cloud_model .AND. microphysics_ice_phase ) THEN |
---|
[4502] | 78 | DO k = nzb, nzt+1 |
---|
| 79 | vpt(k,:,:) = ( pt(k,:,:) + d_exner(k) * lv_d_cp * ql(k,:,:) + & |
---|
| 80 | d_exner(k) * ls_d_cp * qi(k,:,:) ) * & |
---|
| 81 | ( 1.0_wp + 0.61_wp * q(k,:,:) - 1.61_wp * & |
---|
| 82 | ( ql(k,:,:) + qi(k,:,:) ) ) |
---|
| 83 | ENDDO |
---|
[799] | 84 | ELSE |
---|
[1353] | 85 | vpt = pt * ( 1.0_wp + 0.61_wp * q - ql ) |
---|
[1] | 86 | ENDIF |
---|
| 87 | |
---|
| 88 | END SUBROUTINE compute_vpt |
---|