Ignore:
Timestamp:
Mar 27, 2018 3:52:42 PM (6 years ago)
Author:
suehring
Message:

Nesting in RANS-LES and RANS-RANS mode enabled; synthetic turbulence generator at all lateral boundaries in nesting or non-cyclic forcing mode; revised Inifor initialization in nesting mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/boundary_conds.f90

    r2766 r2938  
    2525! -----------------
    2626! $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
    2732! Removed preprocessor directive __chem
    2833!
     
    193198               inflow_s, intermediate_timestep_count,                          &
    194199               microphysics_morrison, microphysics_seifert, nest_domain,       &
    195                nest_bound_l, nest_bound_s, nudging, ocean, outflow_l,          &
    196                outflow_n, outflow_r, outflow_s, passive_scalar, rans_tke_e,    &
    197                tsc, use_cmax
     200               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
    198203
    199204    USE grid_variables,                                                        &
     
    209214
    210215    USE pmc_interface,                                                         &
    211         ONLY : nesting_mode
     216        ONLY : nesting_mode, rans_mode_parent
    212217
    213218    USE surface_mod,                                                           &
     
    321326
    322327!
    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.
    325330    IF ( .NOT. constant_diffusion )  THEN
    326331
     
    343348       IF ( .NOT. nest_domain )  THEN
    344349          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.
    350374    IF ( rans_tke_e .AND. .NOT. nest_domain )  THEN
    351375       diss_p(nzt+1,:,:) = diss_p(nzt,:,:)
Note: See TracChangeset for help on using the changeset viewer.