next up previous contents
Next: Open or velocity-specified boundary Up: Specifying initial and boundary Previous: Initial conditions   Contents


Specifying boundary conditions

SUNTANS allows the specification of the velocity at the open boundaries in the file boundaries.c. Boundary condition types on the velocity field can be specified in the pslg file which sets the marker as described in Sections 3.1 and 3.2. The marker type can be one of the following:

If the marker is set to 1, then the velocity is set to 0 at those edges. If it is set to 2, then the velocity is specified in the file boundaries.c by iterating over edges with marker=2. If it is set to 3 then stage can be specified at the Voronoi cell center for the cell adjacent to this edge. No-slip boundaries are specified by setting the marker to 4, where the velocity on the edge is specified by updating phys->boundary_u, phys->boundary_v, and phys->boundary_w. No-slip conditions on top and bottom cells are specified by setting CdB=-1 or CdT=-1, respectively. An example covering usage of type 2 boundary conditions, type 3 boundary conditions, and type 4 boundary conditions will be covered in turn.



Subsections
next up previous contents
Next: Open or velocity-specified boundary Up: Specifying initial and boundary Previous: Initial conditions   Contents
2014-08-06