source: palm/trunk/SOURCE/compute_vpt.f90 @ 4282

Last change on this file since 4282 was 4182, checked in by scharf, 5 years ago
  • corrected "Former revisions" section
  • minor formatting in "Former revisions" section
  • added "Author" section
  • Property svn:keywords set to Id
File size: 2.4 KB
RevLine 
[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!
[3655]17! Copyright 1997-2019 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 4182 2019-08-22 15:20:23Z schwenkel $
[4182]27! Corrected "Former revisions" section
28!
29! 3655 2019-01-07 16:51:22Z knoop
[3274]30! Modularization of all bulk cloud physics code components
[1321]31!
[4182]32! Revision 1.1  2000/04/13 14:40:53  schroeter
33! Initial revision
34!
35!
[1]36! Description:
37! -------------
[1682]38!> Computation of the virtual potential temperature
[1320]39!------------------------------------------------------------------------------!
[1682]40 SUBROUTINE compute_vpt
41 
[1]42
[1320]43    USE arrays_3d,                                                             &
[3274]44        ONLY:  pt, q, ql, vpt, d_exner
45
46    USE basic_constants_and_equations_mod,                                     &
47        ONLY:  lv_d_cp
48
49    USE control_parameters,                                                    &
50        ONLY:  cloud_droplets
51
[1320]52    USE indices,                                                               &
53        ONLY:  nzb, nzt
[3274]54
[1320]55    USE kinds
[1]56
[3274]57    USE bulk_cloud_model_mod,                                                  &
58        ONLY:  bulk_cloud_model
59
[1]60    IMPLICIT NONE
61
[1682]62    INTEGER(iwp) :: k   !<
[1]63
[3274]64    IF ( .NOT. bulk_cloud_model  .AND.  .NOT. cloud_droplets )  THEN
[1353]65       vpt = pt * ( 1.0_wp + 0.61_wp * q )
[3274]66    ELSE IF (bulk_cloud_model)  THEN
[1]67       DO  k = nzb, nzt+1
[3274]68          vpt(k,:,:) = ( pt(k,:,:) + d_exner(k) * lv_d_cp * ql(k,:,:) ) *      &
[1353]69                       ( 1.0_wp + 0.61_wp * q(k,:,:) - 1.61_wp * ql(k,:,:) ) 
[1]70       ENDDO
[799]71    ELSE
[1353]72       vpt = pt * ( 1.0_wp + 0.61_wp * q - ql ) 
[1]73    ENDIF
74
75 END SUBROUTINE compute_vpt
Note: See TracBrowser for help on using the repository browser.