This test case is run with the command
make testThe simulation runs for 500 time steps (
suntans.dat: nsteps = 500) with a time step size of 0.2 s (suntans.dat: dt = 0.2).
For this grid, given that the Voronoi distance for the equilateral triangles with sides of length
suntans.dat: nonlinear = 2),
the horizontal grid Peclet number must satisfy the one-dimensional stability criterion which requires
that
suntans.dat: nuH = 0.025).
Likewise, for vertical stability, suntans.dat: nu = 0.016).
The results can be viewed with the sunplot gui from the main source directory with
./sunplot --datadir=examples/lockexchange/dataThis will open up a planview of the one-dimensional grid of equilateral triangles, showing that there are 26 (1+
nsteps/ntout) time steps to plot. To view the
profile plot, depress the
button with the middle mouse button. The last time step
of the velocity vectors along with the salinity field can be viewed with the following buttons:
: To get to last time step.
: Turn on velocity vectors.
: Increase vector length by a factor of 8.
iskip to 3 to plot every third vector for clarity.