Changeset 2758 for palm/trunk
- Timestamp:
- Jan 17, 2018 12:55:21 PM (7 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_3d_model.f90
r2746 r2758 25 25 ! ----------------- 26 26 ! $Id$ 27 ! In case of spinup of land- and urban-surface model, do not mask wind velocity 28 ! at first computational grid level 29 ! 30 ! 2746 2018-01-15 12:06:04Z suehring 27 31 ! Move flag plant canopy to modules 28 32 ! … … 1253 1257 ! 1254 1258 !-- Set velocities back to zero 1255 DO i = nxlg, nxrg 1256 DO j = nysg, nyng 1257 DO k = nzb, nzt 1258 u(k,j,i) = MERGE( u(k,j,i), 0.0_wp, & 1259 BTEST( wall_flags_0(k,j,i), 1 ) ) 1260 v(k,j,i) = MERGE( v(k,j,i), 0.0_wp, & 1261 BTEST( wall_flags_0(k,j,i), 2 ) ) 1262 ENDDO 1263 ENDDO 1264 ENDDO 1265 1259 u = MERGE( u, 0.0_wp, BTEST( wall_flags_0, 1 ) ) 1260 v = MERGE( v, 0.0_wp, BTEST( wall_flags_0, 2 ) ) 1266 1261 ! 1267 1262 !-- WARNING: The extra boundary conditions set after running the … … 1309 1304 ENDDO 1310 1305 ENDDO 1311 1306 ! 1307 !-- Mask topography 1308 u = MERGE( u, 0.0_wp, BTEST( wall_flags_0, 1 ) ) 1309 v = MERGE( v, 0.0_wp, BTEST( wall_flags_0, 2 ) ) 1312 1310 ! 1313 1311 !-- Set initial horizontal velocities at the lowest computational grid 1314 1312 !-- levels to zero in order to avoid too small time steps caused by the 1315 1313 !-- diffusion limit in the initial phase of a run (at k=1, dz/2 occurs 1316 !-- in the limiting formula!). 1317 IF ( ibc_uv_b /= 1 ) THEN 1314 !-- in the limiting formula!). 1315 !-- Please note, in case land- or urban-surface model is used and a 1316 !-- spinup is applied, masking the lowest computational level is not 1317 !-- possible as MOST as well as energy-balance parametrizations will not 1318 !-- work with zero wind velocity. 1319 IF ( ibc_uv_b /= 1 .AND. .NOT. spinup ) THEN 1318 1320 DO i = nxlg, nxrg 1319 1321 DO j = nysg, nyng -
palm/trunk/SOURCE/time_integration_spinup.f90
r2728 r2758 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Comment out homogeneous setting of wind velocity as this will lead to zero 28 ! friction velocity and cause problems in MOST relationships. 29 ! 30 ! 2728 2018-01-09 07:03:53Z maronga 27 31 ! Set velocity componenets to homogeneous values during spinup 28 32 ! … … 170 174 !-- otherwise. The precise reason is still unknown. A minimum velocity of 0.1 171 175 !-- m/s is used to maintain turbulent transfer at the surface. 172 u = SIGN(1.0_wp,u) * MAX(ug_surface,0.1_wp)173 v = SIGN(1.0_wp,v) * MAX(vg_surface,0.1_wp)176 ! u = SIGN(1.0_wp,u) * MAX(ug_surface,0.1_wp) 177 ! v = SIGN(1.0_wp,v) * MAX(vg_surface,0.1_wp) 174 178 175 179 dt_save = dt_3d
Note: See TracChangeset
for help on using the changeset viewer.