Title | Previous | Next

APPENDIX A MeshTV Tutorial

The following tutorial illustrates some of the basic concepts and uses of the command line interface to MeshTV.

Before You Can Start

Before starting on the tutorial, you will need the following:

· A SILO file, preferrably "rect2d.silo" which can typically be retrieved at

/usr/local/meshtv/data/rect2d.silo

· Access to the executable meshtvx . If when you type meshtvx you get the message:

meshtvx: Command not found.

then meshtvx is either not on your machine or not in your search path. Contact your system administrator for assistance.

Typographical Conventions

For the purpose of this tutorial, the following typographical conventions will be used:

typeface

Items printed in typeface should be entered verbatim.

1. normal

Numbered items printed in normal font are merely annotation and should not be entered.

Tutorial

1. Begin the command line interface to MeshTV.

meshtvx

2. Open a SILO file.

open /usr/local/meshtv/data/rect2d.silo

3. List the contents of the file (shows the names of all variables and meshes.)

ls

4. Plot a mesh.

mesh var=quadmesh2d

plot mesh

5. Clear the output window.

clear

6. Make a contour plot of density.

iso var=d

plot iso

7. Change the contour levels.

iso level={.1 1. 2.}

clear; plot iso

8. Change the contour levels by percent.

iso pct={10 25 50 75 90}

clear; plot iso

9. Generate a pseudo-color contour plot of pressure.

pc var=p

clear; plot pc

10. Find the min and max values of pressure.

minmax p

11. Set the range for the pseudo-color plot.

pc pcmin=.5, pcmax=1.5

clear;plot pc

12. Use the pick and query facility. Use left mouse button to select points.

winmode pick

pick var=p

13. Plot a mesh in another color on top of current plot.

mesh lc=red

plot mesh

14. Change the window limits (using physical/problem dimensions).

wp 0 5 0 5

15. Reset the physical window limits.

reset wp

16. Change to four output windows.

winnum 4

17. Change the active window.

winset 2

18. Generate a material-boundary plot.

bnd var=mat1

plot bnd

19. Change the active window and generate a solid-material plot.

winset 3

smat var=mat1

plot smat

20. Generate a distance plot of density. Use the left mouse button to select the two endpoints of a line (within window 3).

winmode dist

dist var=d, outwin=4

21. End this session of MeshTV.

end


Title | Previous | Next

MeshTV@viper.llnl.gov
Copyright © 1998, U.S. Department of Energy. All rights reserved.