Changeset 4648 for palm/trunk/SOURCE/init_pt_anomaly.f90
- Timestamp:
- Aug 25, 2020 7:52:08 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_pt_anomaly.f90
r4457 r4648 1 1 !> @file init_pt_anomaly.f90 2 !------------------------------------------------------------------------------ !2 !--------------------------------------------------------------------------------------------------! 3 3 ! This file is part of the PALM model system. 4 4 ! 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. 5 ! PALM is free software: you can redistribute it and/or modify it under the terms of the GNU General 6 ! Public License as published by the Free Software Foundation, either version 3 of the License, or 7 ! (at your option) any later version. 9 8 ! 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 FOR12 ! A PARTICULAR PURPOSE. See the GNU GeneralPublic License for more details.9 ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the 10 ! implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 11 ! Public License for more details. 13 12 ! 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/>.13 ! You should have received a copy of the GNU General Public License along with PALM. If not, see 14 ! <http://www.gnu.org/licenses/>. 16 15 ! 17 16 ! Copyright 1997-2020 Leibniz Universitaet Hannover 18 !------------------------------------------------------------------------------ !17 !--------------------------------------------------------------------------------------------------! 19 18 ! 20 19 ! Current revisions: 21 20 ! ----------------- 22 ! 23 ! 21 ! 22 ! 24 23 ! Former revisions: 25 24 ! ----------------- 26 25 ! $Id$ 26 ! file re-formatted to follow the PALM coding standard 27 ! 28 ! 4457 2020-03-11 14:20:43Z raasch 27 29 ! use statement for exchange horiz added 28 ! 30 ! 29 31 ! 4360 2020-01-07 11:25:50Z suehring 30 ! Introduction of wall_flags_total_0, which currently sets bits based on static 31 ! topographyinformation used in wall_flags_static_032 ! 32 ! Introduction of wall_flags_total_0, which currently sets bits based on static topography 33 ! information used in wall_flags_static_0 34 ! 33 35 ! 4329 2019-12-10 15:46:36Z motisi 34 36 ! Renamed wall_flags_0 to wall_flags_static_0 35 ! 37 ! 36 38 ! 4182 2019-08-22 15:20:23Z scharf 37 39 ! Corrected "Former revisions" section 38 ! 40 ! 39 41 ! 3655 2019-01-07 16:51:22Z knoop 40 42 ! Added topography flags … … 47 49 ! ------------ 48 50 !> Impose a temperature perturbation for an advection test. 49 !------------------------------------------------------------------------------ !51 !--------------------------------------------------------------------------------------------------! 50 52 SUBROUTINE init_pt_anomaly 51 53 52 54 53 USE arrays_3d, &55 USE arrays_3d, & 54 56 ONLY: pt, zu 55 57 56 58 USE control_parameters 57 59 58 USE exchange_horiz_mod, &60 USE exchange_horiz_mod, & 59 61 ONLY: exchange_horiz 60 62 61 USE grid_variables, &63 USE grid_variables, & 62 64 ONLY: dx, dy 63 65 64 USE indices, &66 USE indices, & 65 67 ONLY: nbgp, nx, nxl, nxr, ny, nyn, nys, nzb, nzt, wall_flags_total_0 66 68 … … 70 72 71 73 INTEGER(iwp) :: i !< grid index along x 72 INTEGER(iwp) :: ic !< center index along x 74 INTEGER(iwp) :: ic !< center index along x 73 75 INTEGER(iwp) :: j !< grid index along y 74 76 INTEGER(iwp) :: jc !< center index along y … … 125 127 126 128 ! 127 !-- Initialize warm air bubble close to surface and homogenous elegonated 128 !-- along x-Axis 129 !-- Initialize warm air bubble close to surface and homogenous elegonated along x-Axis 129 130 ELSEIF ( INDEX( initializing_actions, 'initialize_bubble' ) /= 0 ) THEN 130 131 ! … … 141 142 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_total_0(k,j,i), 0 ) ) 142 143 143 pt(k,j,i) = pt(k,j,i) + & 144 EXP( -0.5 * ( (j* dy - bubble_center_y) / & 145 bubble_sigma_y )**2) * & 146 EXP( -0.5 * ( (zu(k) - bubble_center_z) / & 147 bubble_sigma_z)**2) * & 144 pt(k,j,i) = pt(k,j,i) + & 145 EXP( -0.5 * ( (j* dy - bubble_center_y) / bubble_sigma_y )**2) * & 146 EXP( -0.5 * ( (zu(k) - bubble_center_z) / bubble_sigma_z)**2) * & 148 147 initial_temperature_difference * flag 149 148 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.