MeshTV is an interactive program for visualizing and analyzing scientific data. MeshTV reads SILO 1 data files, which allows it to run on many hardware platforms. MeshTV handles 1D, 2D, and 3D data and provides a variety of operations on the data, enabling it to be both a visualization tool and a data analysis program. A full description of the SILO data format for MeshTV can be found in the MeshTV-SILO Manual 2 , and instructions for writing SILO files can be found in the SILO User's Guide 3 .
While MeshTV has a Command Line Interface (CLI), most people prefer to use MeshTV's Graphical User Interface (GUI), which is described in the MeshTV User's Manual 4 . If you are just starting MeshTV for the first time, you might want to use the GUI for awhile to get a feeling for how the program works. You might also want to read the MeshTV Getting Started Manual 5 . The MeshTV Getting Started Manual describes important MeshTV concepts and assumptions, and it also contains a tutorial for the GUI.
This manual details the various commands supported by MeshTV as they are accessed via the Command Line Interface. Users might want to use the CLI for production (batch) jobs, or to access commands which have yet to be implemented in the GUI.
The following typographical conventions are used in the command summaries:
Many of the commands use commas to separate options, as in:
Real numbers ending in zero can be entered with or without the decimal point. For example, 0 can be entered as 0 , 0. , or 0.0 .
MeshTV can be run in command line mode (without the GUI). When used in this way, the program name is meshtvx rather than meshtv . To run MeshTV in command line mode, type the following at a UNIX TM prompt:
Commands contained in a file can be input to MeshTV via the C Shell redirection facility.
meshtvx [options] < command_file
MeshTV's operators are accessed via the defvar command and the pop option, rather than via separate commands of their own. The following table lists MeshTV's operators and the corresponding arguments to the appropriate command.
MeshTV can be run in a production (batch) environment where a script program, for example, supplies plot commands in a file from which MeshTV generates plots as output files of various formats. In this case, no output window needs to exist, so the -nowin option might be used. The source command invoked from within MeshTV, or the redirection of a command file on the execute line, can be used to supply the plot commands. The foutput command or the -ps execute line option can be used to direct plots to a PostScript TM file. Some examples of production mode usage follow.
meshtvx -nowin -ps prob prob.silo <prob.log >/dev/null
Commands in file prob.log and SILO file prob.silo are used to generate plots which are written to the PostScript TM file family which starts with prob0000.ps. Plots are not sent to an output window. All MeshTV messages are redirected to the "great bit bucket in the sky" (/dev/null) rather than being sent to the user.
meshtvx -nowin -n
1-->
foutput rootname=prob2
2-->
open prob200000.silo
Current DB is: prob200000.silo
`2D rectilinear file'
3-->
source prob2.log
4-->
open prob200100.silo
Current DB is: prob200100.silo
`2D rectilinear file'
5-->
source prob2.log
6-->
quit
Commands in file prob2.log and data in SILO files prob200000.silo and prob200100.silo are used to generate plots which are written to the PostScript
TM
file family which starts with prob20000.ps. Plots are not sent to an output window. The newline character ends the MeshTV prompt.
meshtvx -nowin -q
1-->open prob3.silo
2-->foutput rootname=prob3
3-->source prob3.log
4-->foutput rootname=prob4
5-->source prob4.log
6-->quit
Commands in file prob3.log and data in the SILO file prob3.silo are used to generate plots which are written to the PostScript
TM
file family which begins with prob30000.ps. Ditto for prob4. Plots are not sent to an output window. The prompt does not include the newline character. No warnings or informational messages are sent.
If invalid commands are sent to MeshTV, an error message will be returned to the standard error ("standard err"). This message will begin with the string "MeshTV Error:"
Whenever MeshTV is run, whether from the command line or via the GUI, it will output a log of the commands it received during the session. This log will be named " %meshtv.log " You can use this log to rerun MeshTV, either from within the code by issuing the source command, or by using the redirection method mentioned earlier. The only restriction is that you must rename the file, or MeshTV will attempt to read from and write to the same file, and that would cause problems.
The command summaries which follow describe the usage of every command in MeshTV. Each command summary is broken into five sections -- Synopsis, Arguments, Description, Examples, and See Also.
The Synopsis section contains a brief summary of the command along with its arguments. The Arguments section contains a description of each argument supported by the command. The Description section provides a more thorough explanation of what the command does. The Examples section demonstrates sample uses of the command. The See Also section refers the reader to any related commands or documents which might also be of interest.
Note that these commands can be issued via the GUI by using the Command Line window. If these commands are issued from the GUI, all text output will go to the Printer Icon Output window. If these commands are issued from the Command Line Interface version of MeshTV, output goes to the standard output ("standard out"), which is usually the shell window in which MeshTV was invoked.
If you issue these commands from the Command Line Interface window in the GUI, the GUI's other windows will not correctly reflect the changes. For example, if you type "animate fps=5.0", the animate window will not reflect that change. In general, if you use the GUI, you should issue commands via the GUI's windows whenever possible.