Changeset 1936 for palm/trunk/SOURCE/lpm_advec.f90
- Timestamp:
- Jun 13, 2016 1:37:44 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lpm_advec.f90
r1930 r1936 19 19 ! Current revisions: 20 20 ! ------------------ 21 ! 21 ! Formatting adjustments 22 22 ! 23 23 ! Former revisions: … … 264 264 jlog = ( particles(n)%y + 0.5_wp * dy ) * ddy 265 265 266 IF ( constant_flux_layer .AND. zv(n) - zw(nzb_s_inner(jlog,ilog)) < z_p ) THEN 266 IF ( constant_flux_layer .AND. & 267 zv(n) - zw(nzb_s_inner(jlog,ilog)) < z_p ) THEN 267 268 ! 268 269 !-- Resolved-scale horizontal particle velocity is zero below z0. … … 272 273 ! 273 274 !-- Determine the sublayer. Further used as index. 274 height_p = ( zv(n) - zw(nzb_s_inner(jlog,ilog)) - z0_av_global )&275 * REAL( number_of_sublayers, KIND=wp ) &275 height_p = ( zv(n) - zw(nzb_s_inner(jlog,ilog)) - z0_av_global ) & 276 * REAL( number_of_sublayers, KIND=wp ) & 276 277 * d_z_p_z0 277 278 ! … … 340 341 ilog = ( particles(n)%x + 0.5_wp * dx ) * ddx 341 342 jlog = ( particles(n)%y + 0.5_wp * dy ) * ddy 342 IF ( constant_flux_layer .AND. zv(n) - zw(nzb_s_inner(jlog,ilog)) < z_p ) THEN 343 IF ( constant_flux_layer .AND. & 344 zv(n) - zw(nzb_s_inner(jlog,ilog)) < z_p ) THEN 343 345 344 346 IF ( zv(n) - zw(nzb_s_inner(jlog,ilog)) < z0_av_global ) THEN … … 352 354 !-- topography particle on u-grid can be above surface-layer height, 353 355 !-- whereas it can be below on v-grid. 354 height_p 355 * REAL( number_of_sublayers, KIND=wp ) &356 height_p = ( zv(n) - zw(nzb_s_inner(jlog,ilog)) - z0_av_global ) & 357 * REAL( number_of_sublayers, KIND=wp ) & 356 358 * d_z_p_z0 357 359 ! … … 367 369 !-- friction velocity can become very small, resulting in a too 368 370 !-- large particle speed. 369 us_int = MAX( 0.5_wp * ( us(jlog,ilog) + us(jlog-1,ilog) ), &371 us_int = MAX( 0.5_wp * ( us(jlog,ilog) + us(jlog-1,ilog) ), & 370 372 0.01_wp ) 371 373 ! … … 376 378 !-- as sensitivity studies revealed no significant effect of 377 379 !-- using the neutral solution also for un/stable situations. 378 v_int(n) = -vsws(jlog,ilog) / ( us_int * kappa + 1E-10_wp ) 380 v_int(n) = -vsws(jlog,ilog) / ( us_int * kappa + 1E-10_wp ) & 379 381 * log_z_z0_int - v_gtrans 380 382
Note: See TracChangeset
for help on using the changeset viewer.