Changeset 2938 for palm/trunk/SOURCE/boundary_conds.f90
- Timestamp:
- Mar 27, 2018 3:52:42 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/boundary_conds.f90
r2766 r2938 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Set boundary condition for TKE and TKE dissipation rate in case of nesting 28 ! and if parent model operates in RANS mode but child model in LES mode. 29 ! mode 30 ! 31 ! 2793 2018-02-07 10:54:33Z suehring 27 32 ! Removed preprocessor directive __chem 28 33 ! … … 193 198 inflow_s, intermediate_timestep_count, & 194 199 microphysics_morrison, microphysics_seifert, nest_domain, & 195 nest_bound_l, nest_bound_ s, nudging, ocean, outflow_l,&196 o utflow_n, outflow_r, outflow_s, passive_scalar, rans_tke_e,&197 tsc, use_cmax200 nest_bound_l, nest_bound_n, nest_bound_r, nest_bound_s, nudging,& 201 ocean, outflow_l, outflow_n, outflow_r, outflow_s, & 202 passive_scalar, rans_mode, rans_tke_e, tsc, use_cmax 198 203 199 204 USE grid_variables, & … … 209 214 210 215 USE pmc_interface, & 211 ONLY : nesting_mode 216 ONLY : nesting_mode, rans_mode_parent 212 217 213 218 USE surface_mod, & … … 321 326 322 327 ! 323 !-- Boundary conditions for TKE 324 !-- Generally Neumann conditions with de/dz=0 are assumed 328 !-- Boundary conditions for TKE. 329 !-- Generally Neumann conditions with de/dz=0 are assumed. 325 330 IF ( .NOT. constant_diffusion ) THEN 326 331 … … 343 348 IF ( .NOT. nest_domain ) THEN 344 349 e_p(nzt+1,:,:) = e_p(nzt,:,:) 345 ENDIF 346 ENDIF 347 348 ! 349 !-- Boundary conditions for TKE dissipation rate 350 ! 351 !-- Nesting case: if parent operates in RANS mode and child in LES mode, 352 !-- no TKE is transfered. This case, set Neumann conditions at lateral and 353 !-- top child boundaries. 354 !-- If not ( both either in RANS or in LES mode ), TKE boundary condition 355 !-- is treated in the nesting. 356 ELSE 357 358 IF ( rans_mode_parent .AND. .NOT. rans_mode ) THEN 359 360 361 362 e_p(nzt+1,:,:) = e_p(nzt,:,:) 363 IF ( nest_bound_l ) e_p(:,:,nxl-1) = e_p(:,:,nxl) 364 IF ( nest_bound_r ) e_p(:,:,nxr+1) = e_p(:,:,nxr) 365 IF ( nest_bound_s ) e_p(:,nys-1,:) = e_p(:,nys,:) 366 IF ( nest_bound_n ) e_p(:,nyn+1,:) = e_p(:,nyn,:) 367 368 ENDIF 369 ENDIF 370 ENDIF 371 372 ! 373 !-- Boundary conditions for TKE dissipation rate. 350 374 IF ( rans_tke_e .AND. .NOT. nest_domain ) THEN 351 375 diss_p(nzt+1,:,:) = diss_p(nzt,:,:)
Note: See TracChangeset
for help on using the changeset viewer.