The grid in this example is obtained with the
onedgrid.m m-file which can be downloaded from
http://suntans.stanford.edu/downloads_stanford .
In this case, the one-dimensional grid contains 100 cells in the horizontal and 100 in the vertical, and
the domain is 100 km long with a maximum depth of 3000 m. All edges are of type 1 except for the western
boundary edge, which is of type 2.
The shelf slope geometry is given by
boundaries.c in the function ReturnDepth with
Ls = 20000; xmid = 65000; D0 = 3000; Ds = 500; if(x<=xmid-Ls/2) return D0; else if(x>xmid+Ls/2) return Ds; else return D0-(D0-Ds)*((x-xmid)/Ls+0.5);As with all the present examples, in order for this depth to be specified, the
IntDepth parameter must
be set to 0 in the suntans.dat parameter file, otherwise, depth data must be supplied in the
file specified by depth in suntans.dat. As shown in Figure 14,
this grid is stretched in the
vertical in order to provide extra resolution at the top boundary. This is done by
specifying a positive stretching factor (as opposed to a negative stretching factor for the
bottom boundary layer, as in Section 6.4) of suntans.dat: rstretch = 1.025),
which causes each grid layer to be 1.025 times thicker than the layer above it.
|
0.8
|