Diagonalized Upwind Navier Stokes Code

Tutorial Page


7. RUNNING DUNSPLOT.E

The dunsplot.e program allows users to examine the solution obtained by the DUNS code for two-dimensional simulations. It works by reading in the script and restart files for the specific case, and then allows the user to examine the results through a simple shell-like interface. The possible commands are given below:

dunsplot> conv
dunsplot> tconv
dunsplot> sconv
These commands allow the user to look at the convergence for the main variables (p1, u, v, t) with conv, the turbulence variables (q, omega) with tconv, and the species variables (Yi) with sconv. It plots the log10 of the sum of the L2 norm error.

The various commands for creating different types of plots are given below:

dunsplot> contour {c} $var
dunsplot> vector {v} $var1 $var2
dunsplot> color-vector {cv} $var1 $var2 $var3
dunsplot> grid {g}
dunsplot> fill {f} $var1
dunsplot> line {l} $var1 $var2 ...
You can specify the type of plot by any of the above commands. For a contour or fill plot, you must select one variable to plot. The variable names are the same as used in the plotting files above. For a vector plot, you must specify an x-component and y-component variable (such as u and v). For color-vectors, you must specify an x-component and y-component, and an additional variable which determines the color of the vector (such as t for temperature). For a line plot you can select any number of variables, and they will all show up on the same plot.

For contour and fill plots, you can specify the number of contours and the minimum/maximum value of the contours by the following commands:

dunsplot> number-contours {nc} $num
dunsplot> min-max {mm} $nummin $nummax

Cuts at either constant x or constant y can be taken with the xline and yline command. The syntax for these is given below:

dunsplot> xline {xl} $ymin $ymax $x1 $x2 $x3 ...
dunsplot> yline {yl} $xmin $xmax $y1 $y2 $y3 ...
Notice that you can specify many cuts at different locations if you so choose. They will all show up on the same plot (warning: plots can tend to get crowded quickly if you select several variables and several cuts).

There is additionally the option of plotting the log of a specific variable instead of the actual variable. This is useful when looking at cuts of the species mass-fractions, for instance. You must select log before selecting the variables you want to plot (via the contour, vector, etc. command). The command for selecting/deselecting log is as follows:

dunsplot> log
dunsplot> nolog

When the variables are selected and everything is set up, you then can plot and results using the plot {p} command. Finally, the list {ls} command will print out the possible variables for plotting if you can't remember. The dunsplot.e code uses the graficV3 libraries for plotting. Please refer to the graficV3 instructions for information on further formatting and analysis that can be done inside of the plots.


Next Previous Contents