### Boundary conditons for the q2l-equation

INTERFACE:

    REALTYPE function  q2l_bc(bc,type,zi,ki,z0,u_tau)

DESCRIPTION:

Computes prescribed and flux boundary conditions for the transport equation (160). The formal parameter bc determines whether Dirchlet or Neumann-type boundary conditions are computed. Depending on the physical properties of the boundary-layer, the parameter type relates either to a visous, a logarithmic, or an injection-type boundary-layer. In the latter case, the flux of TKE caused by breaking surface waves has to be specified. Presently, there is only one possibility to do so implemented in GOTM. It is described in section 4.7.47. All parameters that determine the boundary layer have to be set in gotmturb.nml.

Note that in this section, for brevity, denotes the distance from the wall (or the surface), and not the standard coordinate of the same name used in GOTM.

Viscous boundary-layers

This type is not implemented yet in GOTM.

Logarithmic boundary-layers

The Dirchlet (prescribed) boundary conditions can be written as

 (142)

where we used the law-of-the-wall relation .

Neumann (flux) boundary condition can be written as

 (143)

by inserting ( is constant in the log-layer). Note, that in (142) and (143), we use ki, the value of at the current time step, to compute the boundary conditions. By means of (101), it would have been also possible to express the boundary conditions in terms of the friction velocity, . This, however, causes numerical difficulties in case of a stress-free surface boundary-layer as for example in the pressure-driven open channel flow.

Shear-free boundary-layers with injection of TKE

The Dirichlet (prescribed) boundary condition follows simply from the power-law (108), yielding

 (144)

Neumann (flux) boundary condition is

 (145)

which follows from (108). The parameter is computed as described in the context of (133).

USES:

    IMPLICIT NONE

INPUT PARAMETERS:
    integer, intent(in)                 :: bc,type
REALTYPE, intent(in)                :: zi,ki,z0,u_tau

REVISION HISTORY:
    Original author(s): Lars Umlauf


Karsten Bolding 2012-01-24