Changes between Version 1 and Version 2 of doc/tec/noncyclic


Ignore:
Timestamp:
Mar 11, 2013 2:01:13 PM (12 years ago)
Author:
fricke
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/tec/noncyclic

    v1 v2  
    11= Non-cyclic lateral boundary conditions =
    22
     3Figure 1 shows the grid structure for non-cyclic boundary conditions at the left/right boundary '''LB/RB''' ([../../app/inipar/#bc_lr bc_lr]) and figure 2 for non-cyclic boundary conditions at the north/south boundary '''NB/SB''' ([../../app/inipar/#bc_ns bc_ns]).
     4The indices (i,j,k) represent the directions (x,y,z).
     5The model domain extends from -1:nx+1 in the x-direction, from -1:ny+1 in the y-direction and from 0:nzt+1 in the z-direction.
     6For the advection scheme of Wicker and Skamarock, two more grid points are added at the lateral boundaries which are not needed for non-cyclic boundary conditions.
     7The figures display the grid layer of the horizontal velocity components u and v, and scalar s.
     8The grid points of the vertical velocity w are defined at the scalar position but shifted by one half grid spacing in vertical direction (not shown, detailed information about the grid structure in PALM can be found [http://palm.muk.uni-hannover.de/wiki/doc/tut/the/numerics here]).
     9The prognostic equations are solved at all inner grid points which are marked black.
     10The grid points at the respective non-cyclic boundaries (blue) are treated as follows. \\\\
    311[[Image(grid_lr.png, 700px, border=1)]] \\
     12Figure 1: Grid structure at the lateral boundaries with non-cyclic lateral boundary conditions along the left-right direction. \\\\\\
    413[[Image(grid_ns.png, 700px, border=1)]] \\
     14Figure 2: Grid structure of the lateral boundaries with non-cyclic lateral boundary conditions along the north-south direction. \\\\\\
     15LB is defined at i = -1 for v, w, s and at i = 0 for u.
     16SB is defined at j = -1 for u, w, s and at j = 0 for v.
     17RB is defined at i = nx + 1 and NB at j = ny + 1 for all quantities.
     18LB and SB are treated this way so that the order and number of grid points for the streamwise velocity component and scalars is the same, independent of the flow direction. \\
     19For technical reasons, the prognostic equations are first solved for u at i = 0 (v at j = 0), since these grid points technically belong to the inner grid, but afterwards, these results at i = 0 (j = 0) are replaced by the respective boundary condition in routine ''boundary_conds.f90''.
     20In case of a Dirichlet condition, the values at i = 0 (j = 0) are taken from i = -1 (j = -1).
     21In case of a radiation boundary condition, the solution of the Sommerfeld equation overwrites the prognostic values at i = 0 (j = 0). \\
     22For non-cyclic lateral boundary conditions, the parameter [../../app/inipar/#psolver psolver] has to be set to '' 'multigrid' '' because the default FFT-solver can only be applied for cyclic boundary conditions. \\\\
     23
     24=== Inflow boundary ===
     25
     26At the inflow boundary, Dirichlet conditions are used for the three velocity components ψ = {u,v,w} as well as for all scalar quantities s and are implemented as follows (here e.g. for s and a flow in positive x direction):
     27{{{
     28#!Latex
     29 s^{t + \Delta t}(k,j,-1) = s_{init}(k) \; .
     30 }}}
     31t denotes the time, Δt the time step and s,,init,, the initialization profile of the scalar quantities which is constant in time.
     32The quantities at the inflow are set by the initial vertical profiles (see [../../app/inipar/#initializing_actions initializing_actions]).
     33A Neumann condition is used for the subgrid-scale turbulent kinetic energy e (here e.g. for a left-right flow):
     34{{{
     35#!Latex
     36 e^{t + \Delta t}(k,j,-1) = e^{t + \Delta t}(k,j,0) \; .
     37 }}}